1/* 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 admissionregistrationv1 "k8s.io/api/admissionregistration/v1" 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 coordinationv1 "k8s.io/api/coordination/v1" 40 coordinationv1beta1 "k8s.io/api/coordination/v1beta1" 41 corev1 "k8s.io/api/core/v1" 42 discoveryv1alpha1 "k8s.io/api/discovery/v1alpha1" 43 discoveryv1beta1 "k8s.io/api/discovery/v1beta1" 44 eventsv1beta1 "k8s.io/api/events/v1beta1" 45 extensionsv1beta1 "k8s.io/api/extensions/v1beta1" 46 flowcontrolv1alpha1 "k8s.io/api/flowcontrol/v1alpha1" 47 networkingv1 "k8s.io/api/networking/v1" 48 networkingv1beta1 "k8s.io/api/networking/v1beta1" 49 nodev1alpha1 "k8s.io/api/node/v1alpha1" 50 nodev1beta1 "k8s.io/api/node/v1beta1" 51 policyv1beta1 "k8s.io/api/policy/v1beta1" 52 rbacv1 "k8s.io/api/rbac/v1" 53 rbacv1alpha1 "k8s.io/api/rbac/v1alpha1" 54 rbacv1beta1 "k8s.io/api/rbac/v1beta1" 55 schedulingv1 "k8s.io/api/scheduling/v1" 56 schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1" 57 schedulingv1beta1 "k8s.io/api/scheduling/v1beta1" 58 settingsv1alpha1 "k8s.io/api/settings/v1alpha1" 59 storagev1 "k8s.io/api/storage/v1" 60 storagev1alpha1 "k8s.io/api/storage/v1alpha1" 61 storagev1beta1 "k8s.io/api/storage/v1beta1" 62 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 63 runtime "k8s.io/apimachinery/pkg/runtime" 64 schema "k8s.io/apimachinery/pkg/runtime/schema" 65 serializer "k8s.io/apimachinery/pkg/runtime/serializer" 66 utilruntime "k8s.io/apimachinery/pkg/util/runtime" 67) 68 69var Scheme = runtime.NewScheme() 70var Codecs = serializer.NewCodecFactory(Scheme) 71var ParameterCodec = runtime.NewParameterCodec(Scheme) 72var localSchemeBuilder = runtime.SchemeBuilder{ 73 admissionregistrationv1.AddToScheme, 74 admissionregistrationv1beta1.AddToScheme, 75 appsv1.AddToScheme, 76 appsv1beta1.AddToScheme, 77 appsv1beta2.AddToScheme, 78 auditregistrationv1alpha1.AddToScheme, 79 authenticationv1.AddToScheme, 80 authenticationv1beta1.AddToScheme, 81 authorizationv1.AddToScheme, 82 authorizationv1beta1.AddToScheme, 83 autoscalingv1.AddToScheme, 84 autoscalingv2beta1.AddToScheme, 85 autoscalingv2beta2.AddToScheme, 86 batchv1.AddToScheme, 87 batchv1beta1.AddToScheme, 88 batchv2alpha1.AddToScheme, 89 certificatesv1beta1.AddToScheme, 90 coordinationv1beta1.AddToScheme, 91 coordinationv1.AddToScheme, 92 corev1.AddToScheme, 93 discoveryv1alpha1.AddToScheme, 94 discoveryv1beta1.AddToScheme, 95 eventsv1beta1.AddToScheme, 96 extensionsv1beta1.AddToScheme, 97 flowcontrolv1alpha1.AddToScheme, 98 networkingv1.AddToScheme, 99 networkingv1beta1.AddToScheme, 100 nodev1alpha1.AddToScheme, 101 nodev1beta1.AddToScheme, 102 policyv1beta1.AddToScheme, 103 rbacv1.AddToScheme, 104 rbacv1beta1.AddToScheme, 105 rbacv1alpha1.AddToScheme, 106 schedulingv1alpha1.AddToScheme, 107 schedulingv1beta1.AddToScheme, 108 schedulingv1.AddToScheme, 109 settingsv1alpha1.AddToScheme, 110 storagev1beta1.AddToScheme, 111 storagev1.AddToScheme, 112 storagev1alpha1.AddToScheme, 113} 114 115// AddToScheme adds all types of this clientset into the given scheme. This allows composition 116// of clientsets, like in: 117// 118// import ( 119// "k8s.io/client-go/kubernetes" 120// clientsetscheme "k8s.io/client-go/kubernetes/scheme" 121// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" 122// ) 123// 124// kclientset, _ := kubernetes.NewForConfig(c) 125// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) 126// 127// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types 128// correctly. 129var AddToScheme = localSchemeBuilder.AddToScheme 130 131func init() { 132 v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) 133 utilruntime.Must(AddToScheme(Scheme)) 134} 135