Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by client-gen. DO NOT EDIT. |
| 18 | |
| 19 | package scheme |
| 20 | |
| 21 | import ( |
| 22 | admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1" |
| 23 | admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1" |
| 24 | appsv1 "k8s.io/api/apps/v1" |
| 25 | appsv1beta1 "k8s.io/api/apps/v1beta1" |
| 26 | appsv1beta2 "k8s.io/api/apps/v1beta2" |
| 27 | authenticationv1 "k8s.io/api/authentication/v1" |
| 28 | authenticationv1beta1 "k8s.io/api/authentication/v1beta1" |
| 29 | authorizationv1 "k8s.io/api/authorization/v1" |
| 30 | authorizationv1beta1 "k8s.io/api/authorization/v1beta1" |
| 31 | autoscalingv1 "k8s.io/api/autoscaling/v1" |
| 32 | autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1" |
| 33 | batchv1 "k8s.io/api/batch/v1" |
| 34 | batchv1beta1 "k8s.io/api/batch/v1beta1" |
| 35 | batchv2alpha1 "k8s.io/api/batch/v2alpha1" |
| 36 | certificatesv1beta1 "k8s.io/api/certificates/v1beta1" |
| 37 | corev1 "k8s.io/api/core/v1" |
| 38 | eventsv1beta1 "k8s.io/api/events/v1beta1" |
| 39 | extensionsv1beta1 "k8s.io/api/extensions/v1beta1" |
| 40 | networkingv1 "k8s.io/api/networking/v1" |
| 41 | policyv1beta1 "k8s.io/api/policy/v1beta1" |
| 42 | rbacv1 "k8s.io/api/rbac/v1" |
| 43 | rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" |
| 44 | rbacv1beta1 "k8s.io/api/rbac/v1beta1" |
| 45 | schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" |
| 46 | schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" |
| 47 | settingsv1alpha1 "k8s.io/api/settings/v1alpha1" |
| 48 | storagev1 "k8s.io/api/storage/v1" |
| 49 | storagev1alpha1 "k8s.io/api/storage/v1alpha1" |
| 50 | storagev1beta1 "k8s.io/api/storage/v1beta1" |
| 51 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 52 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 53 | schema "k8s.io/apimachinery/pkg/runtime/schema" |
| 54 | serializer "k8s.io/apimachinery/pkg/runtime/serializer" |
| 55 | ) |
| 56 | |
| 57 | var Scheme = runtime.NewScheme() |
| 58 | var Codecs = serializer.NewCodecFactory(Scheme) |
| 59 | var ParameterCodec = runtime.NewParameterCodec(Scheme) |
| 60 | |
| 61 | func init() { |
| 62 | v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) |
| 63 | AddToScheme(Scheme) |
| 64 | } |
| 65 | |
| 66 | // AddToScheme adds all types of this clientset into the given scheme. This allows composition |
| 67 | // of clientsets, like in: |
| 68 | // |
| 69 | // import ( |
| 70 | // "k8s.io/client-go/kubernetes" |
| 71 | // clientsetscheme "k8s.io/client-go/kubernetes/scheme" |
| 72 | // aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" |
| 73 | // ) |
| 74 | // |
| 75 | // kclientset, _ := kubernetes.NewForConfig(c) |
| 76 | // aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) |
| 77 | // |
| 78 | // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types |
| 79 | // correctly. |
| 80 | func AddToScheme(scheme *runtime.Scheme) { |
| 81 | admissionregistrationv1alpha1.AddToScheme(scheme) |
| 82 | admissionregistrationv1beta1.AddToScheme(scheme) |
| 83 | appsv1beta1.AddToScheme(scheme) |
| 84 | appsv1beta2.AddToScheme(scheme) |
| 85 | appsv1.AddToScheme(scheme) |
| 86 | authenticationv1.AddToScheme(scheme) |
| 87 | authenticationv1beta1.AddToScheme(scheme) |
| 88 | authorizationv1.AddToScheme(scheme) |
| 89 | authorizationv1beta1.AddToScheme(scheme) |
| 90 | autoscalingv1.AddToScheme(scheme) |
| 91 | autoscalingv2beta1.AddToScheme(scheme) |
| 92 | batchv1.AddToScheme(scheme) |
| 93 | batchv1beta1.AddToScheme(scheme) |
| 94 | batchv2alpha1.AddToScheme(scheme) |
| 95 | certificatesv1beta1.AddToScheme(scheme) |
| 96 | corev1.AddToScheme(scheme) |
| 97 | eventsv1beta1.AddToScheme(scheme) |
| 98 | extensionsv1beta1.AddToScheme(scheme) |
| 99 | networkingv1.AddToScheme(scheme) |
| 100 | policyv1beta1.AddToScheme(scheme) |
| 101 | rbacv1.AddToScheme(scheme) |
| 102 | rbacv1beta1.AddToScheme(scheme) |
| 103 | rbacv1alpha1.AddToScheme(scheme) |
| 104 | schedulingv1alpha1.AddToScheme(scheme) |
| 105 | schedulingv1beta1.AddToScheme(scheme) |
| 106 | settingsv1alpha1.AddToScheme(scheme) |
| 107 | storagev1beta1.AddToScheme(scheme) |
| 108 | storagev1.AddToScheme(scheme) |
| 109 | storagev1alpha1.AddToScheme(scheme) |
| 110 | } |