generated: Defaulters
This commit is contained in:
		
							
								
								
									
										539
									
								
								pkg/api/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										539
									
								
								pkg/api/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,539 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1 | ||||
|  | ||||
| import ( | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&ConfigMap{}, func(obj interface{}) { SetObjectDefaults_ConfigMap(obj.(*ConfigMap)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ConfigMapList{}, func(obj interface{}) { SetObjectDefaults_ConfigMapList(obj.(*ConfigMapList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Endpoints{}, func(obj interface{}) { SetObjectDefaults_Endpoints(obj.(*Endpoints)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&EndpointsList{}, func(obj interface{}) { SetObjectDefaults_EndpointsList(obj.(*EndpointsList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&LimitRange{}, func(obj interface{}) { SetObjectDefaults_LimitRange(obj.(*LimitRange)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&LimitRangeList{}, func(obj interface{}) { SetObjectDefaults_LimitRangeList(obj.(*LimitRangeList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Namespace{}, func(obj interface{}) { SetObjectDefaults_Namespace(obj.(*Namespace)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&NamespaceList{}, func(obj interface{}) { SetObjectDefaults_NamespaceList(obj.(*NamespaceList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Node{}, func(obj interface{}) { SetObjectDefaults_Node(obj.(*Node)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&NodeList{}, func(obj interface{}) { SetObjectDefaults_NodeList(obj.(*NodeList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PersistentVolume{}, func(obj interface{}) { SetObjectDefaults_PersistentVolume(obj.(*PersistentVolume)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PersistentVolumeClaim{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeClaim(obj.(*PersistentVolumeClaim)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PersistentVolumeClaimList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeClaimList(obj.(*PersistentVolumeClaimList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PersistentVolumeList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeList(obj.(*PersistentVolumeList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Pod{}, func(obj interface{}) { SetObjectDefaults_Pod(obj.(*Pod)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PodAttachOptions{}, func(obj interface{}) { SetObjectDefaults_PodAttachOptions(obj.(*PodAttachOptions)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PodExecOptions{}, func(obj interface{}) { SetObjectDefaults_PodExecOptions(obj.(*PodExecOptions)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PodList{}, func(obj interface{}) { SetObjectDefaults_PodList(obj.(*PodList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PodTemplate{}, func(obj interface{}) { SetObjectDefaults_PodTemplate(obj.(*PodTemplate)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PodTemplateList{}, func(obj interface{}) { SetObjectDefaults_PodTemplateList(obj.(*PodTemplateList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ReplicationController{}, func(obj interface{}) { SetObjectDefaults_ReplicationController(obj.(*ReplicationController)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ReplicationControllerList{}, func(obj interface{}) { SetObjectDefaults_ReplicationControllerList(obj.(*ReplicationControllerList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Secret{}, func(obj interface{}) { SetObjectDefaults_Secret(obj.(*Secret)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&SecretList{}, func(obj interface{}) { SetObjectDefaults_SecretList(obj.(*SecretList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Service{}, func(obj interface{}) { SetObjectDefaults_Service(obj.(*Service)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ServiceList{}, func(obj interface{}) { SetObjectDefaults_ServiceList(obj.(*ServiceList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ConfigMap(in *ConfigMap) { | ||||
| 	SetDefaults_ConfigMap(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ConfigMapList(in *ConfigMapList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_ConfigMap(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Endpoints(in *Endpoints) { | ||||
| 	SetDefaults_Endpoints(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_EndpointsList(in *EndpointsList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Endpoints(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_LimitRange(in *LimitRange) { | ||||
| 	for i := range in.Spec.Limits { | ||||
| 		a := &in.Spec.Limits[i] | ||||
| 		SetDefaults_LimitRangeItem(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_LimitRangeList(in *LimitRangeList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_LimitRange(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Namespace(in *Namespace) { | ||||
| 	SetDefaults_NamespaceStatus(&in.Status) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_NamespaceList(in *NamespaceList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Namespace(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Node(in *Node) { | ||||
| 	SetDefaults_Node(in) | ||||
| 	SetDefaults_NodeStatus(&in.Status) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_NodeList(in *NodeList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Node(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PersistentVolume(in *PersistentVolume) { | ||||
| 	SetDefaults_PersistentVolume(in) | ||||
| 	if in.Spec.PersistentVolumeSource.RBD != nil { | ||||
| 		SetDefaults_RBDVolumeSource(in.Spec.PersistentVolumeSource.RBD) | ||||
| 	} | ||||
| 	if in.Spec.PersistentVolumeSource.ISCSI != nil { | ||||
| 		SetDefaults_ISCSIVolumeSource(in.Spec.PersistentVolumeSource.ISCSI) | ||||
| 	} | ||||
| 	if in.Spec.PersistentVolumeSource.AzureDisk != nil { | ||||
| 		SetDefaults_AzureDiskVolumeSource(in.Spec.PersistentVolumeSource.AzureDisk) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PersistentVolumeClaim(in *PersistentVolumeClaim) { | ||||
| 	SetDefaults_PersistentVolumeClaim(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PersistentVolumeClaimList(in *PersistentVolumeClaimList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_PersistentVolumeClaim(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PersistentVolumeList(in *PersistentVolumeList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_PersistentVolume(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Pod(in *Pod) { | ||||
| 	SetDefaults_Pod(in) | ||||
| 	SetDefaults_PodSpec(&in.Spec) | ||||
| 	for i := range in.Spec.Volumes { | ||||
| 		a := &in.Spec.Volumes[i] | ||||
| 		SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.InitContainers { | ||||
| 		a := &in.Spec.InitContainers[i] | ||||
| 		SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Containers { | ||||
| 		a := &in.Spec.Containers[i] | ||||
| 		SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PodAttachOptions(in *PodAttachOptions) { | ||||
| 	SetDefaults_PodAttachOptions(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PodExecOptions(in *PodExecOptions) { | ||||
| 	SetDefaults_PodExecOptions(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PodList(in *PodList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Pod(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PodTemplate(in *PodTemplate) { | ||||
| 	SetDefaults_PodSpec(&in.Template.Spec) | ||||
| 	for i := range in.Template.Spec.Volumes { | ||||
| 		a := &in.Template.Spec.Volumes[i] | ||||
| 		SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Template.Spec.InitContainers { | ||||
| 		a := &in.Template.Spec.InitContainers[i] | ||||
| 		SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Template.Spec.Containers { | ||||
| 		a := &in.Template.Spec.Containers[i] | ||||
| 		SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PodTemplateList(in *PodTemplateList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_PodTemplate(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ReplicationController(in *ReplicationController) { | ||||
| 	SetDefaults_ReplicationController(in) | ||||
| 	if in.Spec.Template != nil { | ||||
| 		SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 		for i := range in.Spec.Template.Spec.Volumes { | ||||
| 			a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 			SetDefaults_Volume(a) | ||||
| 			if a.VolumeSource.Secret != nil { | ||||
| 				SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 			} | ||||
| 			if a.VolumeSource.ISCSI != nil { | ||||
| 				SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 			} | ||||
| 			if a.VolumeSource.RBD != nil { | ||||
| 				SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 			} | ||||
| 			if a.VolumeSource.DownwardAPI != nil { | ||||
| 				SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 				for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 					b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 					if b.FieldRef != nil { | ||||
| 						SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			if a.VolumeSource.ConfigMap != nil { | ||||
| 				SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 			} | ||||
| 			if a.VolumeSource.AzureDisk != nil { | ||||
| 				SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 			} | ||||
| 		} | ||||
| 		for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 			a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 			SetDefaults_Container(a) | ||||
| 			for j := range a.Ports { | ||||
| 				b := &a.Ports[j] | ||||
| 				SetDefaults_ContainerPort(b) | ||||
| 			} | ||||
| 			for j := range a.Env { | ||||
| 				b := &a.Env[j] | ||||
| 				if b.ValueFrom != nil { | ||||
| 					if b.ValueFrom.FieldRef != nil { | ||||
| 						SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			if a.LivenessProbe != nil { | ||||
| 				SetDefaults_Probe(a.LivenessProbe) | ||||
| 				if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.ReadinessProbe != nil { | ||||
| 				SetDefaults_Probe(a.ReadinessProbe) | ||||
| 				if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle != nil { | ||||
| 				if a.Lifecycle.PostStart != nil { | ||||
| 					if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 						SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 					} | ||||
| 				} | ||||
| 				if a.Lifecycle.PreStop != nil { | ||||
| 					if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 						SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		for i := range in.Spec.Template.Spec.Containers { | ||||
| 			a := &in.Spec.Template.Spec.Containers[i] | ||||
| 			SetDefaults_Container(a) | ||||
| 			for j := range a.Ports { | ||||
| 				b := &a.Ports[j] | ||||
| 				SetDefaults_ContainerPort(b) | ||||
| 			} | ||||
| 			for j := range a.Env { | ||||
| 				b := &a.Env[j] | ||||
| 				if b.ValueFrom != nil { | ||||
| 					if b.ValueFrom.FieldRef != nil { | ||||
| 						SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			if a.LivenessProbe != nil { | ||||
| 				SetDefaults_Probe(a.LivenessProbe) | ||||
| 				if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.ReadinessProbe != nil { | ||||
| 				SetDefaults_Probe(a.ReadinessProbe) | ||||
| 				if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 					SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle != nil { | ||||
| 				if a.Lifecycle.PostStart != nil { | ||||
| 					if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 						SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 					} | ||||
| 				} | ||||
| 				if a.Lifecycle.PreStop != nil { | ||||
| 					if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 						SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ReplicationControllerList(in *ReplicationControllerList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_ReplicationController(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Secret(in *Secret) { | ||||
| 	SetDefaults_Secret(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_SecretList(in *SecretList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Secret(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Service(in *Service) { | ||||
| 	SetDefaults_ServiceSpec(&in.Spec) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ServiceList(in *ServiceList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Service(a) | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										159
									
								
								pkg/apis/apps/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										159
									
								
								pkg/apis/apps/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,159 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1alpha1 | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/kubernetes/pkg/api/v1" | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&PetSet{}, func(obj interface{}) { SetObjectDefaults_PetSet(obj.(*PetSet)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&PetSetList{}, func(obj interface{}) { SetObjectDefaults_PetSetList(obj.(*PetSetList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PetSet(in *PetSet) { | ||||
| 	SetDefaults_PetSet(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.VolumeClaimTemplates { | ||||
| 		a := &in.Spec.VolumeClaimTemplates[i] | ||||
| 		v1.SetDefaults_PersistentVolumeClaim(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_PetSetList(in *PetSetList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_PetSet(a) | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										47
									
								
								pkg/apis/autoscaling/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								pkg/apis/autoscaling/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,47 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1 | ||||
|  | ||||
| import ( | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscaler{}, func(obj interface{}) { SetObjectDefaults_HorizontalPodAutoscaler(obj.(*HorizontalPodAutoscaler)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) { | ||||
| 		SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList)) | ||||
| 	}) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler) { | ||||
| 	SetDefaults_HorizontalPodAutoscaler(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_HorizontalPodAutoscaler(a) | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										155
									
								
								pkg/apis/batch/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										155
									
								
								pkg/apis/batch/v1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,155 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1 | ||||
|  | ||||
| import ( | ||||
| 	api_v1 "k8s.io/kubernetes/pkg/api/v1" | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Job(in *Job) { | ||||
| 	SetDefaults_Job(in) | ||||
| 	api_v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		api_v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			api_v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			api_v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			api_v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			api_v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					api_v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			api_v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			api_v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		api_v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			api_v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					api_v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			api_v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				api_v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			api_v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				api_v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		api_v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			api_v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					api_v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			api_v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				api_v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			api_v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				api_v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_JobList(in *JobList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Job(a) | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										390
									
								
								pkg/apis/batch/v2alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										390
									
								
								pkg/apis/batch/v2alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,390 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v2alpha1 | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/kubernetes/pkg/api/v1" | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&JobTemplate{}, func(obj interface{}) { SetObjectDefaults_JobTemplate(obj.(*JobTemplate)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ScheduledJob{}, func(obj interface{}) { SetObjectDefaults_ScheduledJob(obj.(*ScheduledJob)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ScheduledJobList{}, func(obj interface{}) { SetObjectDefaults_ScheduledJobList(obj.(*ScheduledJobList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Job(in *Job) { | ||||
| 	SetDefaults_Job(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_JobList(in *JobList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Job(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_JobTemplate(in *JobTemplate) { | ||||
| 	v1.SetDefaults_PodSpec(&in.Template.Spec.Template.Spec) | ||||
| 	for i := range in.Template.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Template.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Template.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Template.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Template.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Template.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ScheduledJob(in *ScheduledJob) { | ||||
| 	SetDefaults_ScheduledJob(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.JobTemplate.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.JobTemplate.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.JobTemplate.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.JobTemplate.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.JobTemplate.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.JobTemplate.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.JobTemplate.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ScheduledJobList(in *ScheduledJobList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_ScheduledJob(a) | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										48
									
								
								pkg/apis/componentconfig/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								pkg/apis/componentconfig/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1alpha1 | ||||
|  | ||||
| import ( | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&KubeProxyConfiguration{}, func(obj interface{}) { SetObjectDefaults_KubeProxyConfiguration(obj.(*KubeProxyConfiguration)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&KubeSchedulerConfiguration{}, func(obj interface{}) { SetObjectDefaults_KubeSchedulerConfiguration(obj.(*KubeSchedulerConfiguration)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&KubeletConfiguration{}, func(obj interface{}) { SetObjectDefaults_KubeletConfiguration(obj.(*KubeletConfiguration)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_KubeProxyConfiguration(in *KubeProxyConfiguration) { | ||||
| 	SetDefaults_KubeProxyConfiguration(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_KubeSchedulerConfiguration(in *KubeSchedulerConfiguration) { | ||||
| 	SetDefaults_KubeSchedulerConfiguration(in) | ||||
| 	SetDefaults_LeaderElectionConfiguration(&in.LeaderElection) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_KubeletConfiguration(in *KubeletConfiguration) { | ||||
| 	SetDefaults_KubeletConfiguration(in) | ||||
| } | ||||
							
								
								
									
										549
									
								
								pkg/apis/extensions/v1beta1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										549
									
								
								pkg/apis/extensions/v1beta1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,549 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1beta1 | ||||
|  | ||||
| import ( | ||||
| 	v1 "k8s.io/kubernetes/pkg/api/v1" | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&DaemonSet{}, func(obj interface{}) { SetObjectDefaults_DaemonSet(obj.(*DaemonSet)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&DaemonSetList{}, func(obj interface{}) { SetObjectDefaults_DaemonSetList(obj.(*DaemonSetList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&Deployment{}, func(obj interface{}) { SetObjectDefaults_Deployment(obj.(*Deployment)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&DeploymentList{}, func(obj interface{}) { SetObjectDefaults_DeploymentList(obj.(*DeploymentList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscaler{}, func(obj interface{}) { SetObjectDefaults_HorizontalPodAutoscaler(obj.(*HorizontalPodAutoscaler)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) { | ||||
| 		SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList)) | ||||
| 	}) | ||||
| 	scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&NetworkPolicy{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicy(obj.(*NetworkPolicy)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&NetworkPolicyList{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicyList(obj.(*NetworkPolicyList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ReplicaSet{}, func(obj interface{}) { SetObjectDefaults_ReplicaSet(obj.(*ReplicaSet)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ReplicaSetList{}, func(obj interface{}) { SetObjectDefaults_ReplicaSetList(obj.(*ReplicaSetList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_DaemonSet(in *DaemonSet) { | ||||
| 	SetDefaults_DaemonSet(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_DaemonSetList(in *DaemonSetList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_DaemonSet(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Deployment(in *Deployment) { | ||||
| 	SetDefaults_Deployment(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_DeploymentList(in *DeploymentList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Deployment(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler) { | ||||
| 	SetDefaults_HorizontalPodAutoscaler(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_HorizontalPodAutoscaler(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_Job(in *Job) { | ||||
| 	SetDefaults_Job(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_JobList(in *JobList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_Job(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy) { | ||||
| 	SetDefaults_NetworkPolicy(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_NetworkPolicyList(in *NetworkPolicyList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_NetworkPolicy(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ReplicaSet(in *ReplicaSet) { | ||||
| 	SetDefaults_ReplicaSet(in) | ||||
| 	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) | ||||
| 	for i := range in.Spec.Template.Spec.Volumes { | ||||
| 		a := &in.Spec.Template.Spec.Volumes[i] | ||||
| 		v1.SetDefaults_Volume(a) | ||||
| 		if a.VolumeSource.Secret != nil { | ||||
| 			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) | ||||
| 		} | ||||
| 		if a.VolumeSource.ISCSI != nil { | ||||
| 			v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) | ||||
| 		} | ||||
| 		if a.VolumeSource.RBD != nil { | ||||
| 			v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) | ||||
| 		} | ||||
| 		if a.VolumeSource.DownwardAPI != nil { | ||||
| 			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) | ||||
| 			for j := range a.VolumeSource.DownwardAPI.Items { | ||||
| 				b := &a.VolumeSource.DownwardAPI.Items[j] | ||||
| 				if b.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.VolumeSource.ConfigMap != nil { | ||||
| 			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) | ||||
| 		} | ||||
| 		if a.VolumeSource.AzureDisk != nil { | ||||
| 			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.InitContainers { | ||||
| 		a := &in.Spec.Template.Spec.InitContainers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	for i := range in.Spec.Template.Spec.Containers { | ||||
| 		a := &in.Spec.Template.Spec.Containers[i] | ||||
| 		v1.SetDefaults_Container(a) | ||||
| 		for j := range a.Ports { | ||||
| 			b := &a.Ports[j] | ||||
| 			v1.SetDefaults_ContainerPort(b) | ||||
| 		} | ||||
| 		for j := range a.Env { | ||||
| 			b := &a.Env[j] | ||||
| 			if b.ValueFrom != nil { | ||||
| 				if b.ValueFrom.FieldRef != nil { | ||||
| 					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		if a.LivenessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.LivenessProbe) | ||||
| 			if a.LivenessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.ReadinessProbe != nil { | ||||
| 			v1.SetDefaults_Probe(a.ReadinessProbe) | ||||
| 			if a.ReadinessProbe.Handler.HTTPGet != nil { | ||||
| 				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) | ||||
| 			} | ||||
| 		} | ||||
| 		if a.Lifecycle != nil { | ||||
| 			if a.Lifecycle.PostStart != nil { | ||||
| 				if a.Lifecycle.PostStart.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 			if a.Lifecycle.PreStop != nil { | ||||
| 				if a.Lifecycle.PreStop.HTTPGet != nil { | ||||
| 					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ReplicaSetList(in *ReplicaSetList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_ReplicaSet(a) | ||||
| 	} | ||||
| } | ||||
| @@ -113,6 +113,7 @@ func Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole(in *rbac.ClusterRole, out | ||||
| } | ||||
|  | ||||
| func autoConvert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRoleBinding, out *rbac.ClusterRoleBinding, s conversion.Scope) error { | ||||
| 	SetDefaults_ClusterRoleBinding(in) | ||||
| 	if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| @@ -355,6 +356,7 @@ func Convert_rbac_Role_To_v1alpha1_Role(in *rbac.Role, out *Role, s conversion.S | ||||
| } | ||||
|  | ||||
| func autoConvert_v1alpha1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.RoleBinding, s conversion.Scope) error { | ||||
| 	SetDefaults_RoleBinding(in) | ||||
| 	if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|   | ||||
							
								
								
									
										58
									
								
								pkg/apis/rbac/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								pkg/apis/rbac/v1alpha1/zz_generated.defaults.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| // +build !ignore_autogenerated | ||||
|  | ||||
| /* | ||||
| 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. | ||||
| */ | ||||
|  | ||||
| // This file was autogenerated by defaulter-gen. Do not edit it manually! | ||||
|  | ||||
| package v1alpha1 | ||||
|  | ||||
| import ( | ||||
| 	runtime "k8s.io/kubernetes/pkg/runtime" | ||||
| ) | ||||
|  | ||||
| // RegisterDefaults adds defaulters functions to the given scheme. | ||||
| // Public to allow building arbitrary schemes. | ||||
| // All generated defaulters are covering - they call all nested defaulters. | ||||
| func RegisterDefaults(scheme *runtime.Scheme) error { | ||||
| 	scheme.AddTypeDefaultingFunc(&ClusterRoleBinding{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleBinding(obj.(*ClusterRoleBinding)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&ClusterRoleBindingList{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleBindingList(obj.(*ClusterRoleBindingList)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&RoleBinding{}, func(obj interface{}) { SetObjectDefaults_RoleBinding(obj.(*RoleBinding)) }) | ||||
| 	scheme.AddTypeDefaultingFunc(&RoleBindingList{}, func(obj interface{}) { SetObjectDefaults_RoleBindingList(obj.(*RoleBindingList)) }) | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ClusterRoleBinding(in *ClusterRoleBinding) { | ||||
| 	SetDefaults_ClusterRoleBinding(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_ClusterRoleBindingList(in *ClusterRoleBindingList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_ClusterRoleBinding(a) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_RoleBinding(in *RoleBinding) { | ||||
| 	SetDefaults_RoleBinding(in) | ||||
| } | ||||
|  | ||||
| func SetObjectDefaults_RoleBindingList(in *RoleBindingList) { | ||||
| 	for i := range in.Items { | ||||
| 		a := &in.Items[i] | ||||
| 		SetObjectDefaults_RoleBinding(a) | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Clayton Coleman
					Clayton Coleman