blob: 8346d26a5c540092a4ab74b6af2ea2e53c3856bd [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
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 admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
23 appsv1 "k8s.io/api/apps/v1"
24 appsv1beta1 "k8s.io/api/apps/v1beta1"
25 appsv1beta2 "k8s.io/api/apps/v1beta2"
26 auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
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 autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
34 batchv1 "k8s.io/api/batch/v1"
35 batchv1beta1 "k8s.io/api/batch/v1beta1"
36 batchv2alpha1 "k8s.io/api/batch/v2alpha1"
37 certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
38 coordinationv1 "k8s.io/api/coordination/v1"
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 networkingv1beta1 "k8s.io/api/networking/v1beta1"
45 nodev1alpha1 "k8s.io/api/node/v1alpha1"
46 nodev1beta1 "k8s.io/api/node/v1beta1"
47 policyv1beta1 "k8s.io/api/policy/v1beta1"
48 rbacv1 "k8s.io/api/rbac/v1"
49 rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
50 rbacv1beta1 "k8s.io/api/rbac/v1beta1"
51 schedulingv1 "k8s.io/api/scheduling/v1"
52 schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
53 schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
54 settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
55 storagev1 "k8s.io/api/storage/v1"
56 storagev1alpha1 "k8s.io/api/storage/v1alpha1"
57 storagev1beta1 "k8s.io/api/storage/v1beta1"
58 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
59 runtime "k8s.io/apimachinery/pkg/runtime"
60 schema "k8s.io/apimachinery/pkg/runtime/schema"
61 serializer "k8s.io/apimachinery/pkg/runtime/serializer"
62 utilruntime "k8s.io/apimachinery/pkg/util/runtime"
63)
64
65var Scheme = runtime.NewScheme()
66var Codecs = serializer.NewCodecFactory(Scheme)
67var ParameterCodec = runtime.NewParameterCodec(Scheme)
68var localSchemeBuilder = runtime.SchemeBuilder{
69 admissionregistrationv1beta1.AddToScheme,
70 appsv1.AddToScheme,
71 appsv1beta1.AddToScheme,
72 appsv1beta2.AddToScheme,
73 auditregistrationv1alpha1.AddToScheme,
74 authenticationv1.AddToScheme,
75 authenticationv1beta1.AddToScheme,
76 authorizationv1.AddToScheme,
77 authorizationv1beta1.AddToScheme,
78 autoscalingv1.AddToScheme,
79 autoscalingv2beta1.AddToScheme,
80 autoscalingv2beta2.AddToScheme,
81 batchv1.AddToScheme,
82 batchv1beta1.AddToScheme,
83 batchv2alpha1.AddToScheme,
84 certificatesv1beta1.AddToScheme,
85 coordinationv1beta1.AddToScheme,
86 coordinationv1.AddToScheme,
87 corev1.AddToScheme,
88 eventsv1beta1.AddToScheme,
89 extensionsv1beta1.AddToScheme,
90 networkingv1.AddToScheme,
91 networkingv1beta1.AddToScheme,
92 nodev1alpha1.AddToScheme,
93 nodev1beta1.AddToScheme,
94 policyv1beta1.AddToScheme,
95 rbacv1.AddToScheme,
96 rbacv1beta1.AddToScheme,
97 rbacv1alpha1.AddToScheme,
98 schedulingv1alpha1.AddToScheme,
99 schedulingv1beta1.AddToScheme,
100 schedulingv1.AddToScheme,
101 settingsv1alpha1.AddToScheme,
102 storagev1beta1.AddToScheme,
103 storagev1.AddToScheme,
104 storagev1alpha1.AddToScheme,
105}
106
107// AddToScheme adds all types of this clientset into the given scheme. This allows composition
108// of clientsets, like in:
109//
110// import (
111// "k8s.io/client-go/kubernetes"
112// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
113// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
114// )
115//
116// kclientset, _ := kubernetes.NewForConfig(c)
117// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
118//
119// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
120// correctly.
121var AddToScheme = localSchemeBuilder.AddToScheme
122
123func init() {
124 v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
125 utilruntime.Must(AddToScheme(Scheme))
126}