2 Copyright The Kubernetes Authors.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
17 // Code generated by client-gen. DO NOT EDIT.
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 auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
28 authenticationv1 "k8s.io/api/authentication/v1"
29 authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
30 authorizationv1 "k8s.io/api/authorization/v1"
31 authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
32 autoscalingv1 "k8s.io/api/autoscaling/v1"
33 autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
34 autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
35 batchv1 "k8s.io/api/batch/v1"
36 batchv1beta1 "k8s.io/api/batch/v1beta1"
37 batchv2alpha1 "k8s.io/api/batch/v2alpha1"
38 certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
39 coordinationv1beta1 "k8s.io/api/coordination/v1beta1"
40 corev1 "k8s.io/api/core/v1"
41 eventsv1beta1 "k8s.io/api/events/v1beta1"
42 extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
43 networkingv1 "k8s.io/api/networking/v1"
44 policyv1beta1 "k8s.io/api/policy/v1beta1"
45 rbacv1 "k8s.io/api/rbac/v1"
46 rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
47 rbacv1beta1 "k8s.io/api/rbac/v1beta1"
48 schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
49 schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
50 settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
51 storagev1 "k8s.io/api/storage/v1"
52 storagev1alpha1 "k8s.io/api/storage/v1alpha1"
53 storagev1beta1 "k8s.io/api/storage/v1beta1"
54 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
55 runtime "k8s.io/apimachinery/pkg/runtime"
56 schema "k8s.io/apimachinery/pkg/runtime/schema"
57 serializer "k8s.io/apimachinery/pkg/runtime/serializer"
58 utilruntime "k8s.io/apimachinery/pkg/util/runtime"
61 var Scheme = runtime.NewScheme()
62 var Codecs = serializer.NewCodecFactory(Scheme)
63 var ParameterCodec = runtime.NewParameterCodec(Scheme)
64 var localSchemeBuilder = runtime.SchemeBuilder{
65 admissionregistrationv1alpha1.AddToScheme,
66 admissionregistrationv1beta1.AddToScheme,
67 appsv1beta1.AddToScheme,
68 appsv1beta2.AddToScheme,
70 auditregistrationv1alpha1.AddToScheme,
71 authenticationv1.AddToScheme,
72 authenticationv1beta1.AddToScheme,
73 authorizationv1.AddToScheme,
74 authorizationv1beta1.AddToScheme,
75 autoscalingv1.AddToScheme,
76 autoscalingv2beta1.AddToScheme,
77 autoscalingv2beta2.AddToScheme,
79 batchv1beta1.AddToScheme,
80 batchv2alpha1.AddToScheme,
81 certificatesv1beta1.AddToScheme,
82 coordinationv1beta1.AddToScheme,
84 eventsv1beta1.AddToScheme,
85 extensionsv1beta1.AddToScheme,
86 networkingv1.AddToScheme,
87 policyv1beta1.AddToScheme,
89 rbacv1beta1.AddToScheme,
90 rbacv1alpha1.AddToScheme,
91 schedulingv1alpha1.AddToScheme,
92 schedulingv1beta1.AddToScheme,
93 settingsv1alpha1.AddToScheme,
94 storagev1beta1.AddToScheme,
95 storagev1.AddToScheme,
96 storagev1alpha1.AddToScheme,
99 // AddToScheme adds all types of this clientset into the given scheme. This allows composition
100 // of clientsets, like in:
103 // "k8s.io/client-go/kubernetes"
104 // clientsetscheme "k8s.io/client-go/kubernetes/scheme"
105 // aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
108 // kclientset, _ := kubernetes.NewForConfig(c)
109 // _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
111 // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
113 var AddToScheme = localSchemeBuilder.AddToScheme
116 v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
117 utilruntime.Must(AddToScheme(Scheme))