blob: 86584cf83cc6b3336877b2762ee3c66ef42e165c [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by client-gen. DO NOT EDIT.
18
19package scheme
20
21import (
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
57var Scheme = runtime.NewScheme()
58var Codecs = serializer.NewCodecFactory(Scheme)
59var ParameterCodec = runtime.NewParameterCodec(Scheme)
60
61func 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.
80func 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}