mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Merge pull request #48544 from sttts/sttts-typed-deepcopy-1.8
Automatic merge from submit-queue (batch tested with PRs 46094, 48544, 48807, 49102, 44174) Static deepcopy – phase 1 This PR is the follow-up of https://github.com/kubernetes/kubernetes/pull/36412, replacing the dynamic reflection based deepcopy with static DeepCopy+DeepCopyInto methods on API types. This PR **does not yet** include the code dropping the cloner from the scheme and all the porting of the calls to scheme.Copy. This will be part of a follow-up "Phase 2" PR. A couple of the commits will go in first: - [x] audit: fix deepcopy registration https://github.com/kubernetes/kubernetes/pull/48599 - [x] apimachinery+apiserver: separate test types in their own packages #48601 - [x] client-go: remove TPR example #48604 - [x] apimachinery: remove unneeded GetObjectKind() impls #48608 - [x] sanity check against origin, that OpenShift's types are fine for static deepcopy https://github.com/deads2k/origin/pull/34 TODO **after** review here: - [x] merge https://github.com/kubernetes/gengo/pull/32 and update vendoring commit
This commit is contained in:
		
							
								
								
									
										21
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										21
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							| @@ -2231,7 +2231,6 @@ | |||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "github.com/pelletier/go-buffruneio", | 			"ImportPath": "github.com/pelletier/go-buffruneio", | ||||||
| 			"Comment": "v0.1.0", |  | ||||||
| 			"Rev": "df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d" | 			"Rev": "df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| @@ -2985,43 +2984,43 @@ | |||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/args", | 			"ImportPath": "k8s.io/gengo/args", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators", | 			"ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators", | 			"ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/examples/import-boss/generators", | 			"ImportPath": "k8s.io/gengo/examples/import-boss/generators", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/examples/set-gen/generators", | 			"ImportPath": "k8s.io/gengo/examples/set-gen/generators", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/examples/set-gen/sets", | 			"ImportPath": "k8s.io/gengo/examples/set-gen/sets", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/generator", | 			"ImportPath": "k8s.io/gengo/generator", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/namer", | 			"ImportPath": "k8s.io/gengo/namer", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/parser", | 			"ImportPath": "k8s.io/gengo/parser", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/gengo/types", | 			"ImportPath": "k8s.io/gengo/types", | ||||||
| 			"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" | 			"Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"ImportPath": "k8s.io/heapster/metrics/api/v1/types", | 			"ImportPath": "k8s.io/heapster/metrics/api/v1/types", | ||||||
|   | |||||||
| @@ -13,10 +13,12 @@ go_library( | |||||||
|         "doc.go", |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|     ], |     ], | ||||||
|   | |||||||
| @@ -14,5 +14,6 @@ See the License for the specific language governing permissions and | |||||||
| limitations under the License. | limitations under the License. | ||||||
| */ | */ | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=package,register | ||||||
| // +groupName=kubeadm.k8s.io | // +groupName=kubeadm.k8s.io | ||||||
| package kubeadm // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" | package kubeadm // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" | ||||||
|   | |||||||
| @@ -22,6 +22,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type MasterConfiguration struct { | type MasterConfiguration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|  |  | ||||||
| @@ -86,6 +88,8 @@ type Etcd struct { | |||||||
| 	Image string | 	Image string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type NodeConfiguration struct { | type NodeConfiguration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,12 +14,14 @@ go_library( | |||||||
|         "doc.go", |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|         "zz_generated.defaults.go", |         "zz_generated.defaults.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//cmd/kubeadm/app/constants:go_default_library", |         "//cmd/kubeadm/app/constants:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|     ], |     ], | ||||||
|   | |||||||
| @@ -16,4 +16,5 @@ limitations under the License. | |||||||
|  |  | ||||||
| // +k8s:defaulter-gen=TypeMeta | // +k8s:defaulter-gen=TypeMeta | ||||||
| // +groupName=kubeadm.k8s.io | // +groupName=kubeadm.k8s.io | ||||||
|  | // +k8s:deepcopy-gen=package | ||||||
| package v1alpha1 // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha1" | package v1alpha1 // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha1" | ||||||
|   | |||||||
| @@ -22,6 +22,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type MasterConfiguration struct { | type MasterConfiguration struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|  |  | ||||||
| @@ -86,6 +88,8 @@ type Etcd struct { | |||||||
| 	Image string `json:"image"` | 	Image string `json:"image"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type NodeConfiguration struct { | type NodeConfiguration struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										229
									
								
								cmd/kubeadm/app/apis/kubeadm/v1alpha1/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										229
									
								
								cmd/kubeadm/app/apis/kubeadm/v1alpha1/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,229 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package v1alpha1 | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. | ||||||
|  | func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { | ||||||
|  | 	return []conversion.GeneratedDeepCopyFunc{ | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*API).DeepCopyInto(out.(*API)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&API{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Etcd).DeepCopyInto(out.(*Etcd)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Etcd{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MasterConfiguration{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Networking).DeepCopyInto(out.(*Networking)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Networking{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NodeConfiguration{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TokenDiscovery{})}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *API) DeepCopyInto(out *API) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new API. | ||||||
|  | func (x *API) DeepCopy() *API { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(API) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Etcd) DeepCopyInto(out *Etcd) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Endpoints != nil { | ||||||
|  | 		in, out := &in.Endpoints, &out.Endpoints | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.ExtraArgs != nil { | ||||||
|  | 		in, out := &in.ExtraArgs, &out.ExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Etcd. | ||||||
|  | func (x *Etcd) DeepCopy() *Etcd { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Etcd) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MasterConfiguration) DeepCopyInto(out *MasterConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.API = in.API | ||||||
|  | 	in.Etcd.DeepCopyInto(&out.Etcd) | ||||||
|  | 	out.Networking = in.Networking | ||||||
|  | 	if in.AuthorizationModes != nil { | ||||||
|  | 		in, out := &in.AuthorizationModes, &out.AuthorizationModes | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.APIServerExtraArgs != nil { | ||||||
|  | 		in, out := &in.APIServerExtraArgs, &out.APIServerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.ControllerManagerExtraArgs != nil { | ||||||
|  | 		in, out := &in.ControllerManagerExtraArgs, &out.ControllerManagerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.SchedulerExtraArgs != nil { | ||||||
|  | 		in, out := &in.SchedulerExtraArgs, &out.SchedulerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.APIServerCertSANs != nil { | ||||||
|  | 		in, out := &in.APIServerCertSANs, &out.APIServerCertSANs | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MasterConfiguration. | ||||||
|  | func (x *MasterConfiguration) DeepCopy() *MasterConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(MasterConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *MasterConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Networking) DeepCopyInto(out *Networking) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Networking. | ||||||
|  | func (x *Networking) DeepCopy() *Networking { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Networking) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NodeConfiguration) DeepCopyInto(out *NodeConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	if in.DiscoveryTokenAPIServers != nil { | ||||||
|  | 		in, out := &in.DiscoveryTokenAPIServers, &out.DiscoveryTokenAPIServers | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfiguration. | ||||||
|  | func (x *NodeConfiguration) DeepCopy() *NodeConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NodeConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *NodeConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TokenDiscovery) DeepCopyInto(out *TokenDiscovery) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Addresses != nil { | ||||||
|  | 		in, out := &in.Addresses, &out.Addresses | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenDiscovery. | ||||||
|  | func (x *TokenDiscovery) DeepCopy() *TokenDiscovery { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TokenDiscovery) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
							
								
								
									
										235
									
								
								cmd/kubeadm/app/apis/kubeadm/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										235
									
								
								cmd/kubeadm/app/apis/kubeadm/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,235 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package kubeadm | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
|  | func init() { | ||||||
|  | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
|  | // to allow building arbitrary schemes. | ||||||
|  | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
|  | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*API).DeepCopyInto(out.(*API)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&API{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Etcd).DeepCopyInto(out.(*Etcd)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Etcd{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MasterConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Networking).DeepCopyInto(out.(*Networking)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Networking{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NodeConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TokenDiscovery{})}, | ||||||
|  | 	) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *API) DeepCopyInto(out *API) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new API. | ||||||
|  | func (x *API) DeepCopy() *API { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(API) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Etcd) DeepCopyInto(out *Etcd) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Endpoints != nil { | ||||||
|  | 		in, out := &in.Endpoints, &out.Endpoints | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.ExtraArgs != nil { | ||||||
|  | 		in, out := &in.ExtraArgs, &out.ExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Etcd. | ||||||
|  | func (x *Etcd) DeepCopy() *Etcd { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Etcd) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MasterConfiguration) DeepCopyInto(out *MasterConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.API = in.API | ||||||
|  | 	in.Etcd.DeepCopyInto(&out.Etcd) | ||||||
|  | 	out.Networking = in.Networking | ||||||
|  | 	if in.AuthorizationModes != nil { | ||||||
|  | 		in, out := &in.AuthorizationModes, &out.AuthorizationModes | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.APIServerExtraArgs != nil { | ||||||
|  | 		in, out := &in.APIServerExtraArgs, &out.APIServerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.ControllerManagerExtraArgs != nil { | ||||||
|  | 		in, out := &in.ControllerManagerExtraArgs, &out.ControllerManagerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.SchedulerExtraArgs != nil { | ||||||
|  | 		in, out := &in.SchedulerExtraArgs, &out.SchedulerExtraArgs | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.APIServerCertSANs != nil { | ||||||
|  | 		in, out := &in.APIServerCertSANs, &out.APIServerCertSANs | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MasterConfiguration. | ||||||
|  | func (x *MasterConfiguration) DeepCopy() *MasterConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(MasterConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *MasterConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Networking) DeepCopyInto(out *Networking) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Networking. | ||||||
|  | func (x *Networking) DeepCopy() *Networking { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Networking) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NodeConfiguration) DeepCopyInto(out *NodeConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	if in.DiscoveryTokenAPIServers != nil { | ||||||
|  | 		in, out := &in.DiscoveryTokenAPIServers, &out.DiscoveryTokenAPIServers | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfiguration. | ||||||
|  | func (x *NodeConfiguration) DeepCopy() *NodeConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NodeConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *NodeConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TokenDiscovery) DeepCopyInto(out *TokenDiscovery) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Addresses != nil { | ||||||
|  | 		in, out := &in.Addresses, &out.Addresses | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenDiscovery. | ||||||
|  | func (x *TokenDiscovery) DeepCopy() *TokenDiscovery { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TokenDiscovery) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
| @@ -13,10 +13,12 @@ go_library( | |||||||
|         "doc.go", |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|     ], |     ], | ||||||
|   | |||||||
| @@ -14,5 +14,6 @@ See the License for the specific language governing permissions and | |||||||
| limitations under the License. | limitations under the License. | ||||||
| */ | */ | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=package,register | ||||||
| // +groupName=testgroup.k8s.io | // +groupName=testgroup.k8s.io | ||||||
| package testgroup // import "k8s.io/kubernetes/cmd/libs/go2idl/client-gen/test_apis/testgroup" | package testgroup // import "k8s.io/kubernetes/cmd/libs/go2idl/client-gen/test_apis/testgroup" | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ package testgroup | |||||||
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type TestType struct { | type TestType struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -26,6 +27,8 @@ type TestType struct { | |||||||
| 	Status TestTypeStatus | 	Status TestTypeStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type TestTypeList struct { | type TestTypeList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	metav1.ListMeta | 	metav1.ListMeta | ||||||
|   | |||||||
| @@ -14,11 +14,13 @@ go_library( | |||||||
|         "register.go", |         "register.go", | ||||||
|         "types.generated.go", |         "types.generated.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/github.com/ugorji/go/codec:go_default_library", |         "//vendor/github.com/ugorji/go/codec:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", | ||||||
|   | |||||||
| @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and | |||||||
| limitations under the License. | limitations under the License. | ||||||
| */ | */ | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=package,register | ||||||
| // +k8s:openapi-gen=true | // +k8s:openapi-gen=true | ||||||
| // +groupName=testgroup.k8s.io | // +groupName=testgroup.k8s.io | ||||||
| package v1 | package v1 | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ package v1 | |||||||
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type TestType struct { | type TestType struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| @@ -32,6 +33,8 @@ type TestType struct { | |||||||
| 	Status TestTypeStatus `json:"status,omitempty"` | 	Status TestTypeStatus `json:"status,omitempty"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type TestTypeList struct { | type TestTypeList struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| 	// +optional | 	// +optional | ||||||
|   | |||||||
| @@ -0,0 +1,129 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package v1 | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
|  | func init() { | ||||||
|  | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
|  | // to allow building arbitrary schemes. | ||||||
|  | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
|  | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestType).DeepCopyInto(out.(*TestType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestType{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestTypeList).DeepCopyInto(out.(*TestTypeList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestTypeList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestTypeStatus).DeepCopyInto(out.(*TestTypeStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestTypeStatus{})}, | ||||||
|  | 	) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestType) DeepCopyInto(out *TestType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType. | ||||||
|  | func (x *TestType) DeepCopy() *TestType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TestType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestTypeList) DeepCopyInto(out *TestTypeList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]TestType, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeList. | ||||||
|  | func (x *TestTypeList) DeepCopy() *TestTypeList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestTypeList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TestTypeList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestTypeStatus) DeepCopyInto(out *TestTypeStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeStatus. | ||||||
|  | func (x *TestTypeStatus) DeepCopy() *TestTypeStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestTypeStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
| @@ -0,0 +1,129 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package testgroup | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
|  | func init() { | ||||||
|  | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
|  | // to allow building arbitrary schemes. | ||||||
|  | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
|  | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestType).DeepCopyInto(out.(*TestType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestType{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestTypeList).DeepCopyInto(out.(*TestTypeList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestTypeList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestTypeStatus).DeepCopyInto(out.(*TestTypeStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestTypeStatus{})}, | ||||||
|  | 	) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestType) DeepCopyInto(out *TestType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType. | ||||||
|  | func (x *TestType) DeepCopy() *TestType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TestType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestTypeList) DeepCopyInto(out *TestTypeList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]TestType, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeList. | ||||||
|  | func (x *TestTypeList) DeepCopy() *TestTypeList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestTypeList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TestTypeList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestTypeStatus) DeepCopyInto(out *TestTypeStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeStatus. | ||||||
|  | func (x *TestTypeStatus) DeepCopy() *TestTypeStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestTypeStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
| @@ -93,6 +93,7 @@ type ClusterStatus struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. | // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. | ||||||
| type Cluster struct { | type Cluster struct { | ||||||
| @@ -110,6 +111,8 @@ type Cluster struct { | |||||||
| 	Status ClusterStatus | 	Status ClusterStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A list of all the kubernetes clusters registered to the federation | // A list of all the kubernetes clusters registered to the federation | ||||||
| type ClusterList struct { | type ClusterList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -93,6 +93,7 @@ type ClusterStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  |  | ||||||
| // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. | // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. | ||||||
| @@ -111,6 +112,8 @@ type Cluster struct { | |||||||
| 	Status ClusterStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` | 	Status ClusterStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A list of all the kubernetes clusters registered to the federation | // A list of all the kubernetes clusters registered to the federation | ||||||
| type ClusterList struct { | type ClusterList struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
| @@ -21,148 +21,224 @@ limitations under the License. | |||||||
| package v1beta1 | package v1beta1 | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	core_v1 "k8s.io/api/core/v1" | 	v1 "k8s.io/api/core/v1" | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Cluster, InType: reflect.TypeOf(&Cluster{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, | 			in.(*Cluster).DeepCopyInto(out.(*Cluster)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterSelectorRequirement, InType: reflect.TypeOf(&ClusterSelectorRequirement{})}, | 		}, InType: reflect.TypeOf(&Cluster{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, | 			in.(*ClusterCondition).DeepCopyInto(out.(*ClusterCondition)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterCondition{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterList).DeepCopyInto(out.(*ClusterList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterSelectorRequirement).DeepCopyInto(out.(*ClusterSelectorRequirement)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterSelectorRequirement{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterSpec).DeepCopyInto(out.(*ClusterSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterStatus).DeepCopyInto(out.(*ClusterStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ServerAddressByClientCIDR).DeepCopyInto(out.(*ServerAddressByClientCIDR)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1beta1_Cluster is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Cluster) DeepCopyInto(out *Cluster) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Cluster) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Cluster) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. | ||||||
|  | func (x *Cluster) DeepCopy() *Cluster { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Cluster) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Cluster) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) { | ||||||
|  | 	*out = *in | ||||||
|  | 	in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) | ||||||
|  | 	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition. | ||||||
|  | func (x *ClusterCondition) DeepCopy() *ClusterCondition { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterCondition) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterList) DeepCopyInto(out *ClusterList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]Cluster, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. | ||||||
|  | func (x *ClusterList) DeepCopy() *ClusterList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterSelectorRequirement) DeepCopyInto(out *ClusterSelectorRequirement) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Values != nil { | ||||||
|  | 		in, out := &in.Values, &out.Values | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSelectorRequirement. | ||||||
|  | func (x *ClusterSelectorRequirement) DeepCopy() *ClusterSelectorRequirement { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterSelectorRequirement) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.ServerAddressByClientCIDRs != nil { | ||||||
|  | 		in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs | ||||||
|  | 		*out = make([]ServerAddressByClientCIDR, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.SecretRef != nil { | ||||||
|  | 		in, out := &in.SecretRef, &out.SecretRef | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			*out = new(v1.LocalObjectReference) | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_v1beta1_ClusterSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_v1beta1_ClusterStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_v1beta1_ClusterCondition is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_v1beta1_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterCondition) |  | ||||||
| 		out := out.(*ClusterCondition) |  | ||||||
| 		*out = *in |  | ||||||
| 		out.LastProbeTime = in.LastProbeTime.DeepCopy() |  | ||||||
| 		out.LastTransitionTime = in.LastTransitionTime.DeepCopy() |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_v1beta1_ClusterList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterList) |  | ||||||
| 		out := out.(*ClusterList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]Cluster, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_v1beta1_Cluster(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_v1beta1_ClusterSelectorRequirement is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_v1beta1_ClusterSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterSelectorRequirement) |  | ||||||
| 		out := out.(*ClusterSelectorRequirement) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Values != nil { |  | ||||||
| 			in, out := &in.Values, &out.Values |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_v1beta1_ClusterSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterSpec) |  | ||||||
| 		out := out.(*ClusterSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.ServerAddressByClientCIDRs != nil { |  | ||||||
| 			in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs |  | ||||||
| 			*out = make([]ServerAddressByClientCIDR, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.SecretRef != nil { |  | ||||||
| 			in, out := &in.SecretRef, &out.SecretRef |  | ||||||
| 			*out = new(core_v1.LocalObjectReference) |  | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1beta1_ClusterStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. | ||||||
| func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClusterSpec) DeepCopy() *ClusterSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ClusterStatus) |  | ||||||
| 		out := out.(*ClusterStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Conditions != nil { |  | ||||||
| 			in, out := &in.Conditions, &out.Conditions |  | ||||||
| 			*out = make([]ClusterCondition, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_v1beta1_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.Zones != nil { |  | ||||||
| 			in, out := &in.Zones, &out.Zones |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClusterSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1beta1_ServerAddressByClientCIDR is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1beta1_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ServerAddressByClientCIDR) | 	if in.Conditions != nil { | ||||||
| 		out := out.(*ServerAddressByClientCIDR) | 		in, out := &in.Conditions, &out.Conditions | ||||||
| 		*out = *in | 		*out = make([]ClusterCondition, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.Zones != nil { | ||||||
|  | 		in, out := &in.Zones, &out.Zones | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. | ||||||
|  | func (x *ClusterStatus) DeepCopy() *ClusterStatus { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClusterStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR. | ||||||
|  | func (x *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ServerAddressByClientCIDR) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -21,207 +21,310 @@ limitations under the License. | |||||||
| package federation | package federation | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	core_v1 "k8s.io/api/core/v1" | 	v1 "k8s.io/api/core/v1" | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	api "k8s.io/kubernetes/pkg/api" | 	api "k8s.io/kubernetes/pkg/api" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_Cluster, InType: reflect.TypeOf(&Cluster{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, | 			in.(*Cluster).DeepCopyInto(out.(*Cluster)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterPreferences, InType: reflect.TypeOf(&ClusterPreferences{})}, | 		}, InType: reflect.TypeOf(&Cluster{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterServiceIngress, InType: reflect.TypeOf(&ClusterServiceIngress{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, | 			in.(*ClusterCondition).DeepCopyInto(out.(*ClusterCondition)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_FederatedServiceIngress, InType: reflect.TypeOf(&FederatedServiceIngress{})}, | 		}, InType: reflect.TypeOf(&ClusterCondition{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ReplicaAllocationPreferences, InType: reflect.TypeOf(&ReplicaAllocationPreferences{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, | 			in.(*ClusterList).DeepCopyInto(out.(*ClusterList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterPreferences).DeepCopyInto(out.(*ClusterPreferences)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterPreferences{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterServiceIngress).DeepCopyInto(out.(*ClusterServiceIngress)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterServiceIngress{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterSpec).DeepCopyInto(out.(*ClusterSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterStatus).DeepCopyInto(out.(*ClusterStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*FederatedServiceIngress).DeepCopyInto(out.(*FederatedServiceIngress)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&FederatedServiceIngress{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ReplicaAllocationPreferences).DeepCopyInto(out.(*ReplicaAllocationPreferences)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ReplicaAllocationPreferences{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ServerAddressByClientCIDR).DeepCopyInto(out.(*ServerAddressByClientCIDR)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_Cluster is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Cluster) DeepCopyInto(out *Cluster) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Cluster) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Cluster) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. | ||||||
|  | func (x *Cluster) DeepCopy() *Cluster { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Cluster) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Cluster) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) { | ||||||
|  | 	*out = *in | ||||||
|  | 	in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) | ||||||
|  | 	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition. | ||||||
|  | func (x *ClusterCondition) DeepCopy() *ClusterCondition { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterCondition) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterList) DeepCopyInto(out *ClusterList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]Cluster, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. | ||||||
|  | func (x *ClusterList) DeepCopy() *ClusterList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterPreferences) DeepCopyInto(out *ClusterPreferences) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.MaxReplicas != nil { | ||||||
|  | 		in, out := &in.MaxReplicas, &out.MaxReplicas | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_federation_ClusterSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_federation_ClusterStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_federation_ClusterCondition is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_federation_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterCondition) |  | ||||||
| 		out := out.(*ClusterCondition) |  | ||||||
| 		*out = *in |  | ||||||
| 		out.LastProbeTime = in.LastProbeTime.DeepCopy() |  | ||||||
| 		out.LastTransitionTime = in.LastTransitionTime.DeepCopy() |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_federation_ClusterList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterList) |  | ||||||
| 		out := out.(*ClusterList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]Cluster, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_federation_Cluster(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_federation_ClusterPreferences is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_federation_ClusterPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ClusterPreferences) |  | ||||||
| 		out := out.(*ClusterPreferences) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.MaxReplicas != nil { |  | ||||||
| 			in, out := &in.MaxReplicas, &out.MaxReplicas |  | ||||||
| 			*out = new(int64) | 			*out = new(int64) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_ClusterServiceIngress is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPreferences. | ||||||
| func DeepCopy_federation_ClusterServiceIngress(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClusterPreferences) DeepCopy() *ClusterPreferences { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ClusterServiceIngress) |  | ||||||
| 		out := out.(*ClusterServiceIngress) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]core_v1.LoadBalancerIngress, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClusterPreferences) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_ClusterSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterServiceIngress) DeepCopyInto(out *ClusterServiceIngress) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClusterSpec) | 	if in.Items != nil { | ||||||
| 		out := out.(*ClusterSpec) | 		in, out := &in.Items, &out.Items | ||||||
| 		*out = *in | 		*out = make([]v1.LoadBalancerIngress, len(*in)) | ||||||
| 		if in.ServerAddressByClientCIDRs != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs | 	} | ||||||
| 			*out = make([]ServerAddressByClientCIDR, len(*in)) | 	return | ||||||
| 			copy(*out, *in) | } | ||||||
| 		} | 
 | ||||||
| 		if in.SecretRef != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterServiceIngress. | ||||||
| 			in, out := &in.SecretRef, &out.SecretRef | func (x *ClusterServiceIngress) DeepCopy() *ClusterServiceIngress { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterServiceIngress) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.ServerAddressByClientCIDRs != nil { | ||||||
|  | 		in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs | ||||||
|  | 		*out = make([]ServerAddressByClientCIDR, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.SecretRef != nil { | ||||||
|  | 		in, out := &in.SecretRef, &out.SecretRef | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(api.LocalObjectReference) | 			*out = new(api.LocalObjectReference) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_ClusterStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. | ||||||
| func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClusterSpec) DeepCopy() *ClusterSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ClusterStatus) |  | ||||||
| 		out := out.(*ClusterStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Conditions != nil { |  | ||||||
| 			in, out := &in.Conditions, &out.Conditions |  | ||||||
| 			*out = make([]ClusterCondition, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_federation_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.Zones != nil { |  | ||||||
| 			in, out := &in.Zones, &out.Zones |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClusterSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_FederatedServiceIngress is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_federation_FederatedServiceIngress(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*FederatedServiceIngress) | 	if in.Conditions != nil { | ||||||
| 		out := out.(*FederatedServiceIngress) | 		in, out := &in.Conditions, &out.Conditions | ||||||
| 		*out = *in | 		*out = make([]ClusterCondition, len(*in)) | ||||||
| 		if in.Items != nil { | 		for i := range *in { | ||||||
| 			in, out := &in.Items, &out.Items | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			*out = make([]ClusterServiceIngress, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_federation_ClusterServiceIngress(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.Zones != nil { | ||||||
|  | 		in, out := &in.Zones, &out.Zones | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_ReplicaAllocationPreferences is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. | ||||||
| func DeepCopy_federation_ReplicaAllocationPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClusterStatus) DeepCopy() *ClusterStatus { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ReplicaAllocationPreferences) |  | ||||||
| 		out := out.(*ReplicaAllocationPreferences) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Clusters != nil { |  | ||||||
| 			in, out := &in.Clusters, &out.Clusters |  | ||||||
| 			*out = make(map[string]ClusterPreferences) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				newVal := new(ClusterPreferences) |  | ||||||
| 				if err := DeepCopy_federation_ClusterPreferences(&val, newVal, c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 				(*out)[key] = *newVal |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClusterStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_federation_ServerAddressByClientCIDR is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_federation_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *FederatedServiceIngress) DeepCopyInto(out *FederatedServiceIngress) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ServerAddressByClientCIDR) | 	if in.Items != nil { | ||||||
| 		out := out.(*ServerAddressByClientCIDR) | 		in, out := &in.Items, &out.Items | ||||||
| 		*out = *in | 		*out = make([]ClusterServiceIngress, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new FederatedServiceIngress. | ||||||
|  | func (x *FederatedServiceIngress) DeepCopy() *FederatedServiceIngress { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(FederatedServiceIngress) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ReplicaAllocationPreferences) DeepCopyInto(out *ReplicaAllocationPreferences) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Clusters != nil { | ||||||
|  | 		in, out := &in.Clusters, &out.Clusters | ||||||
|  | 		*out = make(map[string]ClusterPreferences, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			newVal := new(ClusterPreferences) | ||||||
|  | 			val.DeepCopyInto(newVal) | ||||||
|  | 			(*out)[key] = *newVal | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaAllocationPreferences. | ||||||
|  | func (x *ReplicaAllocationPreferences) DeepCopy() *ReplicaAllocationPreferences { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ReplicaAllocationPreferences) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR. | ||||||
|  | func (x *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ServerAddressByClientCIDR) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -61,7 +61,10 @@ func init() { | |||||||
| 	} | 	} | ||||||
| 	if err := scheme.AddGeneratedDeepCopyFuncs( | 	if err := scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{ | 		conversion.GeneratedDeepCopyFunc{ | ||||||
| 			Fn:     metav1.DeepCopy_v1_Time, | 			Fn: func(in, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 				in.(*metav1.Time).DeepCopyInto(out.(*metav1.Time)) | ||||||
|  | 				return nil | ||||||
|  | 			}, | ||||||
| 			InType: reflect.TypeOf(&metav1.Time{}), | 			InType: reflect.TypeOf(&metav1.Time{}), | ||||||
| 		}, | 		}, | ||||||
| 	); err != nil { | 	); err != nil { | ||||||
|   | |||||||
| @@ -589,6 +589,7 @@ staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer | |||||||
| staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1 | staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1 | ||||||
| staging/src/k8s.io/apimachinery/pkg/conversion | staging/src/k8s.io/apimachinery/pkg/conversion | ||||||
| staging/src/k8s.io/apimachinery/pkg/conversion/unstructured | staging/src/k8s.io/apimachinery/pkg/conversion/unstructured | ||||||
|  | staging/src/k8s.io/apimachinery/pkg/labels | ||||||
| staging/src/k8s.io/apimachinery/pkg/openapi | staging/src/k8s.io/apimachinery/pkg/openapi | ||||||
| staging/src/k8s.io/apimachinery/pkg/runtime/schema | staging/src/k8s.io/apimachinery/pkg/runtime/schema | ||||||
| staging/src/k8s.io/apimachinery/pkg/runtime/serializer | staging/src/k8s.io/apimachinery/pkg/runtime/serializer | ||||||
|   | |||||||
| @@ -39,7 +39,7 @@ function kfind() { | |||||||
|     # include the "special" vendor directories which are actually part |     # include the "special" vendor directories which are actually part | ||||||
|     # of the Kubernetes source tree - generators will use these for |     # of the Kubernetes source tree - generators will use these for | ||||||
|     # including certain core API concepts. |     # including certain core API concepts. | ||||||
|     find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver ./vendor/k8s.io/kube-aggregator ./vendor/k8s.io/apiextensions-apiserver ./vendor/k8s.io/metrics ./vendor/k8s.io/sample-apiserver ./vendor/k8s.io/api \ |     find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver ./vendor/k8s.io/kube-aggregator ./vendor/k8s.io/apiextensions-apiserver ./vendor/k8s.io/metrics ./vendor/k8s.io/sample-apiserver ./vendor/k8s.io/api ./vendor/k8s.io/client-go \ | ||||||
|         \(                         \ |         \(                         \ | ||||||
|         -not \(                    \ |         -not \(                    \ | ||||||
|             \(                     \ |             \(                     \ | ||||||
|   | |||||||
| @@ -29,12 +29,23 @@ import ( | |||||||
| type FakeAPIObject struct{} | type FakeAPIObject struct{} | ||||||
|  |  | ||||||
| func (obj *FakeAPIObject) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | func (obj *FakeAPIObject) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | ||||||
|  | func (obj *FakeAPIObject) DeepCopyObject() runtime.Object { | ||||||
|  | 	if obj == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	clone := *obj | ||||||
|  | 	return &clone | ||||||
|  | } | ||||||
|  |  | ||||||
| type ExtensionAPIObject struct { | type ExtensionAPIObject struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	metav1.ObjectMeta | 	metav1.ObjectMeta | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func (obj *ExtensionAPIObject) DeepCopyObject() runtime.Object { | ||||||
|  | 	panic("ExtensionAPIObject does not support DeepCopy") | ||||||
|  | } | ||||||
|  |  | ||||||
| func TestGetReference(t *testing.T) { | func TestGetReference(t *testing.T) { | ||||||
|  |  | ||||||
| 	// when vendoring kube, if you don't force the set of registered versions (like make test does) | 	// when vendoring kube, if you don't force the set of registered versions (like make test does) | ||||||
|   | |||||||
| @@ -417,6 +417,7 @@ const ( | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type PersistentVolume struct { | type PersistentVolume struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -483,6 +484,8 @@ type PersistentVolumeStatus struct { | |||||||
| 	Reason string | 	Reason string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type PersistentVolumeList struct { | type PersistentVolumeList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -491,6 +494,7 @@ type PersistentVolumeList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PersistentVolumeClaim is a user's request for and claim to a persistent volume | // PersistentVolumeClaim is a user's request for and claim to a persistent volume | ||||||
| type PersistentVolumeClaim struct { | type PersistentVolumeClaim struct { | ||||||
| @@ -507,6 +511,8 @@ type PersistentVolumeClaim struct { | |||||||
| 	Status PersistentVolumeClaimStatus | 	Status PersistentVolumeClaimStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type PersistentVolumeClaimList struct { | type PersistentVolumeClaimList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -1839,6 +1845,8 @@ const ( | |||||||
| 	RestartPolicyNever     RestartPolicy = "Never" | 	RestartPolicyNever     RestartPolicy = "Never" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodList is a list of Pods. | // PodList is a list of Pods. | ||||||
| type PodList struct { | type PodList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2356,6 +2364,8 @@ type PodStatus struct { | |||||||
| 	ContainerStatuses []ContainerStatus | 	ContainerStatuses []ContainerStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded | // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded | ||||||
| type PodStatusResult struct { | type PodStatusResult struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2368,6 +2378,7 @@ type PodStatusResult struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Pod is a collection of containers, used as either input (create, update) or as output (list, get). | // Pod is a collection of containers, used as either input (create, update) or as output (list, get). | ||||||
| type Pod struct { | type Pod struct { | ||||||
| @@ -2397,6 +2408,7 @@ type PodTemplateSpec struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodTemplate describes a template for creating copies of a predefined pod. | // PodTemplate describes a template for creating copies of a predefined pod. | ||||||
| type PodTemplate struct { | type PodTemplate struct { | ||||||
| @@ -2409,6 +2421,8 @@ type PodTemplate struct { | |||||||
| 	Template PodTemplateSpec | 	Template PodTemplateSpec | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodTemplateList is a list of PodTemplates. | // PodTemplateList is a list of PodTemplates. | ||||||
| type PodTemplateList struct { | type PodTemplateList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2502,6 +2516,7 @@ type ReplicationControllerCondition struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ReplicationController represents the configuration of a replication controller. | // ReplicationController represents the configuration of a replication controller. | ||||||
| type ReplicationController struct { | type ReplicationController struct { | ||||||
| @@ -2519,6 +2534,8 @@ type ReplicationController struct { | |||||||
| 	Status ReplicationControllerStatus | 	Status ReplicationControllerStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ReplicationControllerList is a collection of replication controllers. | // ReplicationControllerList is a collection of replication controllers. | ||||||
| type ReplicationControllerList struct { | type ReplicationControllerList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2534,6 +2551,8 @@ const ( | |||||||
| 	ClusterIPNone = "None" | 	ClusterIPNone = "None" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ServiceList holds a list of services. | // ServiceList holds a list of services. | ||||||
| type ServiceList struct { | type ServiceList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2732,6 +2751,7 @@ type ServicePort struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Service is a named abstraction of software service (for example, mysql) consisting of local port | // Service is a named abstraction of software service (for example, mysql) consisting of local port | ||||||
| // (for example 3306) that the proxy listens on, and the selector that determines which pods | // (for example 3306) that the proxy listens on, and the selector that determines which pods | ||||||
| @@ -2751,6 +2771,7 @@ type Service struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ServiceAccount binds together: | // ServiceAccount binds together: | ||||||
| // * a name, understood by users, and perhaps by peripheral systems, for an identity | // * a name, understood by users, and perhaps by peripheral systems, for an identity | ||||||
| @@ -2776,6 +2797,8 @@ type ServiceAccount struct { | |||||||
| 	AutomountServiceAccountToken *bool | 	AutomountServiceAccountToken *bool | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ServiceAccountList is a list of ServiceAccount objects | // ServiceAccountList is a list of ServiceAccount objects | ||||||
| type ServiceAccountList struct { | type ServiceAccountList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -2786,6 +2809,7 @@ type ServiceAccountList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Endpoints is a collection of endpoints that implement the actual service.  Example: | // Endpoints is a collection of endpoints that implement the actual service.  Example: | ||||||
| //   Name: "mysvc", | //   Name: "mysvc", | ||||||
| @@ -2855,6 +2879,8 @@ type EndpointPort struct { | |||||||
| 	Protocol Protocol | 	Protocol Protocol | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // EndpointsList is a list of endpoints. | // EndpointsList is a list of endpoints. | ||||||
| type EndpointsList struct { | type EndpointsList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3126,6 +3152,7 @@ type ResourceList map[ResourceName]resource.Quantity | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Node is a worker node in Kubernetes | // Node is a worker node in Kubernetes | ||||||
| // The name of the node according to etcd is in ObjectMeta.Name. | // The name of the node according to etcd is in ObjectMeta.Name. | ||||||
| @@ -3143,6 +3170,8 @@ type Node struct { | |||||||
| 	Status NodeStatus | 	Status NodeStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NodeList is a list of nodes. | // NodeList is a list of nodes. | ||||||
| type NodeList struct { | type NodeList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3186,6 +3215,7 @@ const ( | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A namespace provides a scope for Names. | // A namespace provides a scope for Names. | ||||||
| // Use of multiple namespaces is optional | // Use of multiple namespaces is optional | ||||||
| @@ -3203,6 +3233,8 @@ type Namespace struct { | |||||||
| 	Status NamespaceStatus | 	Status NamespaceStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NamespaceList is a list of Namespaces. | // NamespaceList is a list of Namespaces. | ||||||
| type NamespaceList struct { | type NamespaceList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3212,6 +3244,8 @@ type NamespaceList struct { | |||||||
| 	Items []Namespace | 	Items []Namespace | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Binding ties one object to another; for example, a pod is bound to a node by a scheduler. | // Binding ties one object to another; for example, a pod is bound to a node by a scheduler. | ||||||
| // Deprecated in 1.7, please use the bindings subresource of pods instead. | // Deprecated in 1.7, please use the bindings subresource of pods instead. | ||||||
| type Binding struct { | type Binding struct { | ||||||
| @@ -3245,6 +3279,8 @@ const ( | |||||||
| 	DeletePropagationForeground DeletionPropagation = "Foreground" | 	DeletePropagationForeground DeletionPropagation = "Foreground" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // DeleteOptions may be provided when deleting an API object | // DeleteOptions may be provided when deleting an API object | ||||||
| // DEPRECATED: This type has been moved to meta/v1 and will be removed soon. | // DEPRECATED: This type has been moved to meta/v1 and will be removed soon. | ||||||
| type DeleteOptions struct { | type DeleteOptions struct { | ||||||
| @@ -3276,6 +3312,8 @@ type DeleteOptions struct { | |||||||
| 	PropagationPolicy *DeletionPropagation | 	PropagationPolicy *DeletionPropagation | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ListOptions is the query options to a standard REST list call, and has future support for | // ListOptions is the query options to a standard REST list call, and has future support for | ||||||
| // watch calls. | // watch calls. | ||||||
| // DEPRECATED: This type has been moved to meta/v1 and will be removed soon. | // DEPRECATED: This type has been moved to meta/v1 and will be removed soon. | ||||||
| @@ -3303,6 +3341,8 @@ type ListOptions struct { | |||||||
| 	TimeoutSeconds *int64 | 	TimeoutSeconds *int64 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodLogOptions is the query options for a Pod's logs REST call | // PodLogOptions is the query options for a Pod's logs REST call | ||||||
| type PodLogOptions struct { | type PodLogOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3335,6 +3375,8 @@ type PodLogOptions struct { | |||||||
| 	LimitBytes *int64 | 	LimitBytes *int64 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodAttachOptions is the query options to a Pod's remote attach call | // PodAttachOptions is the query options to a Pod's remote attach call | ||||||
| // TODO: merge w/ PodExecOptions below for stdin, stdout, etc | // TODO: merge w/ PodExecOptions below for stdin, stdout, etc | ||||||
| type PodAttachOptions struct { | type PodAttachOptions struct { | ||||||
| @@ -3361,6 +3403,8 @@ type PodAttachOptions struct { | |||||||
| 	Container string | 	Container string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodExecOptions is the query options to a Pod's remote exec call | // PodExecOptions is the query options to a Pod's remote exec call | ||||||
| type PodExecOptions struct { | type PodExecOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3384,6 +3428,8 @@ type PodExecOptions struct { | |||||||
| 	Command []string | 	Command []string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodPortForwardOptions is the query options to a Pod's port forward call | // PodPortForwardOptions is the query options to a Pod's port forward call | ||||||
| type PodPortForwardOptions struct { | type PodPortForwardOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3393,6 +3439,8 @@ type PodPortForwardOptions struct { | |||||||
| 	Ports []int32 | 	Ports []int32 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodProxyOptions is the query options to a Pod's proxy call | // PodProxyOptions is the query options to a Pod's proxy call | ||||||
| type PodProxyOptions struct { | type PodProxyOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3401,6 +3449,8 @@ type PodProxyOptions struct { | |||||||
| 	Path string | 	Path string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NodeProxyOptions is the query options to a Node's proxy call | // NodeProxyOptions is the query options to a Node's proxy call | ||||||
| type NodeProxyOptions struct { | type NodeProxyOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3409,6 +3459,8 @@ type NodeProxyOptions struct { | |||||||
| 	Path string | 	Path string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ServiceProxyOptions is the query options to a Service's proxy call. | // ServiceProxyOptions is the query options to a Service's proxy call. | ||||||
| type ServiceProxyOptions struct { | type ServiceProxyOptions struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3422,6 +3474,7 @@ type ServiceProxyOptions struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // ObjectReference contains enough information to let you inspect or modify the referred object. | // ObjectReference contains enough information to let you inspect or modify the referred object. | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type ObjectReference struct { | type ObjectReference struct { | ||||||
| 	// +optional | 	// +optional | ||||||
| 	Kind string | 	Kind string | ||||||
| @@ -3454,6 +3507,8 @@ type LocalObjectReference struct { | |||||||
| 	Name string | 	Name string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type SerializedReference struct { | type SerializedReference struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -3478,6 +3533,7 @@ const ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Event is a report of an event somewhere in the cluster. | // Event is a report of an event somewhere in the cluster. | ||||||
| // TODO: Decide whether to store these separately or with the object they apply to. | // TODO: Decide whether to store these separately or with the object they apply to. | ||||||
| @@ -3523,6 +3579,8 @@ type Event struct { | |||||||
| 	Type string | 	Type string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // EventList is a list of events. | // EventList is a list of events. | ||||||
| type EventList struct { | type EventList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3532,6 +3590,8 @@ type EventList struct { | |||||||
| 	Items []Event | 	Items []Event | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // List holds a list of objects, which may not be known by the server. | // List holds a list of objects, which may not be known by the server. | ||||||
| type List struct { | type List struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3582,6 +3642,7 @@ type LimitRangeSpec struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // LimitRange sets resource usage limits for each kind of resource in a Namespace | // LimitRange sets resource usage limits for each kind of resource in a Namespace | ||||||
| type LimitRange struct { | type LimitRange struct { | ||||||
| @@ -3594,6 +3655,8 @@ type LimitRange struct { | |||||||
| 	Spec LimitRangeSpec | 	Spec LimitRangeSpec | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // LimitRangeList is a list of LimitRange items. | // LimitRangeList is a list of LimitRange items. | ||||||
| type LimitRangeList struct { | type LimitRangeList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3672,6 +3735,7 @@ type ResourceQuotaStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ResourceQuota sets aggregate quota restrictions enforced per namespace | // ResourceQuota sets aggregate quota restrictions enforced per namespace | ||||||
| type ResourceQuota struct { | type ResourceQuota struct { | ||||||
| @@ -3688,6 +3752,8 @@ type ResourceQuota struct { | |||||||
| 	Status ResourceQuotaStatus | 	Status ResourceQuotaStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ResourceQuotaList is a list of ResourceQuota items | // ResourceQuotaList is a list of ResourceQuota items | ||||||
| type ResourceQuotaList struct { | type ResourceQuotaList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3699,6 +3765,7 @@ type ResourceQuotaList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Secret holds secret data of a certain type.  The total bytes of the values in | // Secret holds secret data of a certain type.  The total bytes of the values in | ||||||
| // the Data field must be less than MaxSecretSize bytes. | // the Data field must be less than MaxSecretSize bytes. | ||||||
| @@ -3803,6 +3870,8 @@ const ( | |||||||
| 	TLSPrivateKeyKey = "tls.key" | 	TLSPrivateKeyKey = "tls.key" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type SecretList struct { | type SecretList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -3812,6 +3881,7 @@ type SecretList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ConfigMap holds configuration data for components or applications to consume. | // ConfigMap holds configuration data for components or applications to consume. | ||||||
| type ConfigMap struct { | type ConfigMap struct { | ||||||
| @@ -3825,6 +3895,8 @@ type ConfigMap struct { | |||||||
| 	Data map[string]string | 	Data map[string]string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ConfigMapList is a resource containing a list of ConfigMap objects. | // ConfigMapList is a resource containing a list of ConfigMap objects. | ||||||
| type ConfigMapList struct { | type ConfigMapList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -3895,6 +3967,7 @@ type ComponentCondition struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ComponentStatus (and ComponentStatusList) holds the cluster validation info. | // ComponentStatus (and ComponentStatusList) holds the cluster validation info. | ||||||
| type ComponentStatus struct { | type ComponentStatus struct { | ||||||
| @@ -3906,6 +3979,8 @@ type ComponentStatus struct { | |||||||
| 	Conditions []ComponentCondition | 	Conditions []ComponentCondition | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type ComponentStatusList struct { | type ComponentStatusList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -3969,6 +4044,8 @@ type SELinuxOptions struct { | |||||||
| 	Level string | 	Level string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record | // RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record | ||||||
| // the global allocation state of the cluster. The schema of Range and Data generic, in that Range | // the global allocation state of the cluster. The schema of Range and Data generic, in that Range | ||||||
| // should be a string representation of the inputs to a range (for instance, for IP allocation it | // should be a string representation of the inputs to a range (for instance, for IP allocation it | ||||||
|   | |||||||
| @@ -33,11 +33,11 @@ type Time struct { | |||||||
| 	time.Time `protobuf:"-"` | 	time.Time `protobuf:"-"` | ||||||
| } | } | ||||||
|  |  | ||||||
| // DeepCopy returns a deep-copy of the Time value.  The underlying time.Time | // DeepCopyInto creates a deep-copy of the Time value.  The underlying time.Time | ||||||
| // type is effectively immutable in the time API, so it is safe to | // type is effectively immutable in the time API, so it is safe to | ||||||
| // copy-by-assign, despite the presence of (unexported) Pointer fields. | // copy-by-assign, despite the presence of (unexported) Pointer fields. | ||||||
| func (t Time) DeepCopy() Time { | func (t *Time) DeepCopyInto(out *Time) { | ||||||
| 	return t | 	*out = *t | ||||||
| } | } | ||||||
|  |  | ||||||
| // String returns the representation of the time. | // String returns the representation of the time. | ||||||
|   | |||||||
| @@ -23,6 +23,8 @@ package unversioned | |||||||
| // TypeMeta describes an individual object in an API response or request | // TypeMeta describes an individual object in an API response or request | ||||||
| // with strings representing the type of the object and its API schema version. | // with strings representing the type of the object and its API schema version. | ||||||
| // Structures that are versioned or persisted should inline TypeMeta. | // Structures that are versioned or persisted should inline TypeMeta. | ||||||
|  | // | ||||||
|  | // +k8s:deepcopy-gen=false | ||||||
| type TypeMeta struct { | type TypeMeta struct { | ||||||
| 	// Kind is a string value representing the REST resource this object represents. | 	// Kind is a string value representing the REST resource this object represents. | ||||||
| 	// Servers may infer this from the endpoint the client submits requests to. | 	// Servers may infer this from the endpoint the client submits requests to. | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -10,12 +10,15 @@ load( | |||||||
| go_library( | go_library( | ||||||
|     name = "go_default_library", |     name = "go_default_library", | ||||||
|     srcs = [ |     srcs = [ | ||||||
|  |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", | ||||||
|   | |||||||
							
								
								
									
										19
									
								
								pkg/apis/abac/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								pkg/apis/abac/doc.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | /* | ||||||
|  | Copyright 2016 The Kubernetes Authors. | ||||||
|  |  | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  |  | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=package | ||||||
|  |  | ||||||
|  | package abac | ||||||
| @@ -20,6 +20,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Policy contains a single ABAC policy rule | // Policy contains a single ABAC policy rule | ||||||
| type Policy struct { | type Policy struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -12,8 +12,10 @@ go_library( | |||||||
|     name = "go_default_library", |     name = "go_default_library", | ||||||
|     srcs = [ |     srcs = [ | ||||||
|         "conversion.go", |         "conversion.go", | ||||||
|  |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								pkg/apis/abac/v0/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								pkg/apis/abac/v0/doc.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | /* | ||||||
|  | Copyright 2016 The Kubernetes Authors. | ||||||
|  |  | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  |  | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=package,register | ||||||
|  |  | ||||||
|  | // +groupName=abac.authorization.kubernetes.io | ||||||
|  | package v0 // import "k8s.io/kubernetes/pkg/apis/abac/v0" | ||||||
| @@ -21,6 +21,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Policy contains a single ABAC policy rule | // Policy contains a single ABAC policy rule | ||||||
| type Policy struct { | type Policy struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
							
								
								
									
										69
									
								
								pkg/apis/abac/v0/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								pkg/apis/abac/v0/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,69 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package v0 | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
|  | func init() { | ||||||
|  | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
|  | // to allow building arbitrary schemes. | ||||||
|  | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
|  | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Policy).DeepCopyInto(out.(*Policy)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Policy{})}, | ||||||
|  | 	) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Policy) DeepCopyInto(out *Policy) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy. | ||||||
|  | func (x *Policy) DeepCopy() *Policy { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Policy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Policy) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -21,6 +21,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Policy contains a single ABAC policy rule | // Policy contains a single ABAC policy rule | ||||||
| type Policy struct { | type Policy struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
| @@ -26,35 +26,65 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Policy, InType: reflect.TypeOf(&Policy{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PolicySpec, InType: reflect.TypeOf(&PolicySpec{})}, | 			in.(*Policy).DeepCopyInto(out.(*Policy)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Policy{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PolicySpec).DeepCopyInto(out.(*PolicySpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PolicySpec{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1beta1_Policy is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1beta1_Policy(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Policy) DeepCopyInto(out *Policy) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Policy) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Policy) | 	out.Spec = in.Spec | ||||||
| 		*out = *in | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy. | ||||||
|  | func (x *Policy) DeepCopy() *Policy { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Policy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Policy) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1beta1_PolicySpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1beta1_PolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PolicySpec) DeepCopyInto(out *PolicySpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PolicySpec) | 	return | ||||||
| 		out := out.(*PolicySpec) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec. | ||||||
|  | func (x *PolicySpec) DeepCopy() *PolicySpec { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PolicySpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										84
									
								
								pkg/apis/abac/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										84
									
								
								pkg/apis/abac/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,84 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package abac | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. | ||||||
|  | func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { | ||||||
|  | 	return []conversion.GeneratedDeepCopyFunc{ | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Policy).DeepCopyInto(out.(*Policy)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Policy{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PolicySpec).DeepCopyInto(out.(*PolicySpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PolicySpec{})}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Policy) DeepCopyInto(out *Policy) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.Spec = in.Spec | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy. | ||||||
|  | func (x *Policy) DeepCopy() *Policy { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Policy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Policy) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PolicySpec) DeepCopyInto(out *PolicySpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec. | ||||||
|  | func (x *PolicySpec) DeepCopy() *PolicySpec { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PolicySpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
| @@ -23,6 +23,8 @@ import ( | |||||||
| 	"k8s.io/kubernetes/pkg/apis/authentication" | 	"k8s.io/kubernetes/pkg/apis/authentication" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // AdmissionReview describes an admission request. | // AdmissionReview describes an admission request. | ||||||
| type AdmissionReview struct { | type AdmissionReview struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -23,6 +23,8 @@ import ( | |||||||
| 	"k8s.io/apiserver/pkg/admission" | 	"k8s.io/apiserver/pkg/admission" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // AdmissionReview describes an admission request. | // AdmissionReview describes an admission request. | ||||||
| type AdmissionReview struct { | type AdmissionReview struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
| @@ -21,80 +21,106 @@ limitations under the License. | |||||||
| package v1alpha1 | package v1alpha1 | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/api/authentication/v1" | 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| 	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReview, InType: reflect.TypeOf(&AdmissionReview{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReviewSpec, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, | 			in.(*AdmissionReview).DeepCopyInto(out.(*AdmissionReview)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReviewStatus, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*AdmissionReviewSpec).DeepCopyInto(out.(*AdmissionReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*AdmissionReviewStatus).DeepCopyInto(out.(*AdmissionReviewStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_AdmissionReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_AdmissionReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*AdmissionReview) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*AdmissionReview) | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		*out = *in | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 		if err := DeepCopy_v1alpha1_AdmissionReviewSpec(&in.Spec, &out.Spec, c); err != nil { | 	return | ||||||
| 			return err | } | ||||||
| 		} | 
 | ||||||
| 		if err := DeepCopy_v1alpha1_AdmissionReviewStatus(&in.Status, &out.Status, c); err != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview. | ||||||
| 			return err | func (x *AdmissionReview) DeepCopy() *AdmissionReview { | ||||||
| 		} | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(AdmissionReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *AdmissionReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_AdmissionReviewSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_AdmissionReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *AdmissionReviewSpec) DeepCopyInto(out *AdmissionReviewSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*AdmissionReviewSpec) | 	out.Kind = in.Kind | ||||||
| 		out := out.(*AdmissionReviewSpec) | 	in.Object.DeepCopyInto(&out.Object) | ||||||
| 		*out = *in | 	in.OldObject.DeepCopyInto(&out.OldObject) | ||||||
| 		if newVal, err := c.DeepCopy(&in.Object); err != nil { | 	out.Resource = in.Resource | ||||||
| 			return err | 	in.UserInfo.DeepCopyInto(&out.UserInfo) | ||||||
| 		} else { | 	return | ||||||
| 			out.Object = *newVal.(*runtime.RawExtension) |  | ||||||
| 		} |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.OldObject); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { |  | ||||||
| 			out.OldObject = *newVal.(*runtime.RawExtension) |  | ||||||
| 		} |  | ||||||
| 		if err := v1.DeepCopy_v1_UserInfo(&in.UserInfo, &out.UserInfo, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_AdmissionReviewStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewSpec. | ||||||
| func DeepCopy_v1alpha1_AdmissionReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *AdmissionReviewSpec) DeepCopy() *AdmissionReviewSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*AdmissionReviewStatus) |  | ||||||
| 		out := out.(*AdmissionReviewStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Result != nil { |  | ||||||
| 			in, out := &in.Result, &out.Result |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*meta_v1.Status) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(AdmissionReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *AdmissionReviewStatus) DeepCopyInto(out *AdmissionReviewStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Result != nil { | ||||||
|  | 		in, out := &in.Result, &out.Result | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.Status) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewStatus. | ||||||
|  | func (x *AdmissionReviewStatus) DeepCopy() *AdmissionReviewStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(AdmissionReviewStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -24,83 +24,111 @@ import ( | |||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	authentication "k8s.io/kubernetes/pkg/apis/authentication" |  | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReview, InType: reflect.TypeOf(&AdmissionReview{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReviewSpec, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, | 			in.(*AdmissionReview).DeepCopyInto(out.(*AdmissionReview)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReviewStatus, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*AdmissionReviewSpec).DeepCopyInto(out.(*AdmissionReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*AdmissionReviewStatus).DeepCopyInto(out.(*AdmissionReviewStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admission_AdmissionReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admission_AdmissionReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*AdmissionReview) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*AdmissionReview) | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		*out = *in | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 		if err := DeepCopy_admission_AdmissionReviewSpec(&in.Spec, &out.Spec, c); err != nil { | 	return | ||||||
| 			return err | } | ||||||
| 		} | 
 | ||||||
| 		if err := DeepCopy_admission_AdmissionReviewStatus(&in.Status, &out.Status, c); err != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview. | ||||||
| 			return err | func (x *AdmissionReview) DeepCopy() *AdmissionReview { | ||||||
| 		} | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(AdmissionReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *AdmissionReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admission_AdmissionReviewSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admission_AdmissionReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *AdmissionReviewSpec) DeepCopyInto(out *AdmissionReviewSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*AdmissionReviewSpec) | 	out.Kind = in.Kind | ||||||
| 		out := out.(*AdmissionReviewSpec) | 	if in.Object == nil { | ||||||
| 		*out = *in | 		out.Object = nil | ||||||
| 		// in.Object is kind 'Interface' | 	} else { | ||||||
| 		if in.Object != nil { | 		out.Object = in.Object.DeepCopyObject() | ||||||
| 			if newVal, err := c.DeepCopy(&in.Object); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				out.Object = *newVal.(*runtime.Object) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		// in.OldObject is kind 'Interface' |  | ||||||
| 		if in.OldObject != nil { |  | ||||||
| 			if newVal, err := c.DeepCopy(&in.OldObject); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				out.OldObject = *newVal.(*runtime.Object) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if err := authentication.DeepCopy_authentication_UserInfo(&in.UserInfo, &out.UserInfo, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.OldObject == nil { | ||||||
|  | 		out.OldObject = nil | ||||||
|  | 	} else { | ||||||
|  | 		out.OldObject = in.OldObject.DeepCopyObject() | ||||||
|  | 	} | ||||||
|  | 	out.Resource = in.Resource | ||||||
|  | 	in.UserInfo.DeepCopyInto(&out.UserInfo) | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admission_AdmissionReviewStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewSpec. | ||||||
| func DeepCopy_admission_AdmissionReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *AdmissionReviewSpec) DeepCopy() *AdmissionReviewSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*AdmissionReviewStatus) |  | ||||||
| 		out := out.(*AdmissionReviewStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Result != nil { |  | ||||||
| 			in, out := &in.Result, &out.Result |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*v1.Status) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(AdmissionReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *AdmissionReviewStatus) DeepCopyInto(out *AdmissionReviewStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Result != nil { | ||||||
|  | 		in, out := &in.Result, &out.Result | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.Status) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewStatus. | ||||||
|  | func (x *AdmissionReviewStatus) DeepCopy() *AdmissionReviewStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(AdmissionReviewStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -22,6 +22,7 @@ import ( | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // InitializerConfiguration describes the configuration of initializers. | // InitializerConfiguration describes the configuration of initializers. | ||||||
| type InitializerConfiguration struct { | type InitializerConfiguration struct { | ||||||
| @@ -40,6 +41,8 @@ type InitializerConfiguration struct { | |||||||
| 	Initializers []Initializer | 	Initializers []Initializer | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // InitializerConfigurationList is a list of InitializerConfiguration. | // InitializerConfigurationList is a list of InitializerConfiguration. | ||||||
| type InitializerConfigurationList struct { | type InitializerConfigurationList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -120,6 +123,7 @@ const ( | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ExternalAdmissionHookConfiguration describes the configuration of initializers. | // ExternalAdmissionHookConfiguration describes the configuration of initializers. | ||||||
| type ExternalAdmissionHookConfiguration struct { | type ExternalAdmissionHookConfiguration struct { | ||||||
| @@ -133,6 +137,8 @@ type ExternalAdmissionHookConfiguration struct { | |||||||
| 	ExternalAdmissionHooks []ExternalAdmissionHook | 	ExternalAdmissionHooks []ExternalAdmissionHook | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration. | // ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration. | ||||||
| type ExternalAdmissionHookConfigurationList struct { | type ExternalAdmissionHookConfigurationList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -21,234 +21,351 @@ limitations under the License. | |||||||
| package admissionregistration | package admissionregistration | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_AdmissionHookClientConfig, InType: reflect.TypeOf(&AdmissionHookClientConfig{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHook, InType: reflect.TypeOf(&ExternalAdmissionHook{})}, | 			in.(*AdmissionHookClientConfig).DeepCopyInto(out.(*AdmissionHookClientConfig)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration, InType: reflect.TypeOf(&ExternalAdmissionHookConfiguration{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList, InType: reflect.TypeOf(&ExternalAdmissionHookConfigurationList{})}, | 		}, InType: reflect.TypeOf(&AdmissionHookClientConfig{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_Initializer, InType: reflect.TypeOf(&Initializer{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_InitializerConfiguration, InType: reflect.TypeOf(&InitializerConfiguration{})}, | 			in.(*ExternalAdmissionHook).DeepCopyInto(out.(*ExternalAdmissionHook)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_InitializerConfigurationList, InType: reflect.TypeOf(&InitializerConfigurationList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_Rule, InType: reflect.TypeOf(&Rule{})}, | 		}, InType: reflect.TypeOf(&ExternalAdmissionHook{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_RuleWithOperations, InType: reflect.TypeOf(&RuleWithOperations{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ServiceReference, InType: reflect.TypeOf(&ServiceReference{})}, | 			in.(*ExternalAdmissionHookConfiguration).DeepCopyInto(out.(*ExternalAdmissionHookConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalAdmissionHookConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ExternalAdmissionHookConfigurationList).DeepCopyInto(out.(*ExternalAdmissionHookConfigurationList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalAdmissionHookConfigurationList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Initializer).DeepCopyInto(out.(*Initializer)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Initializer{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*InitializerConfiguration).DeepCopyInto(out.(*InitializerConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&InitializerConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*InitializerConfigurationList).DeepCopyInto(out.(*InitializerConfigurationList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&InitializerConfigurationList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Rule).DeepCopyInto(out.(*Rule)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Rule{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RuleWithOperations).DeepCopyInto(out.(*RuleWithOperations)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RuleWithOperations{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ServiceReference).DeepCopyInto(out.(*ServiceReference)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ServiceReference{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_AdmissionHookClientConfig is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admissionregistration_AdmissionHookClientConfig(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *AdmissionHookClientConfig) DeepCopyInto(out *AdmissionHookClientConfig) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*AdmissionHookClientConfig) | 	out.Service = in.Service | ||||||
| 		out := out.(*AdmissionHookClientConfig) | 	if in.CABundle != nil { | ||||||
| 		*out = *in | 		in, out := &in.CABundle, &out.CABundle | ||||||
| 		if in.CABundle != nil { | 		*out = make([]byte, len(*in)) | ||||||
| 			in, out := &in.CABundle, &out.CABundle | 		copy(*out, *in) | ||||||
| 			*out = make([]byte, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_ExternalAdmissionHook is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionHookClientConfig. | ||||||
| func DeepCopy_admissionregistration_ExternalAdmissionHook(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *AdmissionHookClientConfig) DeepCopy() *AdmissionHookClientConfig { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ExternalAdmissionHook) | 		return nil | ||||||
| 		out := out.(*ExternalAdmissionHook) | 	} | ||||||
| 		*out = *in | 	out := new(AdmissionHookClientConfig) | ||||||
| 		if err := DeepCopy_admissionregistration_AdmissionHookClientConfig(&in.ClientConfig, &out.ClientConfig, c); err != nil { | 	x.DeepCopyInto(out) | ||||||
| 			return err | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalAdmissionHook) DeepCopyInto(out *ExternalAdmissionHook) { | ||||||
|  | 	*out = *in | ||||||
|  | 	in.ClientConfig.DeepCopyInto(&out.ClientConfig) | ||||||
|  | 	if in.Rules != nil { | ||||||
|  | 		in, out := &in.Rules, &out.Rules | ||||||
|  | 		*out = make([]RuleWithOperations, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} | 		} | ||||||
| 		if in.Rules != nil { | 	} | ||||||
| 			in, out := &in.Rules, &out.Rules | 	if in.FailurePolicy != nil { | ||||||
| 			*out = make([]RuleWithOperations, len(*in)) | 		in, out := &in.FailurePolicy, &out.FailurePolicy | ||||||
| 			for i := range *in { | 		if *in == nil { | ||||||
| 				if err := DeepCopy_admissionregistration_RuleWithOperations(&(*in)[i], &(*out)[i], c); err != nil { | 			*out = nil | ||||||
| 					return err | 		} else { | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.FailurePolicy != nil { |  | ||||||
| 			in, out := &in.FailurePolicy, &out.FailurePolicy |  | ||||||
| 			*out = new(FailurePolicyType) | 			*out = new(FailurePolicyType) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHook. | ||||||
|  | func (x *ExternalAdmissionHook) DeepCopy() *ExternalAdmissionHook { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalAdmissionHook) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalAdmissionHookConfiguration) DeepCopyInto(out *ExternalAdmissionHookConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	if in.ExternalAdmissionHooks != nil { | ||||||
|  | 		in, out := &in.ExternalAdmissionHooks, &out.ExternalAdmissionHooks | ||||||
|  | 		*out = make([]ExternalAdmissionHook, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHookConfiguration. | ||||||
|  | func (x *ExternalAdmissionHookConfiguration) DeepCopy() *ExternalAdmissionHookConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalAdmissionHookConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalAdmissionHookConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ExternalAdmissionHookConfigurationList) DeepCopyInto(out *ExternalAdmissionHookConfigurationList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ExternalAdmissionHookConfiguration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ExternalAdmissionHookConfiguration) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			return err | 		*out = make([]ExternalAdmissionHookConfiguration, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHookConfigurationList. | ||||||
|  | func (x *ExternalAdmissionHookConfigurationList) DeepCopy() *ExternalAdmissionHookConfigurationList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalAdmissionHookConfigurationList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalAdmissionHookConfigurationList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Initializer) DeepCopyInto(out *Initializer) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Rules != nil { | ||||||
|  | 		in, out := &in.Rules, &out.Rules | ||||||
|  | 		*out = make([]Rule, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.FailurePolicy != nil { | ||||||
|  | 		in, out := &in.FailurePolicy, &out.FailurePolicy | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if in.ExternalAdmissionHooks != nil { |  | ||||||
| 			in, out := &in.ExternalAdmissionHooks, &out.ExternalAdmissionHooks |  | ||||||
| 			*out = make([]ExternalAdmissionHook, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_admissionregistration_ExternalAdmissionHook(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ExternalAdmissionHookConfigurationList) |  | ||||||
| 		out := out.(*ExternalAdmissionHookConfigurationList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]ExternalAdmissionHookConfiguration, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_admissionregistration_Initializer is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_admissionregistration_Initializer(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*Initializer) |  | ||||||
| 		out := out.(*Initializer) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Rules != nil { |  | ||||||
| 			in, out := &in.Rules, &out.Rules |  | ||||||
| 			*out = make([]Rule, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_admissionregistration_Rule(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.FailurePolicy != nil { |  | ||||||
| 			in, out := &in.FailurePolicy, &out.FailurePolicy |  | ||||||
| 			*out = new(FailurePolicyType) | 			*out = new(FailurePolicyType) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Initializer. | ||||||
|  | func (x *Initializer) DeepCopy() *Initializer { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Initializer) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *InitializerConfiguration) DeepCopyInto(out *InitializerConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	if in.Initializers != nil { | ||||||
|  | 		in, out := &in.Initializers, &out.Initializers | ||||||
|  | 		*out = make([]Initializer, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InitializerConfiguration. | ||||||
|  | func (x *InitializerConfiguration) DeepCopy() *InitializerConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(InitializerConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *InitializerConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_InitializerConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admissionregistration_InitializerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *InitializerConfigurationList) DeepCopyInto(out *InitializerConfigurationList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*InitializerConfiguration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*InitializerConfiguration) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			return err | 		*out = make([]InitializerConfiguration, len(*in)) | ||||||
| 		} else { | 		for i := range *in { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} |  | ||||||
| 		if in.Initializers != nil { |  | ||||||
| 			in, out := &in.Initializers, &out.Initializers |  | ||||||
| 			*out = make([]Initializer, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_admissionregistration_Initializer(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InitializerConfigurationList. | ||||||
|  | func (x *InitializerConfigurationList) DeepCopy() *InitializerConfigurationList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(InitializerConfigurationList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *InitializerConfigurationList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_InitializerConfigurationList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admissionregistration_InitializerConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Rule) DeepCopyInto(out *Rule) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*InitializerConfigurationList) | 	if in.APIGroups != nil { | ||||||
| 		out := out.(*InitializerConfigurationList) | 		in, out := &in.APIGroups, &out.APIGroups | ||||||
| 		*out = *in | 		*out = make([]string, len(*in)) | ||||||
| 		if in.Items != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]InitializerConfiguration, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_admissionregistration_InitializerConfiguration(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.APIVersions != nil { | ||||||
|  | 		in, out := &in.APIVersions, &out.APIVersions | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Resources != nil { | ||||||
|  | 		in, out := &in.Resources, &out.Resources | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_Rule is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Rule. | ||||||
| func DeepCopy_admissionregistration_Rule(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *Rule) DeepCopy() *Rule { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*Rule) |  | ||||||
| 		out := out.(*Rule) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.APIGroups != nil { |  | ||||||
| 			in, out := &in.APIGroups, &out.APIGroups |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.APIVersions != nil { |  | ||||||
| 			in, out := &in.APIVersions, &out.APIVersions |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Resources != nil { |  | ||||||
| 			in, out := &in.Resources, &out.Resources |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(Rule) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_RuleWithOperations is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_admissionregistration_RuleWithOperations(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*RuleWithOperations) | 	if in.Operations != nil { | ||||||
| 		out := out.(*RuleWithOperations) | 		in, out := &in.Operations, &out.Operations | ||||||
| 		*out = *in | 		*out = make([]OperationType, len(*in)) | ||||||
| 		if in.Operations != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.Operations, &out.Operations |  | ||||||
| 			*out = make([]OperationType, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_admissionregistration_Rule(&in.Rule, &out.Rule, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	in.Rule.DeepCopyInto(&out.Rule) | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_admissionregistration_ServiceReference is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations. | ||||||
| func DeepCopy_admissionregistration_ServiceReference(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *RuleWithOperations) DeepCopy() *RuleWithOperations { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ServiceReference) |  | ||||||
| 		out := out.(*ServiceReference) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(RuleWithOperations) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. | ||||||
|  | func (x *ServiceReference) DeepCopy() *ServiceReference { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ServiceReference) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -23,6 +23,7 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // StatefulSet represents a set of pods with consistent identities. | // StatefulSet represents a set of pods with consistent identities. | ||||||
| // Identities are defined as: | // Identities are defined as: | ||||||
| @@ -188,6 +189,8 @@ type StatefulSetStatus struct { | |||||||
| 	UpdateRevision string | 	UpdateRevision string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // StatefulSetList is a collection of StatefulSets. | // StatefulSetList is a collection of StatefulSets. | ||||||
| type StatefulSetList struct { | type StatefulSetList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -197,6 +200,7 @@ type StatefulSetList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ControllerRevision implements an immutable snapshot of state data. Clients | // ControllerRevision implements an immutable snapshot of state data. Clients | ||||||
| // are responsible for serializing and deserializing the objects that contain | // are responsible for serializing and deserializing the objects that contain | ||||||
| @@ -218,6 +222,8 @@ type ControllerRevision struct { | |||||||
| 	Revision int64 | 	Revision int64 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ControllerRevisionList is a resource containing a list of ControllerRevision objects. | // ControllerRevisionList is a resource containing a list of ControllerRevision objects. | ||||||
| type ControllerRevisionList struct { | type ControllerRevisionList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -28,181 +28,284 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_ControllerRevision, InType: reflect.TypeOf(&ControllerRevision{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_ControllerRevisionList, InType: reflect.TypeOf(&ControllerRevisionList{})}, | 			in.(*ControllerRevision).DeepCopyInto(out.(*ControllerRevision)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_RollingUpdateStatefulSetStrategy, InType: reflect.TypeOf(&RollingUpdateStatefulSetStrategy{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})}, | 		}, InType: reflect.TypeOf(&ControllerRevision{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})}, | 			in.(*ControllerRevisionList).DeepCopyInto(out.(*ControllerRevisionList)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetUpdateStrategy, InType: reflect.TypeOf(&StatefulSetUpdateStrategy{})}, | 		}, InType: reflect.TypeOf(&ControllerRevisionList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RollingUpdateStatefulSetStrategy).DeepCopyInto(out.(*RollingUpdateStatefulSetStrategy)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RollingUpdateStatefulSetStrategy{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StatefulSet).DeepCopyInto(out.(*StatefulSet)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StatefulSet{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StatefulSetList).DeepCopyInto(out.(*StatefulSetList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StatefulSetList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StatefulSetSpec).DeepCopyInto(out.(*StatefulSetSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StatefulSetSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StatefulSetStatus).DeepCopyInto(out.(*StatefulSetStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StatefulSetStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StatefulSetUpdateStrategy).DeepCopyInto(out.(*StatefulSetUpdateStrategy)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StatefulSetUpdateStrategy{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_apps_ControllerRevision is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_apps_ControllerRevision(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ControllerRevision) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ControllerRevision) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.Data == nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		out.Data = nil | ||||||
| 			return err | 	} else { | ||||||
|  | 		out.Data = in.Data.DeepCopyObject() | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevision. | ||||||
|  | func (x *ControllerRevision) DeepCopy() *ControllerRevision { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ControllerRevision) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ControllerRevision) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]ControllerRevision, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevisionList. | ||||||
|  | func (x *ControllerRevisionList) DeepCopy() *ControllerRevisionList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ControllerRevisionList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ControllerRevisionList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *RollingUpdateStatefulSetStrategy) DeepCopyInto(out *RollingUpdateStatefulSetStrategy) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateStatefulSetStrategy. | ||||||
|  | func (x *RollingUpdateStatefulSetStrategy) DeepCopy() *RollingUpdateStatefulSetStrategy { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(RollingUpdateStatefulSetStrategy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *StatefulSet) DeepCopyInto(out *StatefulSet) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	in.Status.DeepCopyInto(&out.Status) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet. | ||||||
|  | func (x *StatefulSet) DeepCopy() *StatefulSet { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(StatefulSet) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *StatefulSet) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]StatefulSet, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList. | ||||||
|  | func (x *StatefulSetList) DeepCopy() *StatefulSetList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(StatefulSetList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *StatefulSetList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Selector != nil { | ||||||
|  | 		in, out := &in.Selector, &out.Selector | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		// in.Data is kind 'Interface' | 	} | ||||||
| 		if in.Data != nil { | 	in.Template.DeepCopyInto(&out.Template) | ||||||
| 			if newVal, err := c.DeepCopy(&in.Data); err != nil { | 	if in.VolumeClaimTemplates != nil { | ||||||
| 				return err | 		in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates | ||||||
| 			} else { | 		*out = make([]api.PersistentVolumeClaim, len(*in)) | ||||||
| 				out.Data = *newVal.(*runtime.Object) | 		for i := range *in { | ||||||
| 			} | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
| } | 	in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) | ||||||
| 
 | 	if in.RevisionHistoryLimit != nil { | ||||||
| // DeepCopy_apps_ControllerRevisionList is an autogenerated deepcopy function. | 		in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit | ||||||
| func DeepCopy_apps_ControllerRevisionList(in interface{}, out interface{}, c *conversion.Cloner) error { | 		if *in == nil { | ||||||
| 	{ | 			*out = nil | ||||||
| 		in := in.(*ControllerRevisionList) |  | ||||||
| 		out := out.(*ControllerRevisionList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]ControllerRevision, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_apps_ControllerRevision(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_apps_RollingUpdateStatefulSetStrategy is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_apps_RollingUpdateStatefulSetStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*RollingUpdateStatefulSetStrategy) |  | ||||||
| 		out := out.(*RollingUpdateStatefulSetStrategy) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_apps_StatefulSet is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*StatefulSet) |  | ||||||
| 		out := out.(*StatefulSet) |  | ||||||
| 		*out = *in |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_apps_StatefulSetStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_apps_StatefulSetList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*StatefulSetList) |  | ||||||
| 		out := out.(*StatefulSetList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]StatefulSet, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_apps_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_apps_StatefulSetSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*StatefulSetSpec) |  | ||||||
| 		out := out.(*StatefulSetSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Selector != nil { |  | ||||||
| 			in, out := &in.Selector, &out.Selector |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*v1.LabelSelector) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if in.VolumeClaimTemplates != nil { |  | ||||||
| 			in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates |  | ||||||
| 			*out = make([]api.PersistentVolumeClaim, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := api.DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_apps_StatefulSetUpdateStrategy(&in.UpdateStrategy, &out.UpdateStrategy, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if in.RevisionHistoryLimit != nil { |  | ||||||
| 			in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit |  | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_apps_StatefulSetStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec. | ||||||
| func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *StatefulSetSpec) DeepCopy() *StatefulSetSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*StatefulSetStatus) | 		return nil | ||||||
| 		out := out.(*StatefulSetStatus) | 	} | ||||||
| 		*out = *in | 	out := new(StatefulSetSpec) | ||||||
| 		if in.ObservedGeneration != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.ObservedGeneration, &out.ObservedGeneration | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *StatefulSetStatus) DeepCopyInto(out *StatefulSetStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.ObservedGeneration != nil { | ||||||
|  | 		in, out := &in.ObservedGeneration, &out.ObservedGeneration | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int64) | 			*out = new(int64) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_apps_StatefulSetUpdateStrategy is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetStatus. | ||||||
| func DeepCopy_apps_StatefulSetUpdateStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *StatefulSetStatus) DeepCopy() *StatefulSetStatus { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*StatefulSetUpdateStrategy) | 		return nil | ||||||
| 		out := out.(*StatefulSetUpdateStrategy) | 	} | ||||||
| 		*out = *in | 	out := new(StatefulSetStatus) | ||||||
| 		if in.RollingUpdate != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.RollingUpdate, &out.RollingUpdate | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *StatefulSetUpdateStrategy) DeepCopyInto(out *StatefulSetUpdateStrategy) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.RollingUpdate != nil { | ||||||
|  | 		in, out := &in.RollingUpdate, &out.RollingUpdate | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(RollingUpdateStatefulSetStrategy) | 			*out = new(RollingUpdateStatefulSetStrategy) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetUpdateStrategy. | ||||||
|  | func (x *StatefulSetUpdateStrategy) DeepCopy() *StatefulSetUpdateStrategy { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(StatefulSetUpdateStrategy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -38,6 +38,7 @@ const ( | |||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // TokenReview attempts to authenticate a token to a known user. | // TokenReview attempts to authenticate a token to a known user. | ||||||
| type TokenReview struct { | type TokenReview struct { | ||||||
|   | |||||||
| @@ -21,90 +21,126 @@ limitations under the License. | |||||||
| package authentication | package authentication | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReview, InType: reflect.TypeOf(&TokenReview{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewSpec, InType: reflect.TypeOf(&TokenReviewSpec{})}, | 			in.(*TokenReview).DeepCopyInto(out.(*TokenReview)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewStatus, InType: reflect.TypeOf(&TokenReviewStatus{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_UserInfo, InType: reflect.TypeOf(&UserInfo{})}, | 		}, InType: reflect.TypeOf(&TokenReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TokenReviewSpec).DeepCopyInto(out.(*TokenReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TokenReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TokenReviewStatus).DeepCopyInto(out.(*TokenReviewStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TokenReviewStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*UserInfo).DeepCopyInto(out.(*UserInfo)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&UserInfo{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authentication_TokenReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *TokenReview) DeepCopyInto(out *TokenReview) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*TokenReview) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*TokenReview) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	out.Spec = in.Spec | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
| 		} else { | } | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 
 | ||||||
| 		} | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview. | ||||||
| 		if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { | func (x *TokenReview) DeepCopy() *TokenReview { | ||||||
| 			return err | 	if x == nil { | ||||||
| 		} | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TokenReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TokenReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authentication_TokenReviewSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *TokenReviewSpec) DeepCopyInto(out *TokenReviewSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*TokenReviewSpec) | 	return | ||||||
| 		out := out.(*TokenReviewSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authentication_TokenReviewStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewSpec. | ||||||
| func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *TokenReviewSpec) DeepCopy() *TokenReviewSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*TokenReviewStatus) |  | ||||||
| 		out := out.(*TokenReviewStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(TokenReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authentication_UserInfo is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *TokenReviewStatus) DeepCopyInto(out *TokenReviewStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*UserInfo) | 	in.User.DeepCopyInto(&out.User) | ||||||
| 		out := out.(*UserInfo) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		if in.Groups != nil { | 
 | ||||||
| 			in, out := &in.Groups, &out.Groups | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewStatus. | ||||||
| 			*out = make([]string, len(*in)) | func (x *TokenReviewStatus) DeepCopy() *TokenReviewStatus { | ||||||
| 			copy(*out, *in) | 	if x == nil { | ||||||
| 		} |  | ||||||
| 		if in.Extra != nil { |  | ||||||
| 			in, out := &in.Extra, &out.Extra |  | ||||||
| 			*out = make(map[string]ExtraValue) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				if newVal, err := c.DeepCopy(&val); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} else { |  | ||||||
| 					(*out)[key] = *newVal.(*ExtraValue) |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(TokenReviewStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *UserInfo) DeepCopyInto(out *UserInfo) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Groups != nil { | ||||||
|  | 		in, out := &in.Groups, &out.Groups | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Extra != nil { | ||||||
|  | 		in, out := &in.Extra, &out.Extra | ||||||
|  | 		*out = make(map[string]ExtraValue, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = make(ExtraValue, len(val)) | ||||||
|  | 			copy((*out)[key], val) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. | ||||||
|  | func (x *UserInfo) DeepCopy() *UserInfo { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(UserInfo) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -23,6 +23,7 @@ import ( | |||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // SubjectAccessReview checks whether or not a user or group can perform an action.  Not filling in a | // SubjectAccessReview checks whether or not a user or group can perform an action.  Not filling in a | ||||||
| // spec.namespace means "in all namespaces". | // spec.namespace means "in all namespaces". | ||||||
| @@ -40,6 +41,7 @@ type SubjectAccessReview struct { | |||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // SelfSubjectAccessReview checks whether or the current user can perform an action.  Not filling in a | // SelfSubjectAccessReview checks whether or the current user can perform an action.  Not filling in a | ||||||
| // spec.namespace means "in all namespaces".  Self is a special case, because users should always be able | // spec.namespace means "in all namespaces".  Self is a special case, because users should always be able | ||||||
| @@ -57,6 +59,7 @@ type SelfSubjectAccessReview struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. | // LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. | ||||||
| // Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions | // Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions | ||||||
|   | |||||||
| @@ -21,167 +21,267 @@ limitations under the License. | |||||||
| package authorization | package authorization | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_LocalSubjectAccessReview, InType: reflect.TypeOf(&LocalSubjectAccessReview{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_NonResourceAttributes, InType: reflect.TypeOf(&NonResourceAttributes{})}, | 			in.(*LocalSubjectAccessReview).DeepCopyInto(out.(*LocalSubjectAccessReview)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_ResourceAttributes, InType: reflect.TypeOf(&ResourceAttributes{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReview, InType: reflect.TypeOf(&SelfSubjectAccessReview{})}, | 		}, InType: reflect.TypeOf(&LocalSubjectAccessReview{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReviewSpec, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReview, InType: reflect.TypeOf(&SubjectAccessReview{})}, | 			in.(*NonResourceAttributes).DeepCopyInto(out.(*NonResourceAttributes)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewSpec, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewStatus, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})}, | 		}, InType: reflect.TypeOf(&NonResourceAttributes{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ResourceAttributes).DeepCopyInto(out.(*ResourceAttributes)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ResourceAttributes{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*SelfSubjectAccessReview).DeepCopyInto(out.(*SelfSubjectAccessReview)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&SelfSubjectAccessReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*SelfSubjectAccessReviewSpec).DeepCopyInto(out.(*SelfSubjectAccessReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*SubjectAccessReview).DeepCopyInto(out.(*SubjectAccessReview)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&SubjectAccessReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*SubjectAccessReviewSpec).DeepCopyInto(out.(*SubjectAccessReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*SubjectAccessReviewStatus).DeepCopyInto(out.(*SubjectAccessReviewStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authorization_LocalSubjectAccessReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*LocalSubjectAccessReview) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*LocalSubjectAccessReview) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	out.Status = in.Status | ||||||
| 			return err | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview. | ||||||
|  | func (x *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(LocalSubjectAccessReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *LocalSubjectAccessReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes. | ||||||
|  | func (x *NonResourceAttributes) DeepCopy() *NonResourceAttributes { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NonResourceAttributes) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes. | ||||||
|  | func (x *ResourceAttributes) DeepCopy() *ResourceAttributes { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ResourceAttributes) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview. | ||||||
|  | func (x *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(SelfSubjectAccessReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.ResourceAttributes != nil { | ||||||
|  | 		in, out := &in.ResourceAttributes, &out.ResourceAttributes | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_authorization_NonResourceAttributes is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*NonResourceAttributes) |  | ||||||
| 		out := out.(*NonResourceAttributes) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_authorization_ResourceAttributes is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*ResourceAttributes) |  | ||||||
| 		out := out.(*ResourceAttributes) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_authorization_SelfSubjectAccessReview is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*SelfSubjectAccessReview) |  | ||||||
| 		out := out.(*SelfSubjectAccessReview) |  | ||||||
| 		*out = *in |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { |  | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_authorization_SelfSubjectAccessReviewSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*SelfSubjectAccessReviewSpec) |  | ||||||
| 		out := out.(*SelfSubjectAccessReviewSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.ResourceAttributes != nil { |  | ||||||
| 			in, out := &in.ResourceAttributes, &out.ResourceAttributes |  | ||||||
| 			*out = new(ResourceAttributes) | 			*out = new(ResourceAttributes) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.NonResourceAttributes != nil { | 	} | ||||||
| 			in, out := &in.NonResourceAttributes, &out.NonResourceAttributes | 	if in.NonResourceAttributes != nil { | ||||||
|  | 		in, out := &in.NonResourceAttributes, &out.NonResourceAttributes | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(NonResourceAttributes) | 			*out = new(NonResourceAttributes) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. | ||||||
|  | func (x *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(SelfSubjectAccessReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview. | ||||||
|  | func (x *SubjectAccessReview) DeepCopy() *SubjectAccessReview { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(SubjectAccessReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *SubjectAccessReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authorization_SubjectAccessReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*SubjectAccessReview) | 	if in.ResourceAttributes != nil { | ||||||
| 		out := out.(*SubjectAccessReview) | 		in, out := &in.ResourceAttributes, &out.ResourceAttributes | ||||||
| 		*out = *in | 		if *in == nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 			*out = nil | ||||||
| 			return err |  | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_authorization_SubjectAccessReviewSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*SubjectAccessReviewSpec) |  | ||||||
| 		out := out.(*SubjectAccessReviewSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.ResourceAttributes != nil { |  | ||||||
| 			in, out := &in.ResourceAttributes, &out.ResourceAttributes |  | ||||||
| 			*out = new(ResourceAttributes) | 			*out = new(ResourceAttributes) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.NonResourceAttributes != nil { | 	} | ||||||
| 			in, out := &in.NonResourceAttributes, &out.NonResourceAttributes | 	if in.NonResourceAttributes != nil { | ||||||
|  | 		in, out := &in.NonResourceAttributes, &out.NonResourceAttributes | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(NonResourceAttributes) | 			*out = new(NonResourceAttributes) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Groups != nil { |  | ||||||
| 			in, out := &in.Groups, &out.Groups |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Extra != nil { |  | ||||||
| 			in, out := &in.Extra, &out.Extra |  | ||||||
| 			*out = make(map[string]ExtraValue) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				if newVal, err := c.DeepCopy(&val); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} else { |  | ||||||
| 					(*out)[key] = *newVal.(*ExtraValue) |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.Groups != nil { | ||||||
|  | 		in, out := &in.Groups, &out.Groups | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Extra != nil { | ||||||
|  | 		in, out := &in.Extra, &out.Extra | ||||||
|  | 		*out = make(map[string]ExtraValue, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = make(ExtraValue, len(val)) | ||||||
|  | 			copy((*out)[key], val) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_authorization_SubjectAccessReviewStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. | ||||||
| func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*SubjectAccessReviewStatus) |  | ||||||
| 		out := out.(*SubjectAccessReviewStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(SubjectAccessReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. | ||||||
|  | func (x *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(SubjectAccessReviewStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -22,6 +22,8 @@ import ( | |||||||
| 	"k8s.io/kubernetes/pkg/api" | 	"k8s.io/kubernetes/pkg/api" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Scale represents a scaling request for a resource. | // Scale represents a scaling request for a resource. | ||||||
| type Scale struct { | type Scale struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -325,6 +327,7 @@ type ResourceMetricStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // HorizontalPodAutoscaler is the configuration for a horizontal pod | // HorizontalPodAutoscaler is the configuration for a horizontal pod | ||||||
| // autoscaler, which automatically manages the replica count of any resource | // autoscaler, which automatically manages the replica count of any resource | ||||||
| @@ -346,6 +349,8 @@ type HorizontalPodAutoscaler struct { | |||||||
| 	Status HorizontalPodAutoscalerStatus | 	Status HorizontalPodAutoscalerStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. | // HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. | ||||||
| type HorizontalPodAutoscalerList struct { | type HorizontalPodAutoscalerList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -28,330 +28,536 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_CrossVersionObjectReference, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, | 			in.(*CrossVersionObjectReference).DeepCopyInto(out.(*CrossVersionObjectReference)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerCondition, InType: reflect.TypeOf(&HorizontalPodAutoscalerCondition{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, | 		}, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, | 			in.(*HorizontalPodAutoscaler).DeepCopyInto(out.(*HorizontalPodAutoscaler)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_MetricSpec, InType: reflect.TypeOf(&MetricSpec{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_MetricStatus, InType: reflect.TypeOf(&MetricStatus{})}, | 		}, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ObjectMetricSource, InType: reflect.TypeOf(&ObjectMetricSource{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ObjectMetricStatus, InType: reflect.TypeOf(&ObjectMetricStatus{})}, | 			in.(*HorizontalPodAutoscalerCondition).DeepCopyInto(out.(*HorizontalPodAutoscalerCondition)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_PodsMetricSource, InType: reflect.TypeOf(&PodsMetricSource{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_PodsMetricStatus, InType: reflect.TypeOf(&PodsMetricStatus{})}, | 		}, InType: reflect.TypeOf(&HorizontalPodAutoscalerCondition{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ResourceMetricSource, InType: reflect.TypeOf(&ResourceMetricSource{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ResourceMetricStatus, InType: reflect.TypeOf(&ResourceMetricStatus{})}, | 			in.(*HorizontalPodAutoscalerList).DeepCopyInto(out.(*HorizontalPodAutoscalerList)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_Scale, InType: reflect.TypeOf(&Scale{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, | 		}, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*HorizontalPodAutoscalerSpec).DeepCopyInto(out.(*HorizontalPodAutoscalerSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*HorizontalPodAutoscalerStatus).DeepCopyInto(out.(*HorizontalPodAutoscalerStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MetricSpec).DeepCopyInto(out.(*MetricSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MetricSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MetricStatus).DeepCopyInto(out.(*MetricStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MetricStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ObjectMetricSource).DeepCopyInto(out.(*ObjectMetricSource)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ObjectMetricSource{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ObjectMetricStatus).DeepCopyInto(out.(*ObjectMetricStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ObjectMetricStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodsMetricSource).DeepCopyInto(out.(*PodsMetricSource)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodsMetricSource{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodsMetricStatus).DeepCopyInto(out.(*PodsMetricStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodsMetricStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ResourceMetricSource).DeepCopyInto(out.(*ResourceMetricSource)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ResourceMetricSource{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ResourceMetricStatus).DeepCopyInto(out.(*ResourceMetricStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ResourceMetricStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Scale).DeepCopyInto(out.(*Scale)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Scale{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ScaleSpec).DeepCopyInto(out.(*ScaleSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ScaleSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ScaleStatus).DeepCopyInto(out.(*ScaleStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ScaleStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_CrossVersionObjectReference is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CrossVersionObjectReference) | 	return | ||||||
| 		out := out.(*CrossVersionObjectReference) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference. | ||||||
|  | func (x *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CrossVersionObjectReference) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	in.Status.DeepCopyInto(&out.Status) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler. | ||||||
|  | func (x *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(HorizontalPodAutoscaler) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_HorizontalPodAutoscaler is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*HorizontalPodAutoscaler) | 	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) | ||||||
| 		out := out.(*HorizontalPodAutoscaler) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 
 | ||||||
| 			return err | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition. | ||||||
|  | func (x *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(HorizontalPodAutoscalerCondition) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]HorizontalPodAutoscaler, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList. | ||||||
|  | func (x *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(HorizontalPodAutoscalerList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.ScaleTargetRef = in.ScaleTargetRef | ||||||
|  | 	if in.MinReplicas != nil { | ||||||
|  | 		in, out := &in.MinReplicas, &out.MinReplicas | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_autoscaling_HorizontalPodAutoscalerCondition is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_autoscaling_HorizontalPodAutoscalerCondition(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*HorizontalPodAutoscalerCondition) |  | ||||||
| 		out := out.(*HorizontalPodAutoscalerCondition) |  | ||||||
| 		*out = *in |  | ||||||
| 		out.LastTransitionTime = in.LastTransitionTime.DeepCopy() |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_autoscaling_HorizontalPodAutoscalerList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*HorizontalPodAutoscalerList) |  | ||||||
| 		out := out.(*HorizontalPodAutoscalerList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]HorizontalPodAutoscaler, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_autoscaling_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_autoscaling_HorizontalPodAutoscalerSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*HorizontalPodAutoscalerSpec) |  | ||||||
| 		out := out.(*HorizontalPodAutoscalerSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.MinReplicas != nil { |  | ||||||
| 			in, out := &in.MinReplicas, &out.MinReplicas |  | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Metrics != nil { |  | ||||||
| 			in, out := &in.Metrics, &out.Metrics |  | ||||||
| 			*out = make([]MetricSpec, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_autoscaling_MetricSpec(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.Metrics != nil { | ||||||
|  | 		in, out := &in.Metrics, &out.Metrics | ||||||
|  | 		*out = make([]MetricSpec, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_HorizontalPodAutoscalerStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec. | ||||||
| func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*HorizontalPodAutoscalerStatus) | 		return nil | ||||||
| 		out := out.(*HorizontalPodAutoscalerStatus) | 	} | ||||||
| 		*out = *in | 	out := new(HorizontalPodAutoscalerSpec) | ||||||
| 		if in.ObservedGeneration != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.ObservedGeneration, &out.ObservedGeneration | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.ObservedGeneration != nil { | ||||||
|  | 		in, out := &in.ObservedGeneration, &out.ObservedGeneration | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int64) | 			*out = new(int64) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.LastScaleTime != nil { | 	} | ||||||
| 			in, out := &in.LastScaleTime, &out.LastScaleTime | 	if in.LastScaleTime != nil { | ||||||
|  | 		in, out := &in.LastScaleTime, &out.LastScaleTime | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(v1.Time) | 			*out = new(v1.Time) | ||||||
| 			**out = (*in).DeepCopy() | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		if in.CurrentMetrics != nil { |  | ||||||
| 			in, out := &in.CurrentMetrics, &out.CurrentMetrics |  | ||||||
| 			*out = make([]MetricStatus, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_autoscaling_MetricStatus(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.Conditions != nil { |  | ||||||
| 			in, out := &in.Conditions, &out.Conditions |  | ||||||
| 			*out = make([]HorizontalPodAutoscalerCondition, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_autoscaling_HorizontalPodAutoscalerCondition(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.CurrentMetrics != nil { | ||||||
|  | 		in, out := &in.CurrentMetrics, &out.CurrentMetrics | ||||||
|  | 		*out = make([]MetricStatus, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.Conditions != nil { | ||||||
|  | 		in, out := &in.Conditions, &out.Conditions | ||||||
|  | 		*out = make([]HorizontalPodAutoscalerCondition, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_MetricSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus. | ||||||
| func DeepCopy_autoscaling_MetricSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*MetricSpec) | 		return nil | ||||||
| 		out := out.(*MetricSpec) | 	} | ||||||
| 		*out = *in | 	out := new(HorizontalPodAutoscalerStatus) | ||||||
| 		if in.Object != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.Object, &out.Object | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MetricSpec) DeepCopyInto(out *MetricSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Object != nil { | ||||||
|  | 		in, out := &in.Object, &out.Object | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(ObjectMetricSource) | 			*out = new(ObjectMetricSource) | ||||||
| 			if err := DeepCopy_autoscaling_ObjectMetricSource(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Pods != nil { | 	} | ||||||
| 			in, out := &in.Pods, &out.Pods | 	if in.Pods != nil { | ||||||
|  | 		in, out := &in.Pods, &out.Pods | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(PodsMetricSource) | 			*out = new(PodsMetricSource) | ||||||
| 			if err := DeepCopy_autoscaling_PodsMetricSource(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Resource != nil { | 	} | ||||||
| 			in, out := &in.Resource, &out.Resource | 	if in.Resource != nil { | ||||||
|  | 		in, out := &in.Resource, &out.Resource | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(ResourceMetricSource) | 			*out = new(ResourceMetricSource) | ||||||
| 			if err := DeepCopy_autoscaling_ResourceMetricSource(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_MetricStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec. | ||||||
| func DeepCopy_autoscaling_MetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *MetricSpec) DeepCopy() *MetricSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*MetricStatus) | 		return nil | ||||||
| 		out := out.(*MetricStatus) | 	} | ||||||
| 		*out = *in | 	out := new(MetricSpec) | ||||||
| 		if in.Object != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.Object, &out.Object | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MetricStatus) DeepCopyInto(out *MetricStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Object != nil { | ||||||
|  | 		in, out := &in.Object, &out.Object | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(ObjectMetricStatus) | 			*out = new(ObjectMetricStatus) | ||||||
| 			if err := DeepCopy_autoscaling_ObjectMetricStatus(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Pods != nil { | 	} | ||||||
| 			in, out := &in.Pods, &out.Pods | 	if in.Pods != nil { | ||||||
|  | 		in, out := &in.Pods, &out.Pods | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(PodsMetricStatus) | 			*out = new(PodsMetricStatus) | ||||||
| 			if err := DeepCopy_autoscaling_PodsMetricStatus(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Resource != nil { | 	} | ||||||
| 			in, out := &in.Resource, &out.Resource | 	if in.Resource != nil { | ||||||
|  | 		in, out := &in.Resource, &out.Resource | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(ResourceMetricStatus) | 			*out = new(ResourceMetricStatus) | ||||||
| 			if err := DeepCopy_autoscaling_ResourceMetricStatus(*in, *out, c); err != nil { | 			(*in).DeepCopyInto(*out) | ||||||
| 				return err |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ObjectMetricSource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus. | ||||||
| func DeepCopy_autoscaling_ObjectMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *MetricStatus) DeepCopy() *MetricStatus { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ObjectMetricSource) |  | ||||||
| 		out := out.(*ObjectMetricSource) |  | ||||||
| 		*out = *in |  | ||||||
| 		out.TargetValue = in.TargetValue.DeepCopy() |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(MetricStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ObjectMetricStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_ObjectMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ObjectMetricStatus) | 	out.Target = in.Target | ||||||
| 		out := out.(*ObjectMetricStatus) | 	out.TargetValue = in.TargetValue.DeepCopy() | ||||||
| 		*out = *in | 	return | ||||||
| 		out.CurrentValue = in.CurrentValue.DeepCopy() | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource. | ||||||
|  | func (x *ObjectMetricSource) DeepCopy() *ObjectMetricSource { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ObjectMetricSource) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_PodsMetricSource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_PodsMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodsMetricSource) | 	out.Target = in.Target | ||||||
| 		out := out.(*PodsMetricSource) | 	out.CurrentValue = in.CurrentValue.DeepCopy() | ||||||
| 		*out = *in | 	return | ||||||
| 		out.TargetAverageValue = in.TargetAverageValue.DeepCopy() | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus. | ||||||
|  | func (x *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ObjectMetricStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_PodsMetricStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_PodsMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodsMetricStatus) | 	out.TargetAverageValue = in.TargetAverageValue.DeepCopy() | ||||||
| 		out := out.(*PodsMetricStatus) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource. | ||||||
|  | func (x *PodsMetricSource) DeepCopy() *PodsMetricSource { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PodsMetricSource) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ResourceMetricSource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_ResourceMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ResourceMetricSource) | 	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() | ||||||
| 		out := out.(*ResourceMetricSource) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		if in.TargetAverageUtilization != nil { | 
 | ||||||
| 			in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus. | ||||||
|  | func (x *PodsMetricStatus) DeepCopy() *PodsMetricStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodsMetricStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.TargetAverageUtilization != nil { | ||||||
|  | 		in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.TargetAverageValue != nil { | 	} | ||||||
| 			in, out := &in.TargetAverageValue, &out.TargetAverageValue | 	if in.TargetAverageValue != nil { | ||||||
|  | 		in, out := &in.TargetAverageValue, &out.TargetAverageValue | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(resource.Quantity) | 			*out = new(resource.Quantity) | ||||||
| 			**out = (*in).DeepCopy() | 			**out = (*in).DeepCopy() | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ResourceMetricStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource. | ||||||
| func DeepCopy_autoscaling_ResourceMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ResourceMetricSource) DeepCopy() *ResourceMetricSource { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ResourceMetricStatus) | 		return nil | ||||||
| 		out := out.(*ResourceMetricStatus) | 	} | ||||||
| 		*out = *in | 	out := new(ResourceMetricSource) | ||||||
| 		if in.CurrentAverageUtilization != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.CurrentAverageUtilization != nil { | ||||||
|  | 		in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() | 	} | ||||||
|  | 	out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus. | ||||||
|  | func (x *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ResourceMetricStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Scale) DeepCopyInto(out *Scale) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	out.Spec = in.Spec | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Scale. | ||||||
|  | func (x *Scale) DeepCopy() *Scale { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Scale) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Scale) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_Scale is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Scale) | 	return | ||||||
| 		out := out.(*Scale) |  | ||||||
| 		*out = *in |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { |  | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ScaleSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec. | ||||||
| func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ScaleSpec) DeepCopy() *ScaleSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ScaleSpec) |  | ||||||
| 		out := out.(*ScaleSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ScaleSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_autoscaling_ScaleStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ScaleStatus) | 	return | ||||||
| 		out := out.(*ScaleStatus) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus. | ||||||
|  | func (x *ScaleStatus) DeepCopy() *ScaleStatus { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ScaleStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -22,6 +22,7 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Job represents the configuration of a single job. | // Job represents the configuration of a single job. | ||||||
| type Job struct { | type Job struct { | ||||||
| @@ -42,6 +43,8 @@ type Job struct { | |||||||
| 	Status JobStatus | 	Status JobStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // JobList is a collection of jobs. | // JobList is a collection of jobs. | ||||||
| type JobList struct { | type JobList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -54,6 +57,8 @@ type JobList struct { | |||||||
| 	Items []Job | 	Items []Job | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // JobTemplate describes a template for creating copies of a predefined pod. | // JobTemplate describes a template for creating copies of a predefined pod. | ||||||
| type JobTemplate struct { | type JobTemplate struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -188,6 +193,7 @@ type JobCondition struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // CronJob represents the configuration of a single cron job. | // CronJob represents the configuration of a single cron job. | ||||||
| type CronJob struct { | type CronJob struct { | ||||||
| @@ -208,6 +214,8 @@ type CronJob struct { | |||||||
| 	Status CronJobStatus | 	Status CronJobStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // CronJobList is a collection of cron jobs. | // CronJobList is a collection of cron jobs. | ||||||
| type CronJobList struct { | type CronJobList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -28,275 +28,434 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJob, InType: reflect.TypeOf(&CronJob{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobList, InType: reflect.TypeOf(&CronJobList{})}, | 			in.(*CronJob).DeepCopyInto(out.(*CronJob)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobSpec, InType: reflect.TypeOf(&CronJobSpec{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobStatus, InType: reflect.TypeOf(&CronJobStatus{})}, | 		}, InType: reflect.TypeOf(&CronJob{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_Job, InType: reflect.TypeOf(&Job{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, | 			in.(*CronJobList).DeepCopyInto(out.(*CronJobList)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobList, InType: reflect.TypeOf(&JobList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, | 		}, InType: reflect.TypeOf(&CronJobList{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplate, InType: reflect.TypeOf(&JobTemplate{})}, | 			in.(*CronJobSpec).DeepCopyInto(out.(*CronJobSpec)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplateSpec, InType: reflect.TypeOf(&JobTemplateSpec{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CronJobSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*CronJobStatus).DeepCopyInto(out.(*CronJobStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CronJobStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Job).DeepCopyInto(out.(*Job)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Job{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobCondition).DeepCopyInto(out.(*JobCondition)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobCondition{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobList).DeepCopyInto(out.(*JobList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobSpec).DeepCopyInto(out.(*JobSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobStatus).DeepCopyInto(out.(*JobStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobStatus{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobTemplate).DeepCopyInto(out.(*JobTemplate)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobTemplate{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*JobTemplateSpec).DeepCopyInto(out.(*JobTemplateSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&JobTemplateSpec{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_batch_CronJob is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CronJob) DeepCopyInto(out *CronJob) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CronJob) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*CronJob) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJob. | ||||||
|  | func (x *CronJob) DeepCopy() *CronJob { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CronJob) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *CronJob) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *CronJobList) DeepCopyInto(out *CronJobList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]CronJob, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList. | ||||||
|  | func (x *CronJobList) DeepCopy() *CronJobList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CronJobList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *CronJobList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.StartingDeadlineSeconds != nil { | ||||||
|  | 		in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_batch_CronJobStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_CronJobList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*CronJobList) |  | ||||||
| 		out := out.(*CronJobList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]CronJob, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_batch_CronJob(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_CronJobSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*CronJobSpec) |  | ||||||
| 		out := out.(*CronJobSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.StartingDeadlineSeconds != nil { |  | ||||||
| 			in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds |  | ||||||
| 			*out = new(int64) | 			*out = new(int64) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Suspend != nil { | 	} | ||||||
| 			in, out := &in.Suspend, &out.Suspend | 	if in.Suspend != nil { | ||||||
|  | 		in, out := &in.Suspend, &out.Suspend | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if in.SuccessfulJobsHistoryLimit != nil { |  | ||||||
| 			in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit |  | ||||||
| 			*out = new(int32) |  | ||||||
| 			**out = **in |  | ||||||
| 		} |  | ||||||
| 		if in.FailedJobsHistoryLimit != nil { |  | ||||||
| 			in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit |  | ||||||
| 			*out = new(int32) |  | ||||||
| 			**out = **in |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
| } | 	in.JobTemplate.DeepCopyInto(&out.JobTemplate) | ||||||
| 
 | 	if in.SuccessfulJobsHistoryLimit != nil { | ||||||
| // DeepCopy_batch_CronJobStatus is an autogenerated deepcopy function. | 		in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit | ||||||
| func DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | 		if *in == nil { | ||||||
| 	{ | 			*out = nil | ||||||
| 		in := in.(*CronJobStatus) |  | ||||||
| 		out := out.(*CronJobStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Active != nil { |  | ||||||
| 			in, out := &in.Active, &out.Active |  | ||||||
| 			*out = make([]api.ObjectReference, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.LastScheduleTime != nil { |  | ||||||
| 			in, out := &in.LastScheduleTime, &out.LastScheduleTime |  | ||||||
| 			*out = new(v1.Time) |  | ||||||
| 			**out = (*in).DeepCopy() |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_Job is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*Job) |  | ||||||
| 		out := out.(*Job) |  | ||||||
| 		*out = *in |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_batch_JobStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_JobCondition is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*JobCondition) |  | ||||||
| 		out := out.(*JobCondition) |  | ||||||
| 		*out = *in |  | ||||||
| 		out.LastProbeTime = in.LastProbeTime.DeepCopy() |  | ||||||
| 		out.LastTransitionTime = in.LastTransitionTime.DeepCopy() |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_JobList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*JobList) |  | ||||||
| 		out := out.(*JobList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]Job, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_batch_Job(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_batch_JobSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*JobSpec) |  | ||||||
| 		out := out.(*JobSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Parallelism != nil { |  | ||||||
| 			in, out := &in.Parallelism, &out.Parallelism |  | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Completions != nil { | 	} | ||||||
| 			in, out := &in.Completions, &out.Completions | 	if in.FailedJobsHistoryLimit != nil { | ||||||
|  | 		in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.ActiveDeadlineSeconds != nil { | 	} | ||||||
| 			in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec. | ||||||
|  | func (x *CronJobSpec) DeepCopy() *CronJobSpec { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CronJobSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Active != nil { | ||||||
|  | 		in, out := &in.Active, &out.Active | ||||||
|  | 		*out = make([]api.ObjectReference, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.LastScheduleTime != nil { | ||||||
|  | 		in, out := &in.LastScheduleTime, &out.LastScheduleTime | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.Time) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus. | ||||||
|  | func (x *CronJobStatus) DeepCopy() *CronJobStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CronJobStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Job) DeepCopyInto(out *Job) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	in.Status.DeepCopyInto(&out.Status) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Job. | ||||||
|  | func (x *Job) DeepCopy() *Job { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Job) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Job) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *JobCondition) DeepCopyInto(out *JobCondition) { | ||||||
|  | 	*out = *in | ||||||
|  | 	in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) | ||||||
|  | 	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition. | ||||||
|  | func (x *JobCondition) DeepCopy() *JobCondition { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(JobCondition) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *JobList) DeepCopyInto(out *JobList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]Job, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobList. | ||||||
|  | func (x *JobList) DeepCopy() *JobList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(JobList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *JobList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *JobSpec) DeepCopyInto(out *JobSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Parallelism != nil { | ||||||
|  | 		in, out := &in.Parallelism, &out.Parallelism | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(int32) | ||||||
|  | 			**out = **in | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.Completions != nil { | ||||||
|  | 		in, out := &in.Completions, &out.Completions | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(int32) | ||||||
|  | 			**out = **in | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.ActiveDeadlineSeconds != nil { | ||||||
|  | 		in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int64) | 			*out = new(int64) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Selector != nil { | 	} | ||||||
| 			in, out := &in.Selector, &out.Selector | 	if in.Selector != nil { | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { | 		in, out := &in.Selector, &out.Selector | ||||||
| 				return err | 		if *in == nil { | ||||||
| 			} else { | 			*out = nil | ||||||
| 				*out = newVal.(*v1.LabelSelector) | 		} else { | ||||||
| 			} | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		if in.ManualSelector != nil { | 	} | ||||||
| 			in, out := &in.ManualSelector, &out.ManualSelector | 	if in.ManualSelector != nil { | ||||||
|  | 		in, out := &in.ManualSelector, &out.ManualSelector | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	in.Template.DeepCopyInto(&out.Template) | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_batch_JobStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec. | ||||||
| func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *JobSpec) DeepCopy() *JobSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*JobStatus) |  | ||||||
| 		out := out.(*JobStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Conditions != nil { |  | ||||||
| 			in, out := &in.Conditions, &out.Conditions |  | ||||||
| 			*out = make([]JobCondition, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_batch_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.StartTime != nil { |  | ||||||
| 			in, out := &in.StartTime, &out.StartTime |  | ||||||
| 			*out = new(v1.Time) |  | ||||||
| 			**out = (*in).DeepCopy() |  | ||||||
| 		} |  | ||||||
| 		if in.CompletionTime != nil { |  | ||||||
| 			in, out := &in.CompletionTime, &out.CompletionTime |  | ||||||
| 			*out = new(v1.Time) |  | ||||||
| 			**out = (*in).DeepCopy() |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(JobSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_batch_JobTemplate is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *JobStatus) DeepCopyInto(out *JobStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*JobTemplate) | 	if in.Conditions != nil { | ||||||
| 		out := out.(*JobTemplate) | 		in, out := &in.Conditions, &out.Conditions | ||||||
| 		*out = *in | 		*out = make([]JobCondition, len(*in)) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		for i := range *in { | ||||||
| 			return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.StartTime != nil { | ||||||
|  | 		in, out := &in.StartTime, &out.StartTime | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			*out = new(v1.Time) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil { | 	} | ||||||
| 			return err | 	if in.CompletionTime != nil { | ||||||
|  | 		in, out := &in.CompletionTime, &out.CompletionTime | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.Time) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus. | ||||||
|  | func (x *JobStatus) DeepCopy() *JobStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(JobStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *JobTemplate) DeepCopyInto(out *JobTemplate) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Template.DeepCopyInto(&out.Template) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate. | ||||||
|  | func (x *JobTemplate) DeepCopy() *JobTemplate { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(JobTemplate) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *JobTemplate) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_batch_JobTemplateSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*JobTemplateSpec) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		out := out.(*JobTemplateSpec) | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		*out = *in | 	return | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | } | ||||||
| 			return err | 
 | ||||||
| 		} else { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec. | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | func (x *JobTemplateSpec) DeepCopy() *JobTemplateSpec { | ||||||
| 		} | 	if x == nil { | ||||||
| 		if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(JobTemplateSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -20,6 +20,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Describes a certificate signing request | // Describes a certificate signing request | ||||||
| type CertificateSigningRequest struct { | type CertificateSigningRequest struct { | ||||||
| @@ -102,6 +103,8 @@ type CertificateSigningRequestCondition struct { | |||||||
| 	LastUpdateTime metav1.Time | 	LastUpdateTime metav1.Time | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type CertificateSigningRequestList struct { | type CertificateSigningRequestList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
|   | |||||||
| @@ -21,135 +21,186 @@ limitations under the License. | |||||||
| package certificates | package certificates | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})}, | 			in.(*CertificateSigningRequest).DeepCopyInto(out.(*CertificateSigningRequest)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})}, | 		}, InType: reflect.TypeOf(&CertificateSigningRequest{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*CertificateSigningRequestCondition).DeepCopyInto(out.(*CertificateSigningRequestCondition)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*CertificateSigningRequestList).DeepCopyInto(out.(*CertificateSigningRequestList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CertificateSigningRequestList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*CertificateSigningRequestSpec).DeepCopyInto(out.(*CertificateSigningRequestSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*CertificateSigningRequestStatus).DeepCopyInto(out.(*CertificateSigningRequestStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_certificates_CertificateSigningRequest is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CertificateSigningRequest) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*CertificateSigningRequest) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
| 		} else { | } | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 
 | ||||||
| 		} | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest. | ||||||
| 		if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil { | func (x *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest { | ||||||
| 			return err | 	if x == nil { | ||||||
| 		} | 		return nil | ||||||
| 		if err := DeepCopy_certificates_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil { | 	} | ||||||
| 			return err | 	out := new(CertificateSigningRequest) | ||||||
| 		} | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *CertificateSigningRequest) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_certificates_CertificateSigningRequestCondition is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CertificateSigningRequestCondition) | 	in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) | ||||||
| 		out := out.(*CertificateSigningRequestCondition) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		out.LastUpdateTime = in.LastUpdateTime.DeepCopy() | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition. | ||||||
|  | func (x *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CertificateSigningRequestCondition) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]CertificateSigningRequest, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList. | ||||||
|  | func (x *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(CertificateSigningRequestList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *CertificateSigningRequestList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_certificates_CertificateSigningRequestList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CertificateSigningRequestList) | 	if in.Request != nil { | ||||||
| 		out := out.(*CertificateSigningRequestList) | 		in, out := &in.Request, &out.Request | ||||||
| 		*out = *in | 		*out = make([]byte, len(*in)) | ||||||
| 		if in.Items != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]CertificateSigningRequest, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_certificates_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.Usages != nil { | ||||||
|  | 		in, out := &in.Usages, &out.Usages | ||||||
|  | 		*out = make([]KeyUsage, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Groups != nil { | ||||||
|  | 		in, out := &in.Groups, &out.Groups | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Extra != nil { | ||||||
|  | 		in, out := &in.Extra, &out.Extra | ||||||
|  | 		*out = make(map[string]ExtraValue, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = make(ExtraValue, len(val)) | ||||||
|  | 			copy((*out)[key], val) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_certificates_CertificateSigningRequestSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec. | ||||||
| func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*CertificateSigningRequestSpec) |  | ||||||
| 		out := out.(*CertificateSigningRequestSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Request != nil { |  | ||||||
| 			in, out := &in.Request, &out.Request |  | ||||||
| 			*out = make([]byte, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Usages != nil { |  | ||||||
| 			in, out := &in.Usages, &out.Usages |  | ||||||
| 			*out = make([]KeyUsage, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Groups != nil { |  | ||||||
| 			in, out := &in.Groups, &out.Groups |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Extra != nil { |  | ||||||
| 			in, out := &in.Extra, &out.Extra |  | ||||||
| 			*out = make(map[string]ExtraValue) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				if newVal, err := c.DeepCopy(&val); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} else { |  | ||||||
| 					(*out)[key] = *newVal.(*ExtraValue) |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(CertificateSigningRequestSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_certificates_CertificateSigningRequestStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*CertificateSigningRequestStatus) | 	if in.Conditions != nil { | ||||||
| 		out := out.(*CertificateSigningRequestStatus) | 		in, out := &in.Conditions, &out.Conditions | ||||||
| 		*out = *in | 		*out = make([]CertificateSigningRequestCondition, len(*in)) | ||||||
| 		if in.Conditions != nil { | 		for i := range *in { | ||||||
| 			in, out := &in.Conditions, &out.Conditions | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			*out = make([]CertificateSigningRequestCondition, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_certificates_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.Certificate != nil { |  | ||||||
| 			in, out := &in.Certificate, &out.Certificate |  | ||||||
| 			*out = make([]byte, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.Certificate != nil { | ||||||
|  | 		in, out := &in.Certificate, &out.Certificate | ||||||
|  | 		*out = make([]byte, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus. | ||||||
|  | func (x *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(CertificateSigningRequestStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -78,6 +78,8 @@ type KubeProxyConntrackConfiguration struct { | |||||||
| 	TCPCloseWaitTimeout metav1.Duration | 	TCPCloseWaitTimeout metav1.Duration | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // KubeProxyConfiguration contains everything necessary to configure the | // KubeProxyConfiguration contains everything necessary to configure the | ||||||
| // Kubernetes proxy server. | // Kubernetes proxy server. | ||||||
| type KubeProxyConfiguration struct { | type KubeProxyConfiguration struct { | ||||||
| @@ -166,6 +168,8 @@ const ( | |||||||
| 	HairpinNone = "none" | 	HairpinNone = "none" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: | // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: | ||||||
| // - its value will never, or cannot safely be changed during the lifetime of a node | // - its value will never, or cannot safely be changed during the lifetime of a node | ||||||
| // - its value cannot be safely shared between nodes at the same time (e.g. a hostname) | // - its value cannot be safely shared between nodes at the same time (e.g. a hostname) | ||||||
| @@ -563,6 +567,8 @@ type KubeletAnonymousAuthentication struct { | |||||||
| 	Enabled bool | 	Enabled bool | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type KubeSchedulerConfiguration struct { | type KubeSchedulerConfiguration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|  |  | ||||||
| @@ -650,6 +656,8 @@ type GroupResource struct { | |||||||
| 	Resource string | 	Resource string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type KubeControllerManagerConfiguration struct { | type KubeControllerManagerConfiguration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|  |  | ||||||
|   | |||||||
| @@ -74,6 +74,8 @@ type KubeProxyConntrackConfiguration struct { | |||||||
| 	TCPCloseWaitTimeout metav1.Duration `json:"tcpCloseWaitTimeout"` | 	TCPCloseWaitTimeout metav1.Duration `json:"tcpCloseWaitTimeout"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // KubeProxyConfiguration contains everything necessary to configure the | // KubeProxyConfiguration contains everything necessary to configure the | ||||||
| // Kubernetes proxy server. | // Kubernetes proxy server. | ||||||
| type KubeProxyConfiguration struct { | type KubeProxyConfiguration struct { | ||||||
| @@ -144,6 +146,8 @@ const ( | |||||||
| 	ProxyModeIPTables  ProxyMode = "iptables" | 	ProxyModeIPTables  ProxyMode = "iptables" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type KubeSchedulerConfiguration struct { | type KubeSchedulerConfiguration struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|  |  | ||||||
| @@ -241,6 +245,8 @@ type LeaderElectionConfiguration struct { | |||||||
| 	ResourceLock string `json:"resourceLock"` | 	ResourceLock string `json:"resourceLock"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: | // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: | ||||||
| // - its value will never, or cannot safely be changed during the lifetime of a node | // - its value will never, or cannot safely be changed during the lifetime of a node | ||||||
| // - its value cannot be safely shared between nodes at the same time (e.g. a hostname) | // - its value cannot be safely shared between nodes at the same time (e.g. a hostname) | ||||||
|   | |||||||
| @@ -27,388 +27,672 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ClientConnectionConfiguration, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, | 			in.(*ClientConnectionConfiguration).DeepCopyInto(out.(*ClientConnectionConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyConntrackConfiguration, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, | 		}, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAnonymousAuthentication, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, | 			in.(*KubeProxyConfiguration).DeepCopyInto(out.(*KubeProxyConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAuthentication, InType: reflect.TypeOf(&KubeletAuthentication{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAuthorization, InType: reflect.TypeOf(&KubeletAuthorization{})}, | 		}, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletWebhookAuthentication, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, | 			in.(*KubeProxyConntrackConfiguration).DeepCopyInto(out.(*KubeProxyConntrackConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletWebhookAuthorization, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletX509Authentication, InType: reflect.TypeOf(&KubeletX509Authentication{})}, | 		}, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeProxyIPTablesConfiguration).DeepCopyInto(out.(*KubeProxyIPTablesConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeSchedulerConfiguration).DeepCopyInto(out.(*KubeSchedulerConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAnonymousAuthentication).DeepCopyInto(out.(*KubeletAnonymousAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAuthentication).DeepCopyInto(out.(*KubeletAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAuthorization).DeepCopyInto(out.(*KubeletAuthorization)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAuthorization{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletConfiguration).DeepCopyInto(out.(*KubeletConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletWebhookAuthentication).DeepCopyInto(out.(*KubeletWebhookAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletWebhookAuthorization).DeepCopyInto(out.(*KubeletWebhookAuthorization)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletX509Authentication).DeepCopyInto(out.(*KubeletX509Authentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletX509Authentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*LeaderElectionConfiguration).DeepCopyInto(out.(*LeaderElectionConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_ClientConnectionConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_ClientConnectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClientConnectionConfiguration) DeepCopyInto(out *ClientConnectionConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClientConnectionConfiguration) | 	return | ||||||
| 		out := out.(*ClientConnectionConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeProxyConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration. | ||||||
| func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClientConnectionConfiguration) DeepCopy() *ClientConnectionConfiguration { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeProxyConfiguration) | 		return nil | ||||||
| 		out := out.(*KubeProxyConfiguration) | 	} | ||||||
| 		*out = *in | 	out := new(ClientConnectionConfiguration) | ||||||
| 		if err := DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration(&in.IPTables, &out.IPTables, c); err != nil { | 	x.DeepCopyInto(out) | ||||||
| 			return err | 	return out | ||||||
| 		} | } | ||||||
| 		if in.OOMScoreAdj != nil { | 
 | ||||||
| 			in, out := &in.OOMScoreAdj, &out.OOMScoreAdj | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeProxyConfiguration) DeepCopyInto(out *KubeProxyConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ClientConnection = in.ClientConnection | ||||||
|  | 	in.IPTables.DeepCopyInto(&out.IPTables) | ||||||
|  | 	if in.OOMScoreAdj != nil { | ||||||
|  | 		in, out := &in.OOMScoreAdj, &out.OOMScoreAdj | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	out.UDPIdleTimeout = in.UDPIdleTimeout | ||||||
|  | 	out.Conntrack = in.Conntrack | ||||||
|  | 	out.ConfigSyncPeriod = in.ConfigSyncPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration. | ||||||
|  | func (x *KubeProxyConfiguration) DeepCopy() *KubeProxyConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeProxyConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeProxyConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeProxyConntrackConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeProxyConntrackConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeProxyConntrackConfiguration) DeepCopyInto(out *KubeProxyConntrackConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeProxyConntrackConfiguration) | 	out.TCPEstablishedTimeout = in.TCPEstablishedTimeout | ||||||
| 		out := out.(*KubeProxyConntrackConfiguration) | 	out.TCPCloseWaitTimeout = in.TCPCloseWaitTimeout | ||||||
| 		*out = *in | 	return | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration. | ||||||
| func DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeProxyConntrackConfiguration) DeepCopy() *KubeProxyConntrackConfiguration { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeProxyIPTablesConfiguration) | 		return nil | ||||||
| 		out := out.(*KubeProxyIPTablesConfiguration) | 	} | ||||||
| 		*out = *in | 	out := new(KubeProxyConntrackConfiguration) | ||||||
| 		if in.MasqueradeBit != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.MasqueradeBit, &out.MasqueradeBit | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeProxyIPTablesConfiguration) DeepCopyInto(out *KubeProxyIPTablesConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.MasqueradeBit != nil { | ||||||
|  | 		in, out := &in.MasqueradeBit, &out.MasqueradeBit | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	out.SyncPeriod = in.SyncPeriod | ||||||
|  | 	out.MinSyncPeriod = in.MinSyncPeriod | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeSchedulerConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration. | ||||||
| func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeProxyIPTablesConfiguration) DeepCopy() *KubeProxyIPTablesConfiguration { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeSchedulerConfiguration) | 		return nil | ||||||
| 		out := out.(*KubeSchedulerConfiguration) | 	} | ||||||
| 		*out = *in | 	out := new(KubeProxyIPTablesConfiguration) | ||||||
| 		if in.EnableProfiling != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.EnableProfiling, &out.EnableProfiling | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeSchedulerConfiguration) DeepCopyInto(out *KubeSchedulerConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	if in.EnableProfiling != nil { | ||||||
|  | 		in, out := &in.EnableProfiling, &out.EnableProfiling | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil { | 	} | ||||||
| 			return err | 	in.LeaderElection.DeepCopyInto(&out.LeaderElection) | ||||||
| 		} | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerConfiguration. | ||||||
|  | func (x *KubeSchedulerConfiguration) DeepCopy() *KubeSchedulerConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeSchedulerConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeSchedulerConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletAnonymousAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeletAnonymousAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletAnonymousAuthentication) DeepCopyInto(out *KubeletAnonymousAuthentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletAnonymousAuthentication) | 	if in.Enabled != nil { | ||||||
| 		out := out.(*KubeletAnonymousAuthentication) | 		in, out := &in.Enabled, &out.Enabled | ||||||
| 		*out = *in | 		if *in == nil { | ||||||
| 		if in.Enabled != nil { | 			*out = nil | ||||||
| 			in, out := &in.Enabled, &out.Enabled | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAnonymousAuthentication. | ||||||
| func DeepCopy_v1alpha1_KubeletAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeletAnonymousAuthentication) DeepCopy() *KubeletAnonymousAuthentication { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeletAuthentication) |  | ||||||
| 		out := out.(*KubeletAuthentication) |  | ||||||
| 		*out = *in |  | ||||||
| 		if err := DeepCopy_v1alpha1_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_v1alpha1_KubeletAnonymousAuthentication(&in.Anonymous, &out.Anonymous, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletAnonymousAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletAuthorization is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeletAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletAuthentication) DeepCopyInto(out *KubeletAuthentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletAuthorization) | 	out.X509 = in.X509 | ||||||
| 		out := out.(*KubeletAuthorization) | 	in.Webhook.DeepCopyInto(&out.Webhook) | ||||||
| 		*out = *in | 	in.Anonymous.DeepCopyInto(&out.Anonymous) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthentication. | ||||||
|  | func (x *KubeletAuthentication) DeepCopy() *KubeletAuthentication { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletAuthorization) DeepCopyInto(out *KubeletAuthorization) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletConfiguration) | 	out.Webhook = in.Webhook | ||||||
| 		out := out.(*KubeletConfiguration) | 	return | ||||||
| 		*out = *in | } | ||||||
| 		if in.EnableServer != nil { | 
 | ||||||
| 			in, out := &in.EnableServer, &out.EnableServer | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthorization. | ||||||
|  | func (x *KubeletAuthorization) DeepCopy() *KubeletAuthorization { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletAuthorization) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.SyncFrequency = in.SyncFrequency | ||||||
|  | 	out.FileCheckFrequency = in.FileCheckFrequency | ||||||
|  | 	out.HTTPCheckFrequency = in.HTTPCheckFrequency | ||||||
|  | 	if in.EnableServer != nil { | ||||||
|  | 		in, out := &in.EnableServer, &out.EnableServer | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if err := DeepCopy_v1alpha1_KubeletAuthentication(&in.Authentication, &out.Authentication, c); err != nil { | 	} | ||||||
| 			return err | 	in.Authentication.DeepCopyInto(&out.Authentication) | ||||||
| 		} | 	out.Authorization = in.Authorization | ||||||
| 		if in.AllowPrivileged != nil { | 	if in.AllowPrivileged != nil { | ||||||
| 			in, out := &in.AllowPrivileged, &out.AllowPrivileged | 		in, out := &in.AllowPrivileged, &out.AllowPrivileged | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.HostNetworkSources != nil { | 	} | ||||||
| 			in, out := &in.HostNetworkSources, &out.HostNetworkSources | 	if in.HostNetworkSources != nil { | ||||||
| 			*out = make([]string, len(*in)) | 		in, out := &in.HostNetworkSources, &out.HostNetworkSources | ||||||
| 			copy(*out, *in) | 		*out = make([]string, len(*in)) | ||||||
| 		} | 		copy(*out, *in) | ||||||
| 		if in.HostPIDSources != nil { | 	} | ||||||
| 			in, out := &in.HostPIDSources, &out.HostPIDSources | 	if in.HostPIDSources != nil { | ||||||
| 			*out = make([]string, len(*in)) | 		in, out := &in.HostPIDSources, &out.HostPIDSources | ||||||
| 			copy(*out, *in) | 		*out = make([]string, len(*in)) | ||||||
| 		} | 		copy(*out, *in) | ||||||
| 		if in.HostIPCSources != nil { | 	} | ||||||
| 			in, out := &in.HostIPCSources, &out.HostIPCSources | 	if in.HostIPCSources != nil { | ||||||
| 			*out = make([]string, len(*in)) | 		in, out := &in.HostIPCSources, &out.HostIPCSources | ||||||
| 			copy(*out, *in) | 		*out = make([]string, len(*in)) | ||||||
| 		} | 		copy(*out, *in) | ||||||
| 		if in.RegistryPullQPS != nil { | 	} | ||||||
| 			in, out := &in.RegistryPullQPS, &out.RegistryPullQPS | 	if in.RegistryPullQPS != nil { | ||||||
|  | 		in, out := &in.RegistryPullQPS, &out.RegistryPullQPS | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.EventRecordQPS != nil { | 	} | ||||||
| 			in, out := &in.EventRecordQPS, &out.EventRecordQPS | 	if in.EventRecordQPS != nil { | ||||||
|  | 		in, out := &in.EventRecordQPS, &out.EventRecordQPS | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.EnableDebuggingHandlers != nil { | 	} | ||||||
| 			in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers | 	if in.EnableDebuggingHandlers != nil { | ||||||
|  | 		in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.MaxContainerCount != nil { | 	} | ||||||
| 			in, out := &in.MaxContainerCount, &out.MaxContainerCount | 	out.MinimumGCAge = in.MinimumGCAge | ||||||
|  | 	if in.MaxContainerCount != nil { | ||||||
|  | 		in, out := &in.MaxContainerCount, &out.MaxContainerCount | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.CAdvisorPort != nil { | 	} | ||||||
| 			in, out := &in.CAdvisorPort, &out.CAdvisorPort | 	if in.CAdvisorPort != nil { | ||||||
|  | 		in, out := &in.CAdvisorPort, &out.CAdvisorPort | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.OOMScoreAdj != nil { | 	} | ||||||
| 			in, out := &in.OOMScoreAdj, &out.OOMScoreAdj | 	if in.OOMScoreAdj != nil { | ||||||
|  | 		in, out := &in.OOMScoreAdj, &out.OOMScoreAdj | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.RegisterNode != nil { | 	} | ||||||
| 			in, out := &in.RegisterNode, &out.RegisterNode | 	if in.RegisterNode != nil { | ||||||
|  | 		in, out := &in.RegisterNode, &out.RegisterNode | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.ClusterDNS != nil { | 	} | ||||||
| 			in, out := &in.ClusterDNS, &out.ClusterDNS | 	if in.ClusterDNS != nil { | ||||||
| 			*out = make([]string, len(*in)) | 		in, out := &in.ClusterDNS, &out.ClusterDNS | ||||||
| 			copy(*out, *in) | 		*out = make([]string, len(*in)) | ||||||
| 		} | 		copy(*out, *in) | ||||||
| 		if in.ImageGCHighThresholdPercent != nil { | 	} | ||||||
| 			in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent | 	out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout | ||||||
|  | 	out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency | ||||||
|  | 	out.ImageMinimumGCAge = in.ImageMinimumGCAge | ||||||
|  | 	if in.ImageGCHighThresholdPercent != nil { | ||||||
|  | 		in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.ImageGCLowThresholdPercent != nil { | 	} | ||||||
| 			in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent | 	if in.ImageGCLowThresholdPercent != nil { | ||||||
|  | 		in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.CgroupsPerQOS != nil { | 	} | ||||||
| 			in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS | 	out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod | ||||||
|  | 	if in.CgroupsPerQOS != nil { | ||||||
|  | 		in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.LockFilePath != nil { | 	} | ||||||
| 			in, out := &in.LockFilePath, &out.LockFilePath | 	out.RuntimeRequestTimeout = in.RuntimeRequestTimeout | ||||||
|  | 	if in.LockFilePath != nil { | ||||||
|  | 		in, out := &in.LockFilePath, &out.LockFilePath | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(string) | 			*out = new(string) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.CPUCFSQuota != nil { | 	} | ||||||
| 			in, out := &in.CPUCFSQuota, &out.CPUCFSQuota | 	if in.CPUCFSQuota != nil { | ||||||
|  | 		in, out := &in.CPUCFSQuota, &out.CPUCFSQuota | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Containerized != nil { | 	} | ||||||
| 			in, out := &in.Containerized, &out.Containerized | 	if in.Containerized != nil { | ||||||
|  | 		in, out := &in.Containerized, &out.Containerized | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.RegisterSchedulable != nil { | 	} | ||||||
| 			in, out := &in.RegisterSchedulable, &out.RegisterSchedulable | 	if in.RegisterSchedulable != nil { | ||||||
|  | 		in, out := &in.RegisterSchedulable, &out.RegisterSchedulable | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.RegisterWithTaints != nil { | 	} | ||||||
| 			in, out := &in.RegisterWithTaints, &out.RegisterWithTaints | 	if in.RegisterWithTaints != nil { | ||||||
| 			*out = make([]v1.Taint, len(*in)) | 		in, out := &in.RegisterWithTaints, &out.RegisterWithTaints | ||||||
| 			for i := range *in { | 		*out = make([]v1.Taint, len(*in)) | ||||||
| 				if err := v1.DeepCopy_v1_Taint(&(*in)[i], &(*out)[i], c); err != nil { | 		for i := range *in { | ||||||
| 					return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.KubeAPIQPS != nil { | 	} | ||||||
| 			in, out := &in.KubeAPIQPS, &out.KubeAPIQPS | 	if in.KubeAPIQPS != nil { | ||||||
|  | 		in, out := &in.KubeAPIQPS, &out.KubeAPIQPS | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.SerializeImagePulls != nil { | 	} | ||||||
| 			in, out := &in.SerializeImagePulls, &out.SerializeImagePulls | 	if in.SerializeImagePulls != nil { | ||||||
|  | 		in, out := &in.SerializeImagePulls, &out.SerializeImagePulls | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.NodeLabels != nil { | 	} | ||||||
| 			in, out := &in.NodeLabels, &out.NodeLabels | 	out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency | ||||||
| 			*out = make(map[string]string) | 	if in.NodeLabels != nil { | ||||||
| 			for key, val := range *in { | 		in, out := &in.NodeLabels, &out.NodeLabels | ||||||
| 				(*out)[key] = val | 		*out = make(map[string]string, len(*in)) | ||||||
| 			} | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
| 		} | 		} | ||||||
| 		if in.EvictionHard != nil { | 	} | ||||||
| 			in, out := &in.EvictionHard, &out.EvictionHard | 	if in.EvictionHard != nil { | ||||||
|  | 		in, out := &in.EvictionHard, &out.EvictionHard | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(string) | 			*out = new(string) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.ExperimentalKernelMemcgNotification != nil { | 	} | ||||||
| 			in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification | 	out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod | ||||||
|  | 	if in.ExperimentalKernelMemcgNotification != nil { | ||||||
|  | 		in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.EnableControllerAttachDetach != nil { | 	} | ||||||
| 			in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach | 	if in.EnableControllerAttachDetach != nil { | ||||||
|  | 		in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.ExperimentalQOSReserved != nil { | 	} | ||||||
| 			in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved | 	if in.ExperimentalQOSReserved != nil { | ||||||
| 			*out = make(map[string]string) | 		in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved | ||||||
| 			for key, val := range *in { | 		*out = make(map[string]string, len(*in)) | ||||||
| 				(*out)[key] = val | 		for key, val := range *in { | ||||||
| 			} | 			(*out)[key] = val | ||||||
| 		} | 		} | ||||||
| 		if in.MakeIPTablesUtilChains != nil { | 	} | ||||||
| 			in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains | 	if in.MakeIPTablesUtilChains != nil { | ||||||
|  | 		in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.IPTablesMasqueradeBit != nil { | 	} | ||||||
| 			in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit | 	if in.IPTablesMasqueradeBit != nil { | ||||||
|  | 		in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.IPTablesDropBit != nil { | 	} | ||||||
| 			in, out := &in.IPTablesDropBit, &out.IPTablesDropBit | 	if in.IPTablesDropBit != nil { | ||||||
|  | 		in, out := &in.IPTablesDropBit, &out.IPTablesDropBit | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.AllowedUnsafeSysctls != nil { | 	} | ||||||
| 			in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls | 	if in.AllowedUnsafeSysctls != nil { | ||||||
| 			*out = make([]string, len(*in)) | 		in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls | ||||||
| 			copy(*out, *in) | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.SystemReserved != nil { | ||||||
|  | 		in, out := &in.SystemReserved, &out.SystemReserved | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
| 		} | 		} | ||||||
| 		if in.SystemReserved != nil { | 	} | ||||||
| 			in, out := &in.SystemReserved, &out.SystemReserved | 	if in.KubeReserved != nil { | ||||||
| 			*out = make(map[string]string) | 		in, out := &in.KubeReserved, &out.KubeReserved | ||||||
| 			for key, val := range *in { | 		*out = make(map[string]string, len(*in)) | ||||||
| 				(*out)[key] = val | 		for key, val := range *in { | ||||||
| 			} | 			(*out)[key] = val | ||||||
| 		} |  | ||||||
| 		if in.KubeReserved != nil { |  | ||||||
| 			in, out := &in.KubeReserved, &out.KubeReserved |  | ||||||
| 			*out = make(map[string]string) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.EnforceNodeAllocatable != nil { |  | ||||||
| 			in, out := &in.EnforceNodeAllocatable, &out.EnforceNodeAllocatable |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.EnforceNodeAllocatable != nil { | ||||||
|  | 		in, out := &in.EnforceNodeAllocatable, &out.EnforceNodeAllocatable | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfiguration. | ||||||
|  | func (x *KubeletConfiguration) DeepCopy() *KubeletConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeletConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletWebhookAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeletWebhookAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletWebhookAuthentication) DeepCopyInto(out *KubeletWebhookAuthentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletWebhookAuthentication) | 	if in.Enabled != nil { | ||||||
| 		out := out.(*KubeletWebhookAuthentication) | 		in, out := &in.Enabled, &out.Enabled | ||||||
| 		*out = *in | 		if *in == nil { | ||||||
| 		if in.Enabled != nil { | 			*out = nil | ||||||
| 			in, out := &in.Enabled, &out.Enabled | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	out.CacheTTL = in.CacheTTL | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletWebhookAuthorization is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthentication. | ||||||
| func DeepCopy_v1alpha1_KubeletWebhookAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeletWebhookAuthentication) DeepCopy() *KubeletWebhookAuthentication { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeletWebhookAuthorization) |  | ||||||
| 		out := out.(*KubeletWebhookAuthorization) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletWebhookAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_KubeletX509Authentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_KubeletX509Authentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletWebhookAuthorization) DeepCopyInto(out *KubeletWebhookAuthorization) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletX509Authentication) | 	out.CacheAuthorizedTTL = in.CacheAuthorizedTTL | ||||||
| 		out := out.(*KubeletX509Authentication) | 	out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL | ||||||
| 		*out = *in | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthorization. | ||||||
|  | func (x *KubeletWebhookAuthorization) DeepCopy() *KubeletWebhookAuthorization { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletWebhookAuthorization) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_LeaderElectionConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletX509Authentication) DeepCopyInto(out *KubeletX509Authentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*LeaderElectionConfiguration) | 	return | ||||||
| 		out := out.(*LeaderElectionConfiguration) | } | ||||||
| 		*out = *in | 
 | ||||||
| 		if in.LeaderElect != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletX509Authentication. | ||||||
| 			in, out := &in.LeaderElect, &out.LeaderElect | func (x *KubeletX509Authentication) DeepCopy() *KubeletX509Authentication { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletX509Authentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.LeaderElect != nil { | ||||||
|  | 		in, out := &in.LeaderElect, &out.LeaderElect | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(bool) | 			*out = new(bool) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	out.LeaseDuration = in.LeaseDuration | ||||||
|  | 	out.RenewDeadline = in.RenewDeadline | ||||||
|  | 	out.RetryPeriod = in.RetryPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration. | ||||||
|  | func (x *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(LeaderElectionConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -27,322 +27,599 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_ClientConnectionConfiguration, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_GroupResource, InType: reflect.TypeOf(&GroupResource{})}, | 			in.(*ClientConnectionConfiguration).DeepCopyInto(out.(*ClientConnectionConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_IPVar, InType: reflect.TypeOf(&IPVar{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeControllerManagerConfiguration, InType: reflect.TypeOf(&KubeControllerManagerConfiguration{})}, | 		}, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyConntrackConfiguration, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, | 			in.(*GroupResource).DeepCopyInto(out.(*GroupResource)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyIPTablesConfiguration, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, | 		}, InType: reflect.TypeOf(&GroupResource{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAnonymousAuthentication, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAuthentication, InType: reflect.TypeOf(&KubeletAuthentication{})}, | 			in.(*IPVar).DeepCopyInto(out.(*IPVar)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAuthorization, InType: reflect.TypeOf(&KubeletAuthorization{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, | 		}, InType: reflect.TypeOf(&IPVar{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletWebhookAuthentication, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletWebhookAuthorization, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, | 			in.(*KubeControllerManagerConfiguration).DeepCopyInto(out.(*KubeControllerManagerConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletX509Authentication, InType: reflect.TypeOf(&KubeletX509Authentication{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, | 		}, InType: reflect.TypeOf(&KubeControllerManagerConfiguration{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration, InType: reflect.TypeOf(&PersistentVolumeRecyclerConfiguration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PortRangeVar, InType: reflect.TypeOf(&PortRangeVar{})}, | 			in.(*KubeProxyConfiguration).DeepCopyInto(out.(*KubeProxyConfiguration)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_VolumeConfiguration, InType: reflect.TypeOf(&VolumeConfiguration{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeProxyConntrackConfiguration).DeepCopyInto(out.(*KubeProxyConntrackConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeProxyIPTablesConfiguration).DeepCopyInto(out.(*KubeProxyIPTablesConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeSchedulerConfiguration).DeepCopyInto(out.(*KubeSchedulerConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAnonymousAuthentication).DeepCopyInto(out.(*KubeletAnonymousAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAuthentication).DeepCopyInto(out.(*KubeletAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletAuthorization).DeepCopyInto(out.(*KubeletAuthorization)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletAuthorization{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletConfiguration).DeepCopyInto(out.(*KubeletConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletWebhookAuthentication).DeepCopyInto(out.(*KubeletWebhookAuthentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletWebhookAuthorization).DeepCopyInto(out.(*KubeletWebhookAuthorization)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*KubeletX509Authentication).DeepCopyInto(out.(*KubeletX509Authentication)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&KubeletX509Authentication{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*LeaderElectionConfiguration).DeepCopyInto(out.(*LeaderElectionConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PersistentVolumeRecyclerConfiguration).DeepCopyInto(out.(*PersistentVolumeRecyclerConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PersistentVolumeRecyclerConfiguration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PortRangeVar).DeepCopyInto(out.(*PortRangeVar)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PortRangeVar{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*VolumeConfiguration).DeepCopyInto(out.(*VolumeConfiguration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&VolumeConfiguration{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_ClientConnectionConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_ClientConnectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClientConnectionConfiguration) DeepCopyInto(out *ClientConnectionConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClientConnectionConfiguration) | 	return | ||||||
| 		out := out.(*ClientConnectionConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_GroupResource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration. | ||||||
| func DeepCopy_componentconfig_GroupResource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ClientConnectionConfiguration) DeepCopy() *ClientConnectionConfiguration { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*GroupResource) |  | ||||||
| 		out := out.(*GroupResource) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ClientConnectionConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_IPVar is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_IPVar(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *GroupResource) DeepCopyInto(out *GroupResource) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*IPVar) | 	return | ||||||
| 		out := out.(*IPVar) | } | ||||||
| 		*out = *in | 
 | ||||||
| 		if in.Val != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource. | ||||||
| 			in, out := &in.Val, &out.Val | func (x *GroupResource) DeepCopy() *GroupResource { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(GroupResource) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *IPVar) DeepCopyInto(out *IPVar) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Val != nil { | ||||||
|  | 		in, out := &in.Val, &out.Val | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(string) | 			*out = new(string) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new IPVar. | ||||||
|  | func (x *IPVar) DeepCopy() *IPVar { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(IPVar) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerManagerConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	if in.Controllers != nil { | ||||||
|  | 		in, out := &in.Controllers, &out.Controllers | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	out.ServiceSyncPeriod = in.ServiceSyncPeriod | ||||||
|  | 	out.NodeSyncPeriod = in.NodeSyncPeriod | ||||||
|  | 	out.RouteReconciliationPeriod = in.RouteReconciliationPeriod | ||||||
|  | 	out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod | ||||||
|  | 	out.NamespaceSyncPeriod = in.NamespaceSyncPeriod | ||||||
|  | 	out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod | ||||||
|  | 	out.MinResyncPeriod = in.MinResyncPeriod | ||||||
|  | 	out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod | ||||||
|  | 	out.HorizontalPodAutoscalerUpscaleForbiddenWindow = in.HorizontalPodAutoscalerUpscaleForbiddenWindow | ||||||
|  | 	out.HorizontalPodAutoscalerDownscaleForbiddenWindow = in.HorizontalPodAutoscalerDownscaleForbiddenWindow | ||||||
|  | 	out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod | ||||||
|  | 	out.PodEvictionTimeout = in.PodEvictionTimeout | ||||||
|  | 	out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod | ||||||
|  | 	out.NodeStartupGracePeriod = in.NodeStartupGracePeriod | ||||||
|  | 	out.NodeMonitorPeriod = in.NodeMonitorPeriod | ||||||
|  | 	out.ClusterSigningDuration = in.ClusterSigningDuration | ||||||
|  | 	out.LeaderElection = in.LeaderElection | ||||||
|  | 	out.VolumeConfiguration = in.VolumeConfiguration | ||||||
|  | 	out.ControllerStartInterval = in.ControllerStartInterval | ||||||
|  | 	if in.GCIgnoredResources != nil { | ||||||
|  | 		in, out := &in.GCIgnoredResources, &out.GCIgnoredResources | ||||||
|  | 		*out = make([]GroupResource, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	out.ReconcilerSyncLoopPeriod = in.ReconcilerSyncLoopPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerManagerConfiguration. | ||||||
|  | func (x *KubeControllerManagerConfiguration) DeepCopy() *KubeControllerManagerConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeControllerManagerConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeControllerManagerConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeProxyConfiguration) DeepCopyInto(out *KubeProxyConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeControllerManagerConfiguration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*KubeControllerManagerConfiguration) | 	out.ClientConnection = in.ClientConnection | ||||||
| 		*out = *in | 	in.IPTables.DeepCopyInto(&out.IPTables) | ||||||
| 		if in.Controllers != nil { | 	if in.OOMScoreAdj != nil { | ||||||
| 			in, out := &in.Controllers, &out.Controllers | 		in, out := &in.OOMScoreAdj, &out.OOMScoreAdj | ||||||
| 			*out = make([]string, len(*in)) | 		if *in == nil { | ||||||
| 			copy(*out, *in) | 			*out = nil | ||||||
| 		} | 		} else { | ||||||
| 		if in.GCIgnoredResources != nil { |  | ||||||
| 			in, out := &in.GCIgnoredResources, &out.GCIgnoredResources |  | ||||||
| 			*out = make([]GroupResource, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_componentconfig_KubeProxyConfiguration is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*KubeProxyConfiguration) |  | ||||||
| 		out := out.(*KubeProxyConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		if err := DeepCopy_componentconfig_KubeProxyIPTablesConfiguration(&in.IPTables, &out.IPTables, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if in.OOMScoreAdj != nil { |  | ||||||
| 			in, out := &in.OOMScoreAdj, &out.OOMScoreAdj |  | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	out.UDPIdleTimeout = in.UDPIdleTimeout | ||||||
|  | 	out.Conntrack = in.Conntrack | ||||||
|  | 	out.ConfigSyncPeriod = in.ConfigSyncPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration. | ||||||
|  | func (x *KubeProxyConfiguration) DeepCopy() *KubeProxyConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeProxyConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeProxyConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeProxyConntrackConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeProxyConntrackConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeProxyConntrackConfiguration) DeepCopyInto(out *KubeProxyConntrackConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeProxyConntrackConfiguration) | 	out.TCPEstablishedTimeout = in.TCPEstablishedTimeout | ||||||
| 		out := out.(*KubeProxyConntrackConfiguration) | 	out.TCPCloseWaitTimeout = in.TCPCloseWaitTimeout | ||||||
| 		*out = *in | 	return | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeProxyIPTablesConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration. | ||||||
| func DeepCopy_componentconfig_KubeProxyIPTablesConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeProxyConntrackConfiguration) DeepCopy() *KubeProxyConntrackConfiguration { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeProxyIPTablesConfiguration) | 		return nil | ||||||
| 		out := out.(*KubeProxyIPTablesConfiguration) | 	} | ||||||
| 		*out = *in | 	out := new(KubeProxyConntrackConfiguration) | ||||||
| 		if in.MasqueradeBit != nil { | 	x.DeepCopyInto(out) | ||||||
| 			in, out := &in.MasqueradeBit, &out.MasqueradeBit | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeProxyIPTablesConfiguration) DeepCopyInto(out *KubeProxyIPTablesConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.MasqueradeBit != nil { | ||||||
|  | 		in, out := &in.MasqueradeBit, &out.MasqueradeBit | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(int32) | 			*out = new(int32) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	out.SyncPeriod = in.SyncPeriod | ||||||
|  | 	out.MinSyncPeriod = in.MinSyncPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration. | ||||||
|  | func (x *KubeProxyIPTablesConfiguration) DeepCopy() *KubeProxyIPTablesConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeProxyIPTablesConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeSchedulerConfiguration) DeepCopyInto(out *KubeSchedulerConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.LeaderElection = in.LeaderElection | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerConfiguration. | ||||||
|  | func (x *KubeSchedulerConfiguration) DeepCopy() *KubeSchedulerConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeSchedulerConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeSchedulerConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeSchedulerConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletAnonymousAuthentication) DeepCopyInto(out *KubeletAnonymousAuthentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeSchedulerConfiguration) | 	return | ||||||
| 		out := out.(*KubeSchedulerConfiguration) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAnonymousAuthentication. | ||||||
|  | func (x *KubeletAnonymousAuthentication) DeepCopy() *KubeletAnonymousAuthentication { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletAnonymousAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeletAuthentication) DeepCopyInto(out *KubeletAuthentication) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.X509 = in.X509 | ||||||
|  | 	out.Webhook = in.Webhook | ||||||
|  | 	out.Anonymous = in.Anonymous | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthentication. | ||||||
|  | func (x *KubeletAuthentication) DeepCopy() *KubeletAuthentication { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeletAuthorization) DeepCopyInto(out *KubeletAuthorization) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.Webhook = in.Webhook | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthorization. | ||||||
|  | func (x *KubeletAuthorization) DeepCopy() *KubeletAuthorization { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletAuthorization) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.SyncFrequency = in.SyncFrequency | ||||||
|  | 	out.FileCheckFrequency = in.FileCheckFrequency | ||||||
|  | 	out.HTTPCheckFrequency = in.HTTPCheckFrequency | ||||||
|  | 	out.Authentication = in.Authentication | ||||||
|  | 	out.Authorization = in.Authorization | ||||||
|  | 	if in.HostNetworkSources != nil { | ||||||
|  | 		in, out := &in.HostNetworkSources, &out.HostNetworkSources | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.HostPIDSources != nil { | ||||||
|  | 		in, out := &in.HostPIDSources, &out.HostPIDSources | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.HostIPCSources != nil { | ||||||
|  | 		in, out := &in.HostIPCSources, &out.HostIPCSources | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	out.MinimumGCAge = in.MinimumGCAge | ||||||
|  | 	if in.ClusterDNS != nil { | ||||||
|  | 		in, out := &in.ClusterDNS, &out.ClusterDNS | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout | ||||||
|  | 	out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency | ||||||
|  | 	out.ImageMinimumGCAge = in.ImageMinimumGCAge | ||||||
|  | 	out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod | ||||||
|  | 	out.RuntimeRequestTimeout = in.RuntimeRequestTimeout | ||||||
|  | 	if in.RegisterWithTaints != nil { | ||||||
|  | 		in, out := &in.RegisterWithTaints, &out.RegisterWithTaints | ||||||
|  | 		*out = make([]api.Taint, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency | ||||||
|  | 	if in.NodeLabels != nil { | ||||||
|  | 		in, out := &in.NodeLabels, &out.NodeLabels | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod | ||||||
|  | 	if in.ExperimentalQOSReserved != nil { | ||||||
|  | 		in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved | ||||||
|  | 		*out = make(ConfigurationMap, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.AllowedUnsafeSysctls != nil { | ||||||
|  | 		in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.SystemReserved != nil { | ||||||
|  | 		in, out := &in.SystemReserved, &out.SystemReserved | ||||||
|  | 		*out = make(ConfigurationMap, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.KubeReserved != nil { | ||||||
|  | 		in, out := &in.KubeReserved, &out.KubeReserved | ||||||
|  | 		*out = make(ConfigurationMap, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.EnforceNodeAllocatable != nil { | ||||||
|  | 		in, out := &in.EnforceNodeAllocatable, &out.EnforceNodeAllocatable | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfiguration. | ||||||
|  | func (x *KubeletConfiguration) DeepCopy() *KubeletConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(KubeletConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *KubeletConfiguration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletAnonymousAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletAnonymousAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletWebhookAuthentication) DeepCopyInto(out *KubeletWebhookAuthentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletAnonymousAuthentication) | 	out.CacheTTL = in.CacheTTL | ||||||
| 		out := out.(*KubeletAnonymousAuthentication) | 	return | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthentication. | ||||||
| func DeepCopy_componentconfig_KubeletAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *KubeletWebhookAuthentication) DeepCopy() *KubeletWebhookAuthentication { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*KubeletAuthentication) |  | ||||||
| 		out := out.(*KubeletAuthentication) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletWebhookAuthentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletAuthorization is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletWebhookAuthorization) DeepCopyInto(out *KubeletWebhookAuthorization) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletAuthorization) | 	out.CacheAuthorizedTTL = in.CacheAuthorizedTTL | ||||||
| 		out := out.(*KubeletAuthorization) | 	out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL | ||||||
| 		*out = *in | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthorization. | ||||||
|  | func (x *KubeletWebhookAuthorization) DeepCopy() *KubeletWebhookAuthorization { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletWebhookAuthorization) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *KubeletX509Authentication) DeepCopyInto(out *KubeletX509Authentication) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletConfiguration) | 	return | ||||||
| 		out := out.(*KubeletConfiguration) | } | ||||||
| 		*out = *in | 
 | ||||||
| 		if in.HostNetworkSources != nil { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletX509Authentication. | ||||||
| 			in, out := &in.HostNetworkSources, &out.HostNetworkSources | func (x *KubeletX509Authentication) DeepCopy() *KubeletX509Authentication { | ||||||
| 			*out = make([]string, len(*in)) | 	if x == nil { | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.HostPIDSources != nil { |  | ||||||
| 			in, out := &in.HostPIDSources, &out.HostPIDSources |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.HostIPCSources != nil { |  | ||||||
| 			in, out := &in.HostIPCSources, &out.HostIPCSources |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.ClusterDNS != nil { |  | ||||||
| 			in, out := &in.ClusterDNS, &out.ClusterDNS |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.RegisterWithTaints != nil { |  | ||||||
| 			in, out := &in.RegisterWithTaints, &out.RegisterWithTaints |  | ||||||
| 			*out = make([]api.Taint, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := api.DeepCopy_api_Taint(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.NodeLabels != nil { |  | ||||||
| 			in, out := &in.NodeLabels, &out.NodeLabels |  | ||||||
| 			*out = make(map[string]string) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.ExperimentalQOSReserved != nil { |  | ||||||
| 			in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved |  | ||||||
| 			*out = make(ConfigurationMap) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.AllowedUnsafeSysctls != nil { |  | ||||||
| 			in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.SystemReserved != nil { |  | ||||||
| 			in, out := &in.SystemReserved, &out.SystemReserved |  | ||||||
| 			*out = make(ConfigurationMap) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.KubeReserved != nil { |  | ||||||
| 			in, out := &in.KubeReserved, &out.KubeReserved |  | ||||||
| 			*out = make(ConfigurationMap) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.EnforceNodeAllocatable != nil { |  | ||||||
| 			in, out := &in.EnforceNodeAllocatable, &out.EnforceNodeAllocatable |  | ||||||
| 			*out = make([]string, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(KubeletX509Authentication) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletWebhookAuthentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletWebhookAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletWebhookAuthentication) | 	out.LeaseDuration = in.LeaseDuration | ||||||
| 		out := out.(*KubeletWebhookAuthentication) | 	out.RenewDeadline = in.RenewDeadline | ||||||
| 		*out = *in | 	out.RetryPeriod = in.RetryPeriod | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration. | ||||||
|  | func (x *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(LeaderElectionConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletWebhookAuthorization is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletWebhookAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PersistentVolumeRecyclerConfiguration) DeepCopyInto(out *PersistentVolumeRecyclerConfiguration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletWebhookAuthorization) | 	return | ||||||
| 		out := out.(*KubeletWebhookAuthorization) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeRecyclerConfiguration. | ||||||
|  | func (x *PersistentVolumeRecyclerConfiguration) DeepCopy() *PersistentVolumeRecyclerConfiguration { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PersistentVolumeRecyclerConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_KubeletX509Authentication is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_componentconfig_KubeletX509Authentication(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PortRangeVar) DeepCopyInto(out *PortRangeVar) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*KubeletX509Authentication) | 	if in.Val != nil { | ||||||
| 		out := out.(*KubeletX509Authentication) | 		in, out := &in.Val, &out.Val | ||||||
| 		*out = *in | 		if *in == nil { | ||||||
| 		return nil | 			*out = nil | ||||||
| 	} | 		} else { | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_componentconfig_LeaderElectionConfiguration is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_componentconfig_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*LeaderElectionConfiguration) |  | ||||||
| 		out := out.(*LeaderElectionConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*PersistentVolumeRecyclerConfiguration) |  | ||||||
| 		out := out.(*PersistentVolumeRecyclerConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_componentconfig_PortRangeVar is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_componentconfig_PortRangeVar(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*PortRangeVar) |  | ||||||
| 		out := out.(*PortRangeVar) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Val != nil { |  | ||||||
| 			in, out := &in.Val, &out.Val |  | ||||||
| 			*out = new(string) | 			*out = new(string) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_componentconfig_VolumeConfiguration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PortRangeVar. | ||||||
| func DeepCopy_componentconfig_VolumeConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *PortRangeVar) DeepCopy() *PortRangeVar { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*VolumeConfiguration) |  | ||||||
| 		out := out.(*VolumeConfiguration) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PortRangeVar) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *VolumeConfiguration) DeepCopyInto(out *VolumeConfiguration) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new VolumeConfiguration. | ||||||
|  | func (x *VolumeConfiguration) DeepCopy() *VolumeConfiguration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(VolumeConfiguration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -62,6 +62,7 @@ type ScaleStatus struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // represents a scaling request for a resource. | // represents a scaling request for a resource. | ||||||
| type Scale struct { | type Scale struct { | ||||||
| @@ -79,6 +80,8 @@ type Scale struct { | |||||||
| 	Status ScaleStatus | 	Status ScaleStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Dummy definition | // Dummy definition | ||||||
| type ReplicationControllerDummy struct { | type ReplicationControllerDummy struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -109,6 +112,7 @@ type CustomMetricCurrentStatusList struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource | // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource | ||||||
| // types to the API.  It consists of one or more Versions of the api. | // types to the API.  It consists of one or more Versions of the api. | ||||||
| @@ -127,6 +131,8 @@ type ThirdPartyResource struct { | |||||||
| 	Versions []APIVersion | 	Versions []APIVersion | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type ThirdPartyResourceList struct { | type ThirdPartyResourceList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|  |  | ||||||
| @@ -145,6 +151,8 @@ type APIVersion struct { | |||||||
| 	Name string | 	Name string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // An internal object, used for versioned storage in etcd.  Not exposed to the end user. | // An internal object, used for versioned storage in etcd.  Not exposed to the end user. | ||||||
| type ThirdPartyResourceData struct { | type ThirdPartyResourceData struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -158,6 +166,7 @@ type ThirdPartyResourceData struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type Deployment struct { | type Deployment struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -221,6 +230,8 @@ type DeploymentSpec struct { | |||||||
| 	ProgressDeadlineSeconds *int32 | 	ProgressDeadlineSeconds *int32 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // DeploymentRollback stores the information required to rollback a deployment. | // DeploymentRollback stores the information required to rollback a deployment. | ||||||
| type DeploymentRollback struct { | type DeploymentRollback struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -367,6 +378,8 @@ type DeploymentCondition struct { | |||||||
| 	Message string | 	Message string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type DeploymentList struct { | type DeploymentList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -507,6 +520,7 @@ type DaemonSetStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // DaemonSet represents the configuration of a daemon set. | // DaemonSet represents the configuration of a daemon set. | ||||||
| type DaemonSet struct { | type DaemonSet struct { | ||||||
| @@ -538,6 +552,8 @@ const ( | |||||||
| 	DaemonSetTemplateGenerationKey string = "pod-template-generation" | 	DaemonSetTemplateGenerationKey string = "pod-template-generation" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // DaemonSetList is a collection of daemon sets. | // DaemonSetList is a collection of daemon sets. | ||||||
| type DaemonSetList struct { | type DaemonSetList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -550,6 +566,8 @@ type DaemonSetList struct { | |||||||
| 	Items []DaemonSet | 	Items []DaemonSet | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type ThirdPartyResourceDataList struct { | type ThirdPartyResourceDataList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| 	// Standard list metadata | 	// Standard list metadata | ||||||
| @@ -561,6 +579,7 @@ type ThirdPartyResourceDataList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Ingress is a collection of rules that allow inbound connections to reach the | // Ingress is a collection of rules that allow inbound connections to reach the | ||||||
| // endpoints defined by a backend. An Ingress can be configured to give services | // endpoints defined by a backend. An Ingress can be configured to give services | ||||||
| @@ -584,6 +603,8 @@ type Ingress struct { | |||||||
| 	Status IngressStatus | 	Status IngressStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // IngressList is a collection of Ingress. | // IngressList is a collection of Ingress. | ||||||
| type IngressList struct { | type IngressList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -727,6 +748,7 @@ type IngressBackend struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ReplicaSet represents the configuration of a replica set. | // ReplicaSet represents the configuration of a replica set. | ||||||
| type ReplicaSet struct { | type ReplicaSet struct { | ||||||
| @@ -744,6 +766,8 @@ type ReplicaSet struct { | |||||||
| 	Status ReplicaSetStatus | 	Status ReplicaSetStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ReplicaSetList is a collection of ReplicaSets. | // ReplicaSetList is a collection of ReplicaSets. | ||||||
| type ReplicaSetList struct { | type ReplicaSetList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -834,6 +858,7 @@ type ReplicaSetCondition struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodSecurityPolicy governs the ability to make requests that affect the SecurityContext | // PodSecurityPolicy governs the ability to make requests that affect the SecurityContext | ||||||
| // that will be applied to a pod and container. | // that will be applied to a pod and container. | ||||||
| @@ -1045,6 +1070,8 @@ const ( | |||||||
| 	SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" | 	SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodSecurityPolicyList is a list of PodSecurityPolicy objects. | // PodSecurityPolicyList is a list of PodSecurityPolicy objects. | ||||||
| type PodSecurityPolicyList struct { | type PodSecurityPolicyList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -1055,6 +1082,7 @@ type PodSecurityPolicyList struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NetworkPolicy describes what network traffic is allowed for a set of Pods | // NetworkPolicy describes what network traffic is allowed for a set of Pods | ||||||
| type NetworkPolicy struct { | type NetworkPolicy struct { | ||||||
| @@ -1137,6 +1165,8 @@ type NetworkPolicyPeer struct { | |||||||
| 	NamespaceSelector *metav1.LabelSelector | 	NamespaceSelector *metav1.LabelSelector | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NetworkPolicyList is a list of NetworkPolicy objects. | // NetworkPolicyList is a list of NetworkPolicy objects. | ||||||
| type NetworkPolicyList struct { | type NetworkPolicyList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -23,6 +23,7 @@ import ( | |||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ImageReview checks if the set of images in a pod are allowed. | // ImageReview checks if the set of images in a pod are allowed. | ||||||
| type ImageReview struct { | type ImageReview struct { | ||||||
|   | |||||||
| @@ -21,83 +21,124 @@ limitations under the License. | |||||||
| package imagepolicy | package imagepolicy | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReview, InType: reflect.TypeOf(&ImageReview{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewContainerSpec, InType: reflect.TypeOf(&ImageReviewContainerSpec{})}, | 			in.(*ImageReview).DeepCopyInto(out.(*ImageReview)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewSpec, InType: reflect.TypeOf(&ImageReviewSpec{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewStatus, InType: reflect.TypeOf(&ImageReviewStatus{})}, | 		}, InType: reflect.TypeOf(&ImageReview{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ImageReviewContainerSpec).DeepCopyInto(out.(*ImageReviewContainerSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ImageReviewContainerSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ImageReviewSpec).DeepCopyInto(out.(*ImageReviewSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ImageReviewSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ImageReviewStatus).DeepCopyInto(out.(*ImageReviewStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ImageReviewStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_imagepolicy_ImageReview is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ImageReview) DeepCopyInto(out *ImageReview) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ImageReview) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ImageReview) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	out.Status = in.Status | ||||||
| 			return err | 	return | ||||||
| 		} else { | } | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 
 | ||||||
| 		} | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReview. | ||||||
| 		if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { | func (x *ImageReview) DeepCopy() *ImageReview { | ||||||
| 			return err | 	if x == nil { | ||||||
| 		} | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ImageReview) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ImageReview) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_imagepolicy_ImageReviewContainerSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ImageReviewContainerSpec) DeepCopyInto(out *ImageReviewContainerSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ImageReviewContainerSpec) | 	return | ||||||
| 		out := out.(*ImageReviewContainerSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_imagepolicy_ImageReviewSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewContainerSpec. | ||||||
| func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *ImageReviewContainerSpec) DeepCopy() *ImageReviewContainerSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*ImageReviewSpec) |  | ||||||
| 		out := out.(*ImageReviewSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Containers != nil { |  | ||||||
| 			in, out := &in.Containers, &out.Containers |  | ||||||
| 			*out = make([]ImageReviewContainerSpec, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} |  | ||||||
| 		if in.Annotations != nil { |  | ||||||
| 			in, out := &in.Annotations, &out.Annotations |  | ||||||
| 			*out = make(map[string]string) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ImageReviewContainerSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_imagepolicy_ImageReviewStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ImageReviewSpec) DeepCopyInto(out *ImageReviewSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ImageReviewStatus) | 	if in.Containers != nil { | ||||||
| 		out := out.(*ImageReviewStatus) | 		in, out := &in.Containers, &out.Containers | ||||||
| 		*out = *in | 		*out = make([]ImageReviewContainerSpec, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.Annotations != nil { | ||||||
|  | 		in, out := &in.Annotations, &out.Annotations | ||||||
|  | 		*out = make(map[string]string, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewSpec. | ||||||
|  | func (x *ImageReviewSpec) DeepCopy() *ImageReviewSpec { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(ImageReviewSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ImageReviewStatus) DeepCopyInto(out *ImageReviewStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewStatus. | ||||||
|  | func (x *ImageReviewStatus) DeepCopy() *ImageReviewStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ImageReviewStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -37,11 +37,11 @@ type Time struct { | |||||||
| 	time.Time `protobuf:"-"` | 	time.Time `protobuf:"-"` | ||||||
| } | } | ||||||
|  |  | ||||||
| // DeepCopy returns a deep-copy of the Time value.  The underlying time.Time | // DeepCopyInto creates a deep-copy of the Time value.  The underlying time.Time | ||||||
| // type is effectively immutable in the time API, so it is safe to | // type is effectively immutable in the time API, so it is safe to | ||||||
| // copy-by-assign, despite the presence of (unexported) Pointer fields. | // copy-by-assign, despite the presence of (unexported) Pointer fields. | ||||||
| func (t Time) DeepCopy() Time { | func (t *Time) DeepCopyInto(out *Time) { | ||||||
| 	return t | 	*out = *t | ||||||
| } | } | ||||||
|  |  | ||||||
| // String returns the representation of the time. | // String returns the representation of the time. | ||||||
|   | |||||||
| @@ -23,6 +23,7 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NetworkPolicy describes what network traffic is allowed for a set of Pods | // NetworkPolicy describes what network traffic is allowed for a set of Pods | ||||||
| type NetworkPolicy struct { | type NetworkPolicy struct { | ||||||
| @@ -105,6 +106,8 @@ type NetworkPolicyPeer struct { | |||||||
| 	NamespaceSelector *metav1.LabelSelector | 	NamespaceSelector *metav1.LabelSelector | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // NetworkPolicyList is a list of NetworkPolicy objects. | // NetworkPolicyList is a list of NetworkPolicy objects. | ||||||
| type NetworkPolicyList struct { | type NetworkPolicyList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -29,154 +29,222 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, | 			in.(*NetworkPolicy).DeepCopyInto(out.(*NetworkPolicy)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyPeer, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, | 		}, InType: reflect.TypeOf(&NetworkPolicy{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyPort, InType: reflect.TypeOf(&NetworkPolicyPort{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicySpec, InType: reflect.TypeOf(&NetworkPolicySpec{})}, | 			in.(*NetworkPolicyIngressRule).DeepCopyInto(out.(*NetworkPolicyIngressRule)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NetworkPolicyList).DeepCopyInto(out.(*NetworkPolicyList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NetworkPolicyList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NetworkPolicyPeer).DeepCopyInto(out.(*NetworkPolicyPeer)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NetworkPolicyPort).DeepCopyInto(out.(*NetworkPolicyPort)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NetworkPolicyPort{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*NetworkPolicySpec).DeepCopyInto(out.(*NetworkPolicySpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&NetworkPolicySpec{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_networking_NetworkPolicy is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_networking_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*NetworkPolicy) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*NetworkPolicy) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	return | ||||||
| 			return err | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy. | ||||||
|  | func (x *NetworkPolicy) DeepCopy() *NetworkPolicy { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NetworkPolicy) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *NetworkPolicy) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.Ports != nil { | ||||||
|  | 		in, out := &in.Ports, &out.Ports | ||||||
|  | 		*out = make([]NetworkPolicyPort, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.From != nil { | ||||||
|  | 		in, out := &in.From, &out.From | ||||||
|  | 		*out = make([]NetworkPolicyPeer, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule. | ||||||
|  | func (x *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NetworkPolicyIngressRule) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]NetworkPolicy, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList. | ||||||
|  | func (x *NetworkPolicyList) DeepCopy() *NetworkPolicyList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NetworkPolicyList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *NetworkPolicyList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.PodSelector != nil { | ||||||
|  | 		in, out := &in.PodSelector, &out.PodSelector | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		if err := DeepCopy_networking_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	if in.NamespaceSelector != nil { | ||||||
|  | 		in, out := &in.NamespaceSelector, &out.NamespaceSelector | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_networking_NetworkPolicyIngressRule is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer. | ||||||
| func DeepCopy_networking_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*NetworkPolicyIngressRule) |  | ||||||
| 		out := out.(*NetworkPolicyIngressRule) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Ports != nil { |  | ||||||
| 			in, out := &in.Ports, &out.Ports |  | ||||||
| 			*out = make([]NetworkPolicyPort, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_networking_NetworkPolicyPort(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.From != nil { |  | ||||||
| 			in, out := &in.From, &out.From |  | ||||||
| 			*out = make([]NetworkPolicyPeer, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_networking_NetworkPolicyPeer(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(NetworkPolicyPeer) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_networking_NetworkPolicyList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_networking_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*NetworkPolicyList) | 	if in.Protocol != nil { | ||||||
| 		out := out.(*NetworkPolicyList) | 		in, out := &in.Protocol, &out.Protocol | ||||||
| 		*out = *in | 		if *in == nil { | ||||||
| 		if in.Items != nil { | 			*out = nil | ||||||
| 			in, out := &in.Items, &out.Items | 		} else { | ||||||
| 			*out = make([]NetworkPolicy, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_networking_NetworkPolicy(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_networking_NetworkPolicyPeer is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_networking_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*NetworkPolicyPeer) |  | ||||||
| 		out := out.(*NetworkPolicyPeer) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.PodSelector != nil { |  | ||||||
| 			in, out := &in.PodSelector, &out.PodSelector |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*v1.LabelSelector) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.NamespaceSelector != nil { |  | ||||||
| 			in, out := &in.NamespaceSelector, &out.NamespaceSelector |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*v1.LabelSelector) |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_networking_NetworkPolicyPort is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_networking_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*NetworkPolicyPort) |  | ||||||
| 		out := out.(*NetworkPolicyPort) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Protocol != nil { |  | ||||||
| 			in, out := &in.Protocol, &out.Protocol |  | ||||||
| 			*out = new(api.Protocol) | 			*out = new(api.Protocol) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Port != nil { | 	} | ||||||
| 			in, out := &in.Port, &out.Port | 	if in.Port != nil { | ||||||
|  | 		in, out := &in.Port, &out.Port | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(intstr.IntOrString) | 			*out = new(intstr.IntOrString) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_networking_NetworkPolicySpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort. | ||||||
| func DeepCopy_networking_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*NetworkPolicySpec) |  | ||||||
| 		out := out.(*NetworkPolicySpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if newVal, err := c.DeepCopy(&in.PodSelector); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} else { |  | ||||||
| 			out.PodSelector = *newVal.(*v1.LabelSelector) |  | ||||||
| 		} |  | ||||||
| 		if in.Ingress != nil { |  | ||||||
| 			in, out := &in.Ingress, &out.Ingress |  | ||||||
| 			*out = make([]NetworkPolicyIngressRule, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_networking_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(NetworkPolicyPort) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	in.PodSelector.DeepCopyInto(&out.PodSelector) | ||||||
|  | 	if in.Ingress != nil { | ||||||
|  | 		in, out := &in.Ingress, &out.Ingress | ||||||
|  | 		*out = make([]NetworkPolicyIngressRule, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec. | ||||||
|  | func (x *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(NetworkPolicySpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -78,6 +78,7 @@ type PodDisruptionBudgetStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods | // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods | ||||||
| type PodDisruptionBudget struct { | type PodDisruptionBudget struct { | ||||||
| @@ -93,6 +94,8 @@ type PodDisruptionBudget struct { | |||||||
| 	Status PodDisruptionBudgetStatus | 	Status PodDisruptionBudgetStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. | // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. | ||||||
| type PodDisruptionBudgetList struct { | type PodDisruptionBudgetList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -103,6 +106,7 @@ type PodDisruptionBudgetList struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +noMethods=true | // +noMethods=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Eviction evicts a pod from its node subject to certain policies and safety constraints. | // Eviction evicts a pod from its node subject to certain policies and safety constraints. | ||||||
| // This is a subresource of Pod.  A request to cause such an eviction is | // This is a subresource of Pod.  A request to cause such an eviction is | ||||||
|   | |||||||
| @@ -13,11 +13,13 @@ go_library( | |||||||
|         "doc.go", |         "doc.go", | ||||||
|         "register.go", |         "register.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|         "zz_generated.defaults.go", |         "zz_generated.defaults.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", | ||||||
|   | |||||||
| @@ -15,6 +15,7 @@ limitations under the License. | |||||||
| */ | */ | ||||||
|  |  | ||||||
| // +k8s:defaulter-gen=TypeMeta | // +k8s:defaulter-gen=TypeMeta | ||||||
|  | // +k8s:deepcopy-gen=package,register | ||||||
|  |  | ||||||
| // Package policy is for any kind of policy object.  Suitable examples, even if | // Package policy is for any kind of policy object.  Suitable examples, even if | ||||||
| // they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, | // they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, | ||||||
|   | |||||||
| @@ -53,6 +53,7 @@ type PodDisruptionBudgetStatus struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods | // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods | ||||||
| type PodDisruptionBudget struct { | type PodDisruptionBudget struct { | ||||||
| @@ -68,6 +69,8 @@ type PodDisruptionBudget struct { | |||||||
| 	Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` | 	Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. | // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. | ||||||
| type PodDisruptionBudgetList struct { | type PodDisruptionBudgetList struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| @@ -76,6 +79,8 @@ type PodDisruptionBudgetList struct { | |||||||
| 	Items           []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` | 	Items           []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Eviction evicts a pod from its node subject to certain policies and safety constraints. | // Eviction evicts a pod from its node subject to certain policies and safety constraints. | ||||||
| // This is a subresource of Pod.  A request to cause such an eviction is | // This is a subresource of Pod.  A request to cause such an eviction is | ||||||
| // created by POSTing to .../pods/<pod name>/eviction. | // created by POSTing to .../pods/<pod name>/eviction. | ||||||
|   | |||||||
							
								
								
									
										201
									
								
								pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										201
									
								
								pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,201 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package v1alpha1 | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
|  | func init() { | ||||||
|  | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
|  | // to allow building arbitrary schemes. | ||||||
|  | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
|  | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Eviction).DeepCopyInto(out.(*Eviction)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Eviction{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudget).DeepCopyInto(out.(*PodDisruptionBudget)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudget{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetList).DeepCopyInto(out.(*PodDisruptionBudgetList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetSpec).DeepCopyInto(out.(*PodDisruptionBudgetSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetStatus).DeepCopyInto(out.(*PodDisruptionBudgetStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, | ||||||
|  | 	) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Eviction) DeepCopyInto(out *Eviction) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	if in.DeleteOptions != nil { | ||||||
|  | 		in, out := &in.DeleteOptions, &out.DeleteOptions | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.DeleteOptions) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Eviction. | ||||||
|  | func (x *Eviction) DeepCopy() *Eviction { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Eviction) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Eviction) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
|  | 	out.Status = in.Status | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget. | ||||||
|  | func (x *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudget) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodDisruptionBudget) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]PodDisruptionBudget, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList. | ||||||
|  | func (x *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodDisruptionBudgetList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.MinAvailable = in.MinAvailable | ||||||
|  | 	if in.Selector != nil { | ||||||
|  | 		in, out := &in.Selector, &out.Selector | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
|  | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec. | ||||||
|  | func (x *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus. | ||||||
|  | func (x *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
| @@ -28,126 +28,199 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_Eviction, InType: reflect.TypeOf(&Eviction{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, | 			in.(*Eviction).DeepCopyInto(out.(*Eviction)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, | 		}, InType: reflect.TypeOf(&Eviction{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudget).DeepCopyInto(out.(*PodDisruptionBudget)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudget{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetList).DeepCopyInto(out.(*PodDisruptionBudgetList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetSpec).DeepCopyInto(out.(*PodDisruptionBudgetSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodDisruptionBudgetStatus).DeepCopyInto(out.(*PodDisruptionBudgetStatus)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_policy_Eviction is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Eviction) DeepCopyInto(out *Eviction) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Eviction) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Eviction) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.DeleteOptions != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.DeleteOptions, &out.DeleteOptions | ||||||
| 			return err | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			*out = new(v1.DeleteOptions) | ||||||
| 		} | 			(*in).DeepCopyInto(*out) | ||||||
| 		if in.DeleteOptions != nil { |  | ||||||
| 			in, out := &in.DeleteOptions, &out.DeleteOptions |  | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { |  | ||||||
| 				return err |  | ||||||
| 			} else { |  | ||||||
| 				*out = newVal.(*v1.DeleteOptions) |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Eviction. | ||||||
|  | func (x *Eviction) DeepCopy() *Eviction { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Eviction) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Eviction) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_policy_PodDisruptionBudget is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodDisruptionBudget) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*PodDisruptionBudget) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	in.Status.DeepCopyInto(&out.Status) | ||||||
| 			return err | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget. | ||||||
|  | func (x *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudget) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodDisruptionBudget) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]PodDisruptionBudget, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList. | ||||||
|  | func (x *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodDisruptionBudgetList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.MinAvailable != nil { | ||||||
|  | 		in, out := &in.MinAvailable, &out.MinAvailable | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
| 		} else { | 		} else { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		if err := DeepCopy_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, c); err != nil { |  | ||||||
| 			return err |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_policy_PodDisruptionBudgetList is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*PodDisruptionBudgetList) |  | ||||||
| 		out := out.(*PodDisruptionBudgetList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]PodDisruptionBudget, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // DeepCopy_policy_PodDisruptionBudgetSpec is an autogenerated deepcopy function. |  | ||||||
| func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { |  | ||||||
| 	{ |  | ||||||
| 		in := in.(*PodDisruptionBudgetSpec) |  | ||||||
| 		out := out.(*PodDisruptionBudgetSpec) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.MinAvailable != nil { |  | ||||||
| 			in, out := &in.MinAvailable, &out.MinAvailable |  | ||||||
| 			*out = new(intstr.IntOrString) | 			*out = new(intstr.IntOrString) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		if in.Selector != nil { | 	} | ||||||
| 			in, out := &in.Selector, &out.Selector | 	if in.Selector != nil { | ||||||
| 			if newVal, err := c.DeepCopy(*in); err != nil { | 		in, out := &in.Selector, &out.Selector | ||||||
| 				return err | 		if *in == nil { | ||||||
| 			} else { | 			*out = nil | ||||||
| 				*out = newVal.(*v1.LabelSelector) | 		} else { | ||||||
| 			} | 			*out = new(v1.LabelSelector) | ||||||
|  | 			(*in).DeepCopyInto(*out) | ||||||
| 		} | 		} | ||||||
| 		if in.MaxUnavailable != nil { | 	} | ||||||
| 			in, out := &in.MaxUnavailable, &out.MaxUnavailable | 	if in.MaxUnavailable != nil { | ||||||
|  | 		in, out := &in.MaxUnavailable, &out.MaxUnavailable | ||||||
|  | 		if *in == nil { | ||||||
|  | 			*out = nil | ||||||
|  | 		} else { | ||||||
| 			*out = new(intstr.IntOrString) | 			*out = new(intstr.IntOrString) | ||||||
| 			**out = **in | 			**out = **in | ||||||
| 		} | 		} | ||||||
| 		return nil |  | ||||||
| 	} | 	} | ||||||
|  | 	return | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_policy_PodDisruptionBudgetStatus is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec. | ||||||
| func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*PodDisruptionBudgetStatus) |  | ||||||
| 		out := out.(*PodDisruptionBudgetStatus) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.DisruptedPods != nil { |  | ||||||
| 			in, out := &in.DisruptedPods, &out.DisruptedPods |  | ||||||
| 			*out = make(map[string]v1.Time) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val.DeepCopy() |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) { | ||||||
|  | 	*out = *in | ||||||
|  | 	if in.DisruptedPods != nil { | ||||||
|  | 		in, out := &in.DisruptedPods, &out.DisruptedPods | ||||||
|  | 		*out = make(map[string]v1.Time, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = *val.DeepCopy() | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus. | ||||||
|  | func (x *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodDisruptionBudgetStatus) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -88,6 +88,7 @@ type RoleRef struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. | // Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. | ||||||
| type Role struct { | type Role struct { | ||||||
| @@ -100,6 +101,7 @@ type Role struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // RoleBinding references a role, but does not contain it.  It can reference a Role in the same namespace or a ClusterRole in the global namespace. | // RoleBinding references a role, but does not contain it.  It can reference a Role in the same namespace or a ClusterRole in the global namespace. | ||||||
| // It adds who information via Subjects and namespace information by which namespace it exists in.  RoleBindings in a given | // It adds who information via Subjects and namespace information by which namespace it exists in.  RoleBindings in a given | ||||||
| @@ -116,6 +118,8 @@ type RoleBinding struct { | |||||||
| 	RoleRef RoleRef | 	RoleRef RoleRef | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // RoleBindingList is a collection of RoleBindings | // RoleBindingList is a collection of RoleBindings | ||||||
| type RoleBindingList struct { | type RoleBindingList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -126,6 +130,8 @@ type RoleBindingList struct { | |||||||
| 	Items []RoleBinding | 	Items []RoleBinding | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // RoleList is a collection of Roles | // RoleList is a collection of Roles | ||||||
| type RoleList struct { | type RoleList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -138,6 +144,7 @@ type RoleList struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. | // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. | ||||||
| type ClusterRole struct { | type ClusterRole struct { | ||||||
| @@ -151,6 +158,7 @@ type ClusterRole struct { | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace, | // ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace, | ||||||
| // and adds who information via Subject. | // and adds who information via Subject. | ||||||
| @@ -167,6 +175,8 @@ type ClusterRoleBinding struct { | |||||||
| 	RoleRef RoleRef | 	RoleRef RoleRef | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ClusterRoleBindingList is a collection of ClusterRoleBindings | // ClusterRoleBindingList is a collection of ClusterRoleBindings | ||||||
| type ClusterRoleBindingList struct { | type ClusterRoleBindingList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
| @@ -177,6 +187,8 @@ type ClusterRoleBindingList struct { | |||||||
| 	Items []ClusterRoleBinding | 	Items []ClusterRoleBinding | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // ClusterRoleList is a collection of ClusterRoles | // ClusterRoleList is a collection of ClusterRoles | ||||||
| type ClusterRoleList struct { | type ClusterRoleList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -21,249 +21,406 @@ limitations under the License. | |||||||
| package rbac | package rbac | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRole, InType: reflect.TypeOf(&ClusterRole{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBinding, InType: reflect.TypeOf(&ClusterRoleBinding{})}, | 			in.(*ClusterRole).DeepCopyInto(out.(*ClusterRole)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBindingList, InType: reflect.TypeOf(&ClusterRoleBindingList{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleList, InType: reflect.TypeOf(&ClusterRoleList{})}, | 		}, InType: reflect.TypeOf(&ClusterRole{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Role, InType: reflect.TypeOf(&Role{})}, | 			in.(*ClusterRoleBinding).DeepCopyInto(out.(*ClusterRoleBinding)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBinding, InType: reflect.TypeOf(&RoleBinding{})}, | 			return nil | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBindingList, InType: reflect.TypeOf(&RoleBindingList{})}, | 		}, InType: reflect.TypeOf(&ClusterRoleBinding{})}, | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleList, InType: reflect.TypeOf(&RoleList{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleRef, InType: reflect.TypeOf(&RoleRef{})}, | 			in.(*ClusterRoleBindingList).DeepCopyInto(out.(*ClusterRoleBindingList)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Subject, InType: reflect.TypeOf(&Subject{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterRoleBindingList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ClusterRoleList).DeepCopyInto(out.(*ClusterRoleList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ClusterRoleList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PolicyRule{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Role).DeepCopyInto(out.(*Role)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Role{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RoleBinding).DeepCopyInto(out.(*RoleBinding)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RoleBinding{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RoleBindingList).DeepCopyInto(out.(*RoleBindingList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RoleBindingList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RoleList).DeepCopyInto(out.(*RoleList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RoleList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*RoleRef).DeepCopyInto(out.(*RoleRef)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&RoleRef{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Subject).DeepCopyInto(out.(*Subject)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Subject{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_ClusterRole is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterRole) DeepCopyInto(out *ClusterRole) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClusterRole) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ClusterRole) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.Rules != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Rules, &out.Rules | ||||||
| 			return err | 		*out = make([]PolicyRule, len(*in)) | ||||||
| 		} else { | 		for i := range *in { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} |  | ||||||
| 		if in.Rules != nil { |  | ||||||
| 			in, out := &in.Rules, &out.Rules |  | ||||||
| 			*out = make([]PolicyRule, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole. | ||||||
|  | func (x *ClusterRole) DeepCopy() *ClusterRole { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterRole) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterRole) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_ClusterRoleBinding is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClusterRoleBinding) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ClusterRoleBinding) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.Subjects != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Subjects, &out.Subjects | ||||||
| 			return err | 		*out = make([]Subject, len(*in)) | ||||||
| 		} else { | 		copy(*out, *in) | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 	} | ||||||
| 		} | 	out.RoleRef = in.RoleRef | ||||||
| 		if in.Subjects != nil { | 	return | ||||||
| 			in, out := &in.Subjects, &out.Subjects | } | ||||||
| 			*out = make([]Subject, len(*in)) | 
 | ||||||
| 			copy(*out, *in) | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding. | ||||||
| 		} | func (x *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterRoleBinding) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterRoleBinding) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_ClusterRoleBindingList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClusterRoleBindingList) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ClusterRoleBindingList) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if in.Items != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			in, out := &in.Items, &out.Items | 		*out = make([]ClusterRoleBinding, len(*in)) | ||||||
| 			*out = make([]ClusterRoleBinding, len(*in)) | 		for i := range *in { | ||||||
| 			for i := range *in { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				if err := DeepCopy_rbac_ClusterRoleBinding(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList. | ||||||
|  | func (x *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterRoleBindingList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterRoleBindingList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_ClusterRoleList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*ClusterRoleList) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*ClusterRoleList) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if in.Items != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			in, out := &in.Items, &out.Items | 		*out = make([]ClusterRole, len(*in)) | ||||||
| 			*out = make([]ClusterRole, len(*in)) | 		for i := range *in { | ||||||
| 			for i := range *in { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				if err := DeepCopy_rbac_ClusterRole(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList. | ||||||
|  | func (x *ClusterRoleList) DeepCopy() *ClusterRoleList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ClusterRoleList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ClusterRoleList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_PolicyRule is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PolicyRule) | 	if in.Verbs != nil { | ||||||
| 		out := out.(*PolicyRule) | 		in, out := &in.Verbs, &out.Verbs | ||||||
| 		*out = *in | 		*out = make([]string, len(*in)) | ||||||
| 		if in.Verbs != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.Verbs, &out.Verbs | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	if in.APIGroups != nil { | ||||||
| 			copy(*out, *in) | 		in, out := &in.APIGroups, &out.APIGroups | ||||||
| 		} | 		*out = make([]string, len(*in)) | ||||||
| 		if in.APIGroups != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.APIGroups, &out.APIGroups | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	if in.Resources != nil { | ||||||
| 			copy(*out, *in) | 		in, out := &in.Resources, &out.Resources | ||||||
| 		} | 		*out = make([]string, len(*in)) | ||||||
| 		if in.Resources != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.Resources, &out.Resources | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	if in.ResourceNames != nil { | ||||||
| 			copy(*out, *in) | 		in, out := &in.ResourceNames, &out.ResourceNames | ||||||
| 		} | 		*out = make([]string, len(*in)) | ||||||
| 		if in.ResourceNames != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.ResourceNames, &out.ResourceNames | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	if in.NonResourceURLs != nil { | ||||||
| 			copy(*out, *in) | 		in, out := &in.NonResourceURLs, &out.NonResourceURLs | ||||||
| 		} | 		*out = make([]string, len(*in)) | ||||||
| 		if in.NonResourceURLs != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.NonResourceURLs, &out.NonResourceURLs | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	return | ||||||
| 			copy(*out, *in) | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. | ||||||
|  | func (x *PolicyRule) DeepCopy() *PolicyRule { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PolicyRule) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *Role) DeepCopyInto(out *Role) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	if in.Rules != nil { | ||||||
|  | 		in, out := &in.Rules, &out.Rules | ||||||
|  | 		*out = make([]PolicyRule, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Role. | ||||||
|  | func (x *Role) DeepCopy() *Role { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Role) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Role) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_Role is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *RoleBinding) DeepCopyInto(out *RoleBinding) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Role) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Role) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.Subjects != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Subjects, &out.Subjects | ||||||
| 			return err | 		*out = make([]Subject, len(*in)) | ||||||
| 		} else { | 		copy(*out, *in) | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 	} | ||||||
| 		} | 	out.RoleRef = in.RoleRef | ||||||
| 		if in.Rules != nil { | 	return | ||||||
| 			in, out := &in.Rules, &out.Rules | } | ||||||
| 			*out = make([]PolicyRule, len(*in)) | 
 | ||||||
| 			for i := range *in { | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding. | ||||||
| 				if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { | func (x *RoleBinding) DeepCopy() *RoleBinding { | ||||||
| 					return err | 	if x == nil { | ||||||
| 				} | 		return nil | ||||||
| 			} | 	} | ||||||
| 		} | 	out := new(RoleBinding) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *RoleBinding) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_RoleBinding is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*RoleBinding) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*RoleBinding) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			return err | 		*out = make([]RoleBinding, len(*in)) | ||||||
| 		} else { | 		for i := range *in { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 		} |  | ||||||
| 		if in.Subjects != nil { |  | ||||||
| 			in, out := &in.Subjects, &out.Subjects |  | ||||||
| 			*out = make([]Subject, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList. | ||||||
|  | func (x *RoleBindingList) DeepCopy() *RoleBindingList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(RoleBindingList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *RoleBindingList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_RoleBindingList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *RoleList) DeepCopyInto(out *RoleList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*RoleBindingList) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*RoleBindingList) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if in.Items != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			in, out := &in.Items, &out.Items | 		*out = make([]Role, len(*in)) | ||||||
| 			*out = make([]RoleBinding, len(*in)) | 		for i := range *in { | ||||||
| 			for i := range *in { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				if err := DeepCopy_rbac_RoleBinding(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleList. | ||||||
|  | func (x *RoleList) DeepCopy() *RoleList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(RoleList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *RoleList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_RoleList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *RoleRef) DeepCopyInto(out *RoleRef) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*RoleList) | 	return | ||||||
| 		out := out.(*RoleList) |  | ||||||
| 		*out = *in |  | ||||||
| 		if in.Items != nil { |  | ||||||
| 			in, out := &in.Items, &out.Items |  | ||||||
| 			*out = make([]Role, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_rbac_Role(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		return nil |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_RoleRef is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef. | ||||||
| func DeepCopy_rbac_RoleRef(in interface{}, out interface{}, c *conversion.Cloner) error { | func (x *RoleRef) DeepCopy() *RoleRef { | ||||||
| 	{ | 	if x == nil { | ||||||
| 		in := in.(*RoleRef) |  | ||||||
| 		out := out.(*RoleRef) |  | ||||||
| 		*out = *in |  | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(RoleRef) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_rbac_Subject is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_rbac_Subject(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Subject) DeepCopyInto(out *Subject) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Subject) | 	return | ||||||
| 		out := out.(*Subject) | } | ||||||
| 		*out = *in | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Subject. | ||||||
|  | func (x *Subject) DeepCopy() *Subject { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(Subject) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -22,6 +22,7 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodPreset is a policy resource that defines additional runtime | // PodPreset is a policy resource that defines additional runtime | ||||||
| // requirements for a Pod. | // requirements for a Pod. | ||||||
| @@ -53,6 +54,8 @@ type PodPresetSpec struct { | |||||||
| 	VolumeMounts []api.VolumeMount | 	VolumeMounts []api.VolumeMount | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodPresetList is a list of PodPreset objects. | // PodPresetList is a list of PodPreset objects. | ||||||
| type PodPresetList struct { | type PodPresetList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -21,107 +21,137 @@ limitations under the License. | |||||||
| package settings | package settings | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	api "k8s.io/kubernetes/pkg/api" | 	api "k8s.io/kubernetes/pkg/api" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPreset, InType: reflect.TypeOf(&PodPreset{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetList, InType: reflect.TypeOf(&PodPresetList{})}, | 			in.(*PodPreset).DeepCopyInto(out.(*PodPreset)) | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetSpec, InType: reflect.TypeOf(&PodPresetSpec{})}, | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodPreset{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodPresetList).DeepCopyInto(out.(*PodPresetList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodPresetList{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*PodPresetSpec).DeepCopyInto(out.(*PodPresetSpec)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&PodPresetSpec{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_settings_PodPreset is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_settings_PodPreset(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodPreset) DeepCopyInto(out *PodPreset) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodPreset) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*PodPreset) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	in.Spec.DeepCopyInto(&out.Spec) | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 	return | ||||||
| 			return err | } | ||||||
| 		} else { | 
 | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPreset. | ||||||
| 		} | func (x *PodPreset) DeepCopy() *PodPreset { | ||||||
| 		if err := DeepCopy_settings_PodPresetSpec(&in.Spec, &out.Spec, c); err != nil { | 	if x == nil { | ||||||
| 			return err | 		return nil | ||||||
| 		} | 	} | ||||||
|  | 	out := new(PodPreset) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodPreset) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_settings_PodPresetList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_settings_PodPresetList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodPresetList) DeepCopyInto(out *PodPresetList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodPresetList) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*PodPresetList) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if in.Items != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			in, out := &in.Items, &out.Items | 		*out = make([]PodPreset, len(*in)) | ||||||
| 			*out = make([]PodPreset, len(*in)) | 		for i := range *in { | ||||||
| 			for i := range *in { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				if err := DeepCopy_settings_PodPreset(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetList. | ||||||
|  | func (x *PodPresetList) DeepCopy() *PodPresetList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(PodPresetList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *PodPresetList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_settings_PodPresetSpec is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_settings_PodPresetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*PodPresetSpec) | 	in.Selector.DeepCopyInto(&out.Selector) | ||||||
| 		out := out.(*PodPresetSpec) | 	if in.Env != nil { | ||||||
| 		*out = *in | 		in, out := &in.Env, &out.Env | ||||||
| 		if newVal, err := c.DeepCopy(&in.Selector); err != nil { | 		*out = make([]api.EnvVar, len(*in)) | ||||||
| 			return err | 		for i := range *in { | ||||||
| 		} else { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			out.Selector = *newVal.(*v1.LabelSelector) |  | ||||||
| 		} | 		} | ||||||
| 		if in.Env != nil { | 	} | ||||||
| 			in, out := &in.Env, &out.Env | 	if in.EnvFrom != nil { | ||||||
| 			*out = make([]api.EnvVar, len(*in)) | 		in, out := &in.EnvFrom, &out.EnvFrom | ||||||
| 			for i := range *in { | 		*out = make([]api.EnvFromSource, len(*in)) | ||||||
| 				if err := api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { | 		for i := range *in { | ||||||
| 					return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.EnvFrom != nil { | 	} | ||||||
| 			in, out := &in.EnvFrom, &out.EnvFrom | 	if in.Volumes != nil { | ||||||
| 			*out = make([]api.EnvFromSource, len(*in)) | 		in, out := &in.Volumes, &out.Volumes | ||||||
| 			for i := range *in { | 		*out = make([]api.Volume, len(*in)) | ||||||
| 				if err := api.DeepCopy_api_EnvFromSource(&(*in)[i], &(*out)[i], c); err != nil { | 		for i := range *in { | ||||||
| 					return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.Volumes != nil { |  | ||||||
| 			in, out := &in.Volumes, &out.Volumes |  | ||||||
| 			*out = make([]api.Volume, len(*in)) |  | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := api.DeepCopy_api_Volume(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		if in.VolumeMounts != nil { |  | ||||||
| 			in, out := &in.VolumeMounts, &out.VolumeMounts |  | ||||||
| 			*out = make([]api.VolumeMount, len(*in)) |  | ||||||
| 			copy(*out, *in) |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.VolumeMounts != nil { | ||||||
|  | 		in, out := &in.VolumeMounts, &out.VolumeMounts | ||||||
|  | 		*out = make([]api.VolumeMount, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetSpec. | ||||||
|  | func (x *PodPresetSpec) DeepCopy() *PodPresetSpec { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(PodPresetSpec) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -20,6 +20,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||||||
|  |  | ||||||
| // +genclient=true | // +genclient=true | ||||||
| // +nonNamespaced=true | // +nonNamespaced=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // StorageClass describes a named "class" of storage offered in a cluster. | // StorageClass describes a named "class" of storage offered in a cluster. | ||||||
| // Different classes might map to quality-of-service levels, or to backup policies, | // Different classes might map to quality-of-service levels, or to backup policies, | ||||||
| @@ -47,6 +48,8 @@ type StorageClass struct { | |||||||
| 	Parameters map[string]string | 	Parameters map[string]string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // StorageClassList is a collection of storage classes. | // StorageClassList is a collection of storage classes. | ||||||
| type StorageClassList struct { | type StorageClassList struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -21,62 +21,95 @@ limitations under the License. | |||||||
| package storage | package storage | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |  | ||||||
| 	conversion "k8s.io/apimachinery/pkg/conversion" | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
| 	runtime "k8s.io/apimachinery/pkg/runtime" | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClass, InType: reflect.TypeOf(&StorageClass{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})}, | 			in.(*StorageClass).DeepCopyInto(out.(*StorageClass)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StorageClass{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*StorageClassList).DeepCopyInto(out.(*StorageClassList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&StorageClassList{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_storage_StorageClass is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *StorageClass) DeepCopyInto(out *StorageClass) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*StorageClass) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*StorageClass) | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
| 		*out = *in | 	if in.Parameters != nil { | ||||||
| 		if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { | 		in, out := &in.Parameters, &out.Parameters | ||||||
| 			return err | 		*out = make(map[string]string, len(*in)) | ||||||
| 		} else { | 		for key, val := range *in { | ||||||
| 			out.ObjectMeta = *newVal.(*v1.ObjectMeta) | 			(*out)[key] = val | ||||||
| 		} |  | ||||||
| 		if in.Parameters != nil { |  | ||||||
| 			in, out := &in.Parameters, &out.Parameters |  | ||||||
| 			*out = make(map[string]string) |  | ||||||
| 			for key, val := range *in { |  | ||||||
| 				(*out)[key] = val |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass. | ||||||
|  | func (x *StorageClass) DeepCopy() *StorageClass { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(StorageClass) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *StorageClass) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_storage_StorageClassList is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *StorageClassList) DeepCopyInto(out *StorageClassList) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*StorageClassList) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*StorageClassList) | 	out.ListMeta = in.ListMeta | ||||||
| 		*out = *in | 	if in.Items != nil { | ||||||
| 		if in.Items != nil { | 		in, out := &in.Items, &out.Items | ||||||
| 			in, out := &in.Items, &out.Items | 		*out = make([]StorageClass, len(*in)) | ||||||
| 			*out = make([]StorageClass, len(*in)) | 		for i := range *in { | ||||||
| 			for i := range *in { | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				if err := DeepCopy_storage_StorageClass(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList. | ||||||
|  | func (x *StorageClassList) DeepCopy() *StorageClassList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(StorageClassList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *StorageClassList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -14,12 +14,14 @@ go_library( | |||||||
|         "metaonly.go", |         "metaonly.go", | ||||||
|         "types.generated.go", |         "types.generated.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     deps = [ |     deps = [ | ||||||
|         "//pkg/api:go_default_library", |         "//pkg/api:go_default_library", | ||||||
|         "//vendor/github.com/ugorji/go/codec:go_default_library", |         "//vendor/github.com/ugorji/go/codec:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", | ||||||
|   | |||||||
| @@ -23,6 +23,9 @@ import ( | |||||||
| // MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of | // MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of | ||||||
| // JSON data. | // JSON data. | ||||||
| // TODO: enable meta-only decoding for protobuf. | // TODO: enable meta-only decoding for protobuf. | ||||||
|  | // | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type MetadataOnlyObject struct { | type MetadataOnlyObject struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| 	// +optional | 	// +optional | ||||||
| @@ -32,6 +35,9 @@ type MetadataOnlyObject struct { | |||||||
| // MetadataOnlyObjectList allows decoding from JSON data only the typemeta and metadata of | // MetadataOnlyObjectList allows decoding from JSON data only the typemeta and metadata of | ||||||
| // a list, and those of the enclosing objects. | // a list, and those of the enclosing objects. | ||||||
| // TODO: enable meta-only decoding for protobuf. | // TODO: enable meta-only decoding for protobuf. | ||||||
|  | // | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type MetadataOnlyObjectList struct { | type MetadataOnlyObjectList struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| 	// +optional | 	// +optional | ||||||
|   | |||||||
| @@ -0,0 +1,102 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package metaonly | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. | ||||||
|  | func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { | ||||||
|  | 	return []conversion.GeneratedDeepCopyFunc{ | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MetadataOnlyObject).DeepCopyInto(out.(*MetadataOnlyObject)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MetadataOnlyObject{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*MetadataOnlyObjectList).DeepCopyInto(out.(*MetadataOnlyObjectList)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&MetadataOnlyObjectList{})}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MetadataOnlyObject) DeepCopyInto(out *MetadataOnlyObject) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObject. | ||||||
|  | func (x *MetadataOnlyObject) DeepCopy() *MetadataOnlyObject { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(MetadataOnlyObject) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *MetadataOnlyObject) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *MetadataOnlyObjectList) DeepCopyInto(out *MetadataOnlyObjectList) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	out.ListMeta = in.ListMeta | ||||||
|  | 	if in.Items != nil { | ||||||
|  | 		in, out := &in.Items, &out.Items | ||||||
|  | 		*out = make([]MetadataOnlyObject, len(*in)) | ||||||
|  | 		for i := range *in { | ||||||
|  | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObjectList. | ||||||
|  | func (x *MetadataOnlyObjectList) DeepCopy() *MetadataOnlyObjectList { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(MetadataOnlyObjectList) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *MetadataOnlyObjectList) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -48,6 +48,7 @@ openapi_library( | |||||||
|         "k8s.io/apimachinery/pkg/version", |         "k8s.io/apimachinery/pkg/version", | ||||||
|         "k8s.io/apiserver/pkg/apis/audit/v1alpha1", |         "k8s.io/apiserver/pkg/apis/audit/v1alpha1", | ||||||
|         "k8s.io/apiserver/pkg/apis/example/v1", |         "k8s.io/apiserver/pkg/apis/example/v1", | ||||||
|  |         "k8s.io/client-go/pkg/version", | ||||||
|         "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1", |         "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1", | ||||||
|         "k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1", |         "k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1", | ||||||
|         "k8s.io/metrics/pkg/apis/metrics/v1alpha1", |         "k8s.io/metrics/pkg/apis/metrics/v1alpha1", | ||||||
|   | |||||||
| @@ -7,7 +7,10 @@ load( | |||||||
|  |  | ||||||
| go_library( | go_library( | ||||||
|     name = "go_default_library", |     name = "go_default_library", | ||||||
|     srcs = ["fake.go"], |     srcs = [ | ||||||
|  |         "fake.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|  |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     visibility = [ |     visibility = [ | ||||||
|         "//build/visible_to:pkg_kubectl_cmd_testing_CONSUMERS", |         "//build/visible_to:pkg_kubectl_cmd_testing_CONSUMERS", | ||||||
| @@ -30,6 +33,7 @@ go_library( | |||||||
|         "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", | ||||||
|   | |||||||
| @@ -49,6 +49,8 @@ import ( | |||||||
| 	"k8s.io/kubernetes/pkg/printers" | 	"k8s.io/kubernetes/pkg/printers" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type InternalType struct { | type InternalType struct { | ||||||
| 	Kind       string | 	Kind       string | ||||||
| 	APIVersion string | 	APIVersion string | ||||||
| @@ -56,6 +58,8 @@ type InternalType struct { | |||||||
| 	Name string | 	Name string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type ExternalType struct { | type ExternalType struct { | ||||||
| 	Kind       string `json:"kind"` | 	Kind       string `json:"kind"` | ||||||
| 	APIVersion string `json:"apiVersion"` | 	APIVersion string `json:"apiVersion"` | ||||||
| @@ -63,6 +67,8 @@ type ExternalType struct { | |||||||
| 	Name string `json:"name"` | 	Name string `json:"name"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type ExternalType2 struct { | type ExternalType2 struct { | ||||||
| 	Kind       string `json:"kind"` | 	Kind       string `json:"kind"` | ||||||
| 	APIVersion string `json:"apiVersion"` | 	APIVersion string `json:"apiVersion"` | ||||||
| @@ -99,6 +105,8 @@ func NewInternalType(kind, apiversion, name string) *InternalType { | |||||||
| 	return &item | 	return &item | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type InternalNamespacedType struct { | type InternalNamespacedType struct { | ||||||
| 	Kind       string | 	Kind       string | ||||||
| 	APIVersion string | 	APIVersion string | ||||||
| @@ -107,6 +115,8 @@ type InternalNamespacedType struct { | |||||||
| 	Namespace string | 	Namespace string | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type ExternalNamespacedType struct { | type ExternalNamespacedType struct { | ||||||
| 	Kind       string `json:"kind"` | 	Kind       string `json:"kind"` | ||||||
| 	APIVersion string `json:"apiVersion"` | 	APIVersion string `json:"apiVersion"` | ||||||
| @@ -115,6 +125,8 @@ type ExternalNamespacedType struct { | |||||||
| 	Namespace string `json:"namespace"` | 	Namespace string `json:"namespace"` | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen=true | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
| type ExternalNamespacedType2 struct { | type ExternalNamespacedType2 struct { | ||||||
| 	Kind       string `json:"kind"` | 	Kind       string `json:"kind"` | ||||||
| 	APIVersion string `json:"apiVersion"` | 	APIVersion string `json:"apiVersion"` | ||||||
|   | |||||||
							
								
								
									
										207
									
								
								pkg/kubectl/cmd/testing/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										207
									
								
								pkg/kubectl/cmd/testing/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,207 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package testing | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. | ||||||
|  | func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { | ||||||
|  | 	return []conversion.GeneratedDeepCopyFunc{ | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ExternalNamespacedType).DeepCopyInto(out.(*ExternalNamespacedType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalNamespacedType{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ExternalNamespacedType2).DeepCopyInto(out.(*ExternalNamespacedType2)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalNamespacedType2{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ExternalType).DeepCopyInto(out.(*ExternalType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalType{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*ExternalType2).DeepCopyInto(out.(*ExternalType2)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&ExternalType2{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*InternalNamespacedType).DeepCopyInto(out.(*InternalNamespacedType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&InternalNamespacedType{})}, | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*InternalType).DeepCopyInto(out.(*InternalType)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&InternalType{})}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalNamespacedType) DeepCopyInto(out *ExternalNamespacedType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType. | ||||||
|  | func (x *ExternalNamespacedType) DeepCopy() *ExternalNamespacedType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalNamespacedType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalNamespacedType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalNamespacedType2) DeepCopyInto(out *ExternalNamespacedType2) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType2. | ||||||
|  | func (x *ExternalNamespacedType2) DeepCopy() *ExternalNamespacedType2 { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalNamespacedType2) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalNamespacedType2) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalType) DeepCopyInto(out *ExternalType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType. | ||||||
|  | func (x *ExternalType) DeepCopy() *ExternalType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *ExternalType2) DeepCopyInto(out *ExternalType2) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType2. | ||||||
|  | func (x *ExternalType2) DeepCopy() *ExternalType2 { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(ExternalType2) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *ExternalType2) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *InternalNamespacedType) DeepCopyInto(out *InternalNamespacedType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InternalNamespacedType. | ||||||
|  | func (x *InternalNamespacedType) DeepCopy() *InternalNamespacedType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(InternalNamespacedType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *InternalNamespacedType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *InternalType) DeepCopyInto(out *InternalType) { | ||||||
|  | 	*out = *in | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InternalType. | ||||||
|  | func (x *InternalType) DeepCopy() *InternalType { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(InternalType) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *InternalType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -10,6 +10,7 @@ go_library( | |||||||
|     srcs = [ |     srcs = [ | ||||||
|         "types.generated.go", |         "types.generated.go", | ||||||
|         "types.go", |         "types.go", | ||||||
|  |         "zz_generated.deepcopy.go", | ||||||
|     ], |     ], | ||||||
|     tags = ["automanaged"], |     tags = ["automanaged"], | ||||||
|     visibility = [ |     visibility = [ | ||||||
| @@ -18,6 +19,8 @@ go_library( | |||||||
|     deps = [ |     deps = [ | ||||||
|         "//vendor/github.com/ugorji/go/codec:go_default_library", |         "//vendor/github.com/ugorji/go/codec:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", | ||||||
|  |         "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||||||
|         "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", |         "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", | ||||||
|     ], |     ], | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -20,6 +20,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| type TestStruct struct { | type TestStruct struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
| 	// +optional | 	// +optional | ||||||
|   | |||||||
							
								
								
									
										81
									
								
								pkg/kubectl/testing/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										81
									
								
								pkg/kubectl/testing/zz_generated.deepcopy.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,81 @@ | |||||||
|  | // +build !ignore_autogenerated | ||||||
|  | 
 | ||||||
|  | /* | ||||||
|  | Copyright 2017 The Kubernetes Authors. | ||||||
|  | 
 | ||||||
|  | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  | you may not use this file except in compliance with the License. | ||||||
|  | You may obtain a copy of the License at | ||||||
|  | 
 | ||||||
|  |     http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  | 
 | ||||||
|  | Unless required by applicable law or agreed to in writing, software | ||||||
|  | distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  | See the License for the specific language governing permissions and | ||||||
|  | limitations under the License. | ||||||
|  | */ | ||||||
|  | 
 | ||||||
|  | // This file was autogenerated by deepcopy-gen. Do not edit it manually! | ||||||
|  | 
 | ||||||
|  | package testing | ||||||
|  | 
 | ||||||
|  | import ( | ||||||
|  | 	conversion "k8s.io/apimachinery/pkg/conversion" | ||||||
|  | 	runtime "k8s.io/apimachinery/pkg/runtime" | ||||||
|  | 	reflect "reflect" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | // Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. | ||||||
|  | func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { | ||||||
|  | 	return []conversion.GeneratedDeepCopyFunc{ | ||||||
|  | 		{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*TestStruct).DeepCopyInto(out.(*TestStruct)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&TestStruct{})}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
|  | func (in *TestStruct) DeepCopyInto(out *TestStruct) { | ||||||
|  | 	*out = *in | ||||||
|  | 	out.TypeMeta = in.TypeMeta | ||||||
|  | 	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||||||
|  | 	if in.Map != nil { | ||||||
|  | 		in, out := &in.Map, &out.Map | ||||||
|  | 		*out = make(map[string]int, len(*in)) | ||||||
|  | 		for key, val := range *in { | ||||||
|  | 			(*out)[key] = val | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	if in.StringList != nil { | ||||||
|  | 		in, out := &in.StringList, &out.StringList | ||||||
|  | 		*out = make([]string, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	if in.IntList != nil { | ||||||
|  | 		in, out := &in.IntList, &out.IntList | ||||||
|  | 		*out = make([]int, len(*in)) | ||||||
|  | 		copy(*out, *in) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestStruct. | ||||||
|  | func (x *TestStruct) DeepCopy() *TestStruct { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(TestStruct) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *TestStruct) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -78,6 +78,8 @@ type NetworkPlugin interface { | |||||||
| 	Status() error | 	Status() error | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // PodNetworkStatus stores the network status of a pod (currently just the primary IP address) | // PodNetworkStatus stores the network status of a pod (currently just the primary IP address) | ||||||
| // This struct represents version "v1beta1" | // This struct represents version "v1beta1" | ||||||
| type PodNetworkStatus struct { | type PodNetworkStatus struct { | ||||||
|   | |||||||
| @@ -215,10 +215,24 @@ type TestPrintType struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| func (obj *TestPrintType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | func (obj *TestPrintType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | ||||||
|  | func (obj *TestPrintType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if obj == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	clone := *obj | ||||||
|  | 	return &clone | ||||||
|  | } | ||||||
|  |  | ||||||
| type TestUnknownType struct{} | type TestUnknownType struct{} | ||||||
|  |  | ||||||
| func (obj *TestUnknownType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | func (obj *TestUnknownType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } | ||||||
|  | func (obj *TestUnknownType) DeepCopyObject() runtime.Object { | ||||||
|  | 	if obj == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	clone := *obj | ||||||
|  | 	return &clone | ||||||
|  | } | ||||||
|  |  | ||||||
| func TestPrinter(t *testing.T) { | func TestPrinter(t *testing.T) { | ||||||
| 	//test inputs | 	//test inputs | ||||||
|   | |||||||
| @@ -21,6 +21,8 @@ import ( | |||||||
| 	"k8s.io/kubernetes/pkg/api" | 	"k8s.io/kubernetes/pkg/api" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Configuration provides configuration for the PodTolerationRestriction admission controller. | // Configuration provides configuration for the PodTolerationRestriction admission controller. | ||||||
| type Configuration struct { | type Configuration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -21,6 +21,8 @@ import ( | |||||||
| 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Configuration provides configuration for the PodTolerationRestriction admission controller. | // Configuration provides configuration for the PodTolerationRestriction admission controller. | ||||||
| type Configuration struct { | type Configuration struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
| @@ -27,42 +27,58 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Configuration, InType: reflect.TypeOf(&Configuration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Configuration).DeepCopyInto(out.(*Configuration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Configuration{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_Configuration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Configuration) DeepCopyInto(out *Configuration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Configuration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Configuration) | 	if in.Default != nil { | ||||||
| 		*out = *in | 		in, out := &in.Default, &out.Default | ||||||
| 		if in.Default != nil { | 		*out = make([]v1.Toleration, len(*in)) | ||||||
| 			in, out := &in.Default, &out.Default | 		for i := range *in { | ||||||
| 			*out = make([]v1.Toleration, len(*in)) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := v1.DeepCopy_v1_Toleration(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Whitelist != nil { | 	} | ||||||
| 			in, out := &in.Whitelist, &out.Whitelist | 	if in.Whitelist != nil { | ||||||
| 			*out = make([]v1.Toleration, len(*in)) | 		in, out := &in.Whitelist, &out.Whitelist | ||||||
| 			for i := range *in { | 		*out = make([]v1.Toleration, len(*in)) | ||||||
| 				if err := v1.DeepCopy_v1_Toleration(&(*in)[i], &(*out)[i], c); err != nil { | 		for i := range *in { | ||||||
| 					return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration. | ||||||
|  | func (x *Configuration) DeepCopy() *Configuration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Configuration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Configuration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -27,42 +27,58 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_podtolerationrestriction_Configuration, InType: reflect.TypeOf(&Configuration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*Configuration).DeepCopyInto(out.(*Configuration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Configuration{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_podtolerationrestriction_Configuration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_podtolerationrestriction_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Configuration) DeepCopyInto(out *Configuration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Configuration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Configuration) | 	if in.Default != nil { | ||||||
| 		*out = *in | 		in, out := &in.Default, &out.Default | ||||||
| 		if in.Default != nil { | 		*out = make([]api.Toleration, len(*in)) | ||||||
| 			in, out := &in.Default, &out.Default | 		for i := range *in { | ||||||
| 			*out = make([]api.Toleration, len(*in)) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := api.DeepCopy_api_Toleration(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
| 		if in.Whitelist != nil { | 	} | ||||||
| 			in, out := &in.Whitelist, &out.Whitelist | 	if in.Whitelist != nil { | ||||||
| 			*out = make([]api.Toleration, len(*in)) | 		in, out := &in.Whitelist, &out.Whitelist | ||||||
| 			for i := range *in { | 		*out = make([]api.Toleration, len(*in)) | ||||||
| 				if err := api.DeepCopy_api_Toleration(&(*in)[i], &(*out)[i], c); err != nil { | 		for i := range *in { | ||||||
| 					return err | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration. | ||||||
|  | func (x *Configuration) DeepCopy() *Configuration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Configuration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Configuration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -18,6 +18,8 @@ package resourcequota | |||||||
|  |  | ||||||
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Configuration provides configuration for the ResourceQuota admission controller. | // Configuration provides configuration for the ResourceQuota admission controller. | ||||||
| type Configuration struct { | type Configuration struct { | ||||||
| 	metav1.TypeMeta | 	metav1.TypeMeta | ||||||
|   | |||||||
| @@ -18,6 +18,8 @@ package v1alpha1 | |||||||
|  |  | ||||||
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||||
|  |  | ||||||
|  | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||||||
|  |  | ||||||
| // Configuration provides configuration for the ResourceQuota admission controller. | // Configuration provides configuration for the ResourceQuota admission controller. | ||||||
| type Configuration struct { | type Configuration struct { | ||||||
| 	metav1.TypeMeta `json:",inline"` | 	metav1.TypeMeta `json:",inline"` | ||||||
|   | |||||||
| @@ -26,49 +26,76 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Configuration, InType: reflect.TypeOf(&Configuration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LimitedResource, InType: reflect.TypeOf(&LimitedResource{})}, | 			in.(*Configuration).DeepCopyInto(out.(*Configuration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Configuration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*LimitedResource).DeepCopyInto(out.(*LimitedResource)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&LimitedResource{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_Configuration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Configuration) DeepCopyInto(out *Configuration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Configuration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Configuration) | 	if in.LimitedResources != nil { | ||||||
| 		*out = *in | 		in, out := &in.LimitedResources, &out.LimitedResources | ||||||
| 		if in.LimitedResources != nil { | 		*out = make([]LimitedResource, len(*in)) | ||||||
| 			in, out := &in.LimitedResources, &out.LimitedResources | 		for i := range *in { | ||||||
| 			*out = make([]LimitedResource, len(*in)) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_v1alpha1_LimitedResource(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration. | ||||||
|  | func (x *Configuration) DeepCopy() *Configuration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Configuration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Configuration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_v1alpha1_LimitedResource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_v1alpha1_LimitedResource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *LimitedResource) DeepCopyInto(out *LimitedResource) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*LimitedResource) | 	if in.MatchContains != nil { | ||||||
| 		out := out.(*LimitedResource) | 		in, out := &in.MatchContains, &out.MatchContains | ||||||
| 		*out = *in | 		*out = make([]string, len(*in)) | ||||||
| 		if in.MatchContains != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.MatchContains, &out.MatchContains | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	return | ||||||
| 			copy(*out, *in) | } | ||||||
| 		} | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource. | ||||||
|  | func (x *LimitedResource) DeepCopy() *LimitedResource { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(LimitedResource) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
| @@ -26,49 +26,76 @@ import ( | |||||||
| 	reflect "reflect" | 	reflect "reflect" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | // Deprecated: register deep-copy functions. | ||||||
| func init() { | func init() { | ||||||
| 	SchemeBuilder.Register(RegisterDeepCopies) | 	SchemeBuilder.Register(RegisterDeepCopies) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // RegisterDeepCopies adds deep-copy functions to the given scheme. Public | // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public | ||||||
| // to allow building arbitrary schemes. | // to allow building arbitrary schemes. | ||||||
| func RegisterDeepCopies(scheme *runtime.Scheme) error { | func RegisterDeepCopies(scheme *runtime.Scheme) error { | ||||||
| 	return scheme.AddGeneratedDeepCopyFuncs( | 	return scheme.AddGeneratedDeepCopyFuncs( | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_resourcequota_Configuration, InType: reflect.TypeOf(&Configuration{})}, | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
| 		conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_resourcequota_LimitedResource, InType: reflect.TypeOf(&LimitedResource{})}, | 			in.(*Configuration).DeepCopyInto(out.(*Configuration)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&Configuration{})}, | ||||||
|  | 		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error { | ||||||
|  | 			in.(*LimitedResource).DeepCopyInto(out.(*LimitedResource)) | ||||||
|  | 			return nil | ||||||
|  | 		}, InType: reflect.TypeOf(&LimitedResource{})}, | ||||||
| 	) | 	) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_resourcequota_Configuration is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_resourcequota_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *Configuration) DeepCopyInto(out *Configuration) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*Configuration) | 	out.TypeMeta = in.TypeMeta | ||||||
| 		out := out.(*Configuration) | 	if in.LimitedResources != nil { | ||||||
| 		*out = *in | 		in, out := &in.LimitedResources, &out.LimitedResources | ||||||
| 		if in.LimitedResources != nil { | 		*out = make([]LimitedResource, len(*in)) | ||||||
| 			in, out := &in.LimitedResources, &out.LimitedResources | 		for i := range *in { | ||||||
| 			*out = make([]LimitedResource, len(*in)) | 			(*in)[i].DeepCopyInto(&(*out)[i]) | ||||||
| 			for i := range *in { |  | ||||||
| 				if err := DeepCopy_resourcequota_LimitedResource(&(*in)[i], &(*out)[i], c); err != nil { |  | ||||||
| 					return err |  | ||||||
| 				} |  | ||||||
| 			} |  | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration. | ||||||
|  | func (x *Configuration) DeepCopy() *Configuration { | ||||||
|  | 	if x == nil { | ||||||
|  | 		return nil | ||||||
|  | 	} | ||||||
|  | 	out := new(Configuration) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | ||||||
|  | func (x *Configuration) DeepCopyObject() runtime.Object { | ||||||
|  | 	if c := x.DeepCopy(); c != nil { | ||||||
|  | 		return c | ||||||
|  | 	} else { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // DeepCopy_resourcequota_LimitedResource is an autogenerated deepcopy function. | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | ||||||
| func DeepCopy_resourcequota_LimitedResource(in interface{}, out interface{}, c *conversion.Cloner) error { | func (in *LimitedResource) DeepCopyInto(out *LimitedResource) { | ||||||
| 	{ | 	*out = *in | ||||||
| 		in := in.(*LimitedResource) | 	if in.MatchContains != nil { | ||||||
| 		out := out.(*LimitedResource) | 		in, out := &in.MatchContains, &out.MatchContains | ||||||
| 		*out = *in | 		*out = make([]string, len(*in)) | ||||||
| 		if in.MatchContains != nil { | 		copy(*out, *in) | ||||||
| 			in, out := &in.MatchContains, &out.MatchContains | 	} | ||||||
| 			*out = make([]string, len(*in)) | 	return | ||||||
| 			copy(*out, *in) | } | ||||||
| 		} | 
 | ||||||
|  | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource. | ||||||
|  | func (x *LimitedResource) DeepCopy() *LimitedResource { | ||||||
|  | 	if x == nil { | ||||||
| 		return nil | 		return nil | ||||||
| 	} | 	} | ||||||
|  | 	out := new(LimitedResource) | ||||||
|  | 	x.DeepCopyInto(out) | ||||||
|  | 	return out | ||||||
| } | } | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Kubernetes Submit Queue
					Kubernetes Submit Queue