| 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 |
admissionregistrationv1 "k8s.io/api/admissionregistration/v1" |
| 23 |
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1" |
| 24 |
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1" |
| 25 |
internalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1" |
| 26 |
appsv1 "k8s.io/api/apps/v1" |
| 27 |
appsv1beta1 "k8s.io/api/apps/v1beta1" |
| 28 |
appsv1beta2 "k8s.io/api/apps/v1beta2" |
| 29 |
authenticationv1 "k8s.io/api/authentication/v1" |
| 30 |
authenticationv1alpha1 "k8s.io/api/authentication/v1alpha1" |
| 31 |
authenticationv1beta1 "k8s.io/api/authentication/v1beta1" |
| 32 |
authorizationv1 "k8s.io/api/authorization/v1" |
| 33 |
authorizationv1beta1 "k8s.io/api/authorization/v1beta1" |
| 34 |
autoscalingv1 "k8s.io/api/autoscaling/v1" |
| 35 |
autoscalingv2 "k8s.io/api/autoscaling/v2" |
| 36 |
autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1" |
| 37 |
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2" |
| 38 |
batchv1 "k8s.io/api/batch/v1" |
| 39 |
batchv1beta1 "k8s.io/api/batch/v1beta1" |
| 40 |
certificatesv1 "k8s.io/api/certificates/v1" |
| 41 |
certificatesv1alpha1 "k8s.io/api/certificates/v1alpha1" |
| 42 |
certificatesv1beta1 "k8s.io/api/certificates/v1beta1" |
| 43 |
coordinationv1 "k8s.io/api/coordination/v1" |
| 44 |
coordinationv1alpha2 "k8s.io/api/coordination/v1alpha2" |
| 45 |
coordinationv1beta1 "k8s.io/api/coordination/v1beta1" |
| 46 |
corev1 "k8s.io/api/core/v1" |
| 47 |
discoveryv1 "k8s.io/api/discovery/v1" |
| 48 |
discoveryv1beta1 "k8s.io/api/discovery/v1beta1" |
| 49 |
eventsv1 "k8s.io/api/events/v1" |
| 50 |
eventsv1beta1 "k8s.io/api/events/v1beta1" |
| 51 |
extensionsv1beta1 "k8s.io/api/extensions/v1beta1" |
| 52 |
flowcontrolv1 "k8s.io/api/flowcontrol/v1" |
| 53 |
flowcontrolv1beta1 "k8s.io/api/flowcontrol/v1beta1" |
| 54 |
flowcontrolv1beta2 "k8s.io/api/flowcontrol/v1beta2" |
| 55 |
flowcontrolv1beta3 "k8s.io/api/flowcontrol/v1beta3" |
| 56 |
networkingv1 "k8s.io/api/networking/v1" |
| 57 |
networkingv1alpha1 "k8s.io/api/networking/v1alpha1" |
| 58 |
networkingv1beta1 "k8s.io/api/networking/v1beta1" |
| 59 |
nodev1 "k8s.io/api/node/v1" |
| 60 |
nodev1alpha1 "k8s.io/api/node/v1alpha1" |
| 61 |
nodev1beta1 "k8s.io/api/node/v1beta1" |
| 62 |
policyv1 "k8s.io/api/policy/v1" |
| 63 |
policyv1beta1 "k8s.io/api/policy/v1beta1" |
| 64 |
rbacv1 "k8s.io/api/rbac/v1" |
| 65 |
rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" |
| 66 |
rbacv1beta1 "k8s.io/api/rbac/v1beta1" |
| 67 |
resourcev1alpha3 "k8s.io/api/resource/v1alpha3" |
| 68 |
resourcev1beta1 "k8s.io/api/resource/v1beta1" |
| 69 |
resourcev1beta2 "k8s.io/api/resource/v1beta2" |
| 70 |
schedulingv1 "k8s.io/api/scheduling/v1" |
| 71 |
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" |
| 72 |
schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" |
| 73 |
storagev1 "k8s.io/api/storage/v1" |
| 74 |
storagev1alpha1 "k8s.io/api/storage/v1alpha1" |
| 75 |
storagev1beta1 "k8s.io/api/storage/v1beta1" |
| 76 |
storagemigrationv1alpha1 "k8s.io/api/storagemigration/v1alpha1" |
| 77 |
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 78 |
runtime "k8s.io/apimachinery/pkg/runtime" |
| 79 |
schema "k8s.io/apimachinery/pkg/runtime/schema" |
| 80 |
serializer "k8s.io/apimachinery/pkg/runtime/serializer" |
| 81 |
utilruntime "k8s.io/apimachinery/pkg/util/runtime" |
| 82 |
) |
| 83 |
|
| 84 |
var Scheme = runtime.NewScheme() |
| 85 |
var Codecs = serializer.NewCodecFactory(Scheme) |
| 86 |
var ParameterCodec = runtime.NewParameterCodec(Scheme) |
| 87 |
var localSchemeBuilder = runtime.SchemeBuilder{ |
| 88 |
admissionregistrationv1.AddToScheme, |
| 89 |
admissionregistrationv1alpha1.AddToScheme, |
| 90 |
admissionregistrationv1beta1.AddToScheme, |
| 91 |
internalv1alpha1.AddToScheme, |
| 92 |
appsv1.AddToScheme, |
| 93 |
appsv1beta1.AddToScheme, |
| 94 |
appsv1beta2.AddToScheme, |
| 95 |
authenticationv1.AddToScheme, |
| 96 |
authenticationv1alpha1.AddToScheme, |
| 97 |
authenticationv1beta1.AddToScheme, |
| 98 |
authorizationv1.AddToScheme, |
| 99 |
authorizationv1beta1.AddToScheme, |
| 100 |
autoscalingv1.AddToScheme, |
| 101 |
autoscalingv2.AddToScheme, |
| 102 |
autoscalingv2beta1.AddToScheme, |
| 103 |
autoscalingv2beta2.AddToScheme, |
| 104 |
batchv1.AddToScheme, |
| 105 |
batchv1beta1.AddToScheme, |
| 106 |
certificatesv1.AddToScheme, |
| 107 |
certificatesv1beta1.AddToScheme, |
| 108 |
certificatesv1alpha1.AddToScheme, |
| 109 |
coordinationv1alpha2.AddToScheme, |
| 110 |
coordinationv1beta1.AddToScheme, |
| 111 |
coordinationv1.AddToScheme, |
| 112 |
corev1.AddToScheme, |
| 113 |
discoveryv1.AddToScheme, |
| 114 |
discoveryv1beta1.AddToScheme, |
| 115 |
eventsv1.AddToScheme, |
| 116 |
eventsv1beta1.AddToScheme, |
| 117 |
extensionsv1beta1.AddToScheme, |
| 118 |
flowcontrolv1.AddToScheme, |
| 119 |
flowcontrolv1beta1.AddToScheme, |
| 120 |
flowcontrolv1beta2.AddToScheme, |
| 121 |
flowcontrolv1beta3.AddToScheme, |
| 122 |
networkingv1.AddToScheme, |
| 123 |
networkingv1alpha1.AddToScheme, |
| 124 |
networkingv1beta1.AddToScheme, |
| 125 |
nodev1.AddToScheme, |
| 126 |
nodev1alpha1.AddToScheme, |
| 127 |
nodev1beta1.AddToScheme, |
| 128 |
policyv1.AddToScheme, |
| 129 |
policyv1beta1.AddToScheme, |
| 130 |
rbacv1.AddToScheme, |
| 131 |
rbacv1beta1.AddToScheme, |
| 132 |
rbacv1alpha1.AddToScheme, |
| 133 |
resourcev1beta2.AddToScheme, |
| 134 |
resourcev1beta1.AddToScheme, |
| 135 |
resourcev1alpha3.AddToScheme, |
| 136 |
schedulingv1alpha1.AddToScheme, |
| 137 |
schedulingv1beta1.AddToScheme, |
| 138 |
schedulingv1.AddToScheme, |
| 139 |
storagev1beta1.AddToScheme, |
| 140 |
storagev1.AddToScheme, |
| 141 |
storagev1alpha1.AddToScheme, |
| 142 |
storagemigrationv1alpha1.AddToScheme, |
| 143 |
} |
| 144 |
|
| 145 |
// AddToScheme adds all types of this clientset into the given scheme. This allows composition |
| 146 |
// of clientsets, like in: |
| 147 |
// |
| 148 |
// import ( |
| 149 |
// "k8s.io/client-go/kubernetes" |
| 150 |
// clientsetscheme "k8s.io/client-go/kubernetes/scheme" |
| 151 |
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" |
| 152 |
// ) |
| 153 |
// |
| 154 |
// kclientset, _ := kubernetes.NewForConfig(c) |
| 155 |
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) |
| 156 |
// |
| 157 |
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types |
| 158 |
// correctly. |
| 159 |
var AddToScheme = localSchemeBuilder.AddToScheme |
| 160 |
|
| 161 |
func init() { |
| 162 |
v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) |
| 163 |
utilruntime.Must(AddToScheme(Scheme)) |
| 164 |
} |