mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Use +default for now deprecated AzureDisk volume
This commit is contained in:
		@@ -313,6 +313,7 @@
 | 
			
		||||
        "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "cachingMode": {
 | 
			
		||||
            "default": "ReadWrite",
 | 
			
		||||
            "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
@@ -327,14 +328,17 @@
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "fsType": {
 | 
			
		||||
            "default": "ext4",
 | 
			
		||||
            "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "kind": {
 | 
			
		||||
            "default": "Shared",
 | 
			
		||||
            "description": "kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "readOnly": {
 | 
			
		||||
            "default": false,
 | 
			
		||||
            "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
@@ -1421,6 +1421,7 @@
 | 
			
		||||
        "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "cachingMode": {
 | 
			
		||||
            "default": "ReadWrite",
 | 
			
		||||
            "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
@@ -1435,14 +1436,17 @@
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "fsType": {
 | 
			
		||||
            "default": "ext4",
 | 
			
		||||
            "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "kind": {
 | 
			
		||||
            "default": "Shared",
 | 
			
		||||
            "description": "kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "readOnly": {
 | 
			
		||||
            "default": false,
 | 
			
		||||
            "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
@@ -770,6 +770,7 @@
 | 
			
		||||
        "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "cachingMode": {
 | 
			
		||||
            "default": "ReadWrite",
 | 
			
		||||
            "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
@@ -784,14 +785,17 @@
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "fsType": {
 | 
			
		||||
            "default": "ext4",
 | 
			
		||||
            "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "kind": {
 | 
			
		||||
            "default": "Shared",
 | 
			
		||||
            "description": "kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "readOnly": {
 | 
			
		||||
            "default": false,
 | 
			
		||||
            "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,7 @@
 | 
			
		||||
        "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "cachingMode": {
 | 
			
		||||
            "default": "ReadWrite",
 | 
			
		||||
            "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
@@ -46,14 +47,17 @@
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "fsType": {
 | 
			
		||||
            "default": "ext4",
 | 
			
		||||
            "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "kind": {
 | 
			
		||||
            "default": "Shared",
 | 
			
		||||
            "description": "kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
          },
 | 
			
		||||
          "readOnly": {
 | 
			
		||||
            "default": false,
 | 
			
		||||
            "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										491
									
								
								pkg/apis/apps/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										491
									
								
								pkg/apis/apps/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										253
									
								
								pkg/apis/apps/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										253
									
								
								pkg/apis/apps/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -23,8 +23,9 @@ package v1beta1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1beta1 "k8s.io/api/apps/v1beta1"
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	v1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -40,15 +41,15 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
	SetDefaults_Deployment(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -67,51 +68,66 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -122,16 +138,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -141,9 +157,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -153,9 +169,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -167,19 +183,19 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -190,16 +206,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -209,9 +225,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -221,9 +237,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -235,19 +251,19 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -258,16 +274,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -277,9 +293,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -289,9 +305,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -303,17 +319,17 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_DeploymentList(in *v1beta1.DeploymentList) {
 | 
			
		||||
@@ -325,15 +341,15 @@ func SetObjectDefaults_DeploymentList(in *v1beta1.DeploymentList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
	SetDefaults_StatefulSet(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -352,51 +368,66 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -407,16 +438,16 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -426,9 +457,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -438,9 +469,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -452,19 +483,19 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -475,16 +506,16 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -494,9 +525,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -506,9 +537,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -520,19 +551,19 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -543,16 +574,16 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -562,9 +593,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -574,9 +605,9 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -588,25 +619,25 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	for i := range in.Spec.VolumeClaimTemplates {
 | 
			
		||||
		a := &in.Spec.VolumeClaimTemplates[i]
 | 
			
		||||
		v1.SetDefaults_PersistentVolumeClaim(a)
 | 
			
		||||
		v1.SetDefaults_PersistentVolumeClaimSpec(&a.Spec)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Spec.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Spec.Resources.Requests)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Status.Capacity)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Status.AllocatedResources)
 | 
			
		||||
		corev1.SetDefaults_PersistentVolumeClaim(a)
 | 
			
		||||
		corev1.SetDefaults_PersistentVolumeClaimSpec(&a.Spec)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Spec.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Spec.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Status.Capacity)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Status.AllocatedResources)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										491
									
								
								pkg/apis/apps/v1beta2/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										491
									
								
								pkg/apis/apps/v1beta2/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										241
									
								
								pkg/apis/batch/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										241
									
								
								pkg/apis/batch/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -23,8 +23,9 @@ package v1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1 "k8s.io/api/batch/v1"
 | 
			
		||||
	corev1 "k8s.io/api/core/v1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	apiscorev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -40,15 +41,15 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
	SetDefaults_CronJob(in)
 | 
			
		||||
	corev1.SetDefaults_PodSpec(&in.Spec.JobTemplate.Spec.Template.Spec)
 | 
			
		||||
	apiscorev1.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]
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			apiscorev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			apiscorev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -67,51 +68,66 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			apiscorev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			for j := range a.VolumeSource.DownwardAPI.Items {
 | 
			
		||||
				b := &a.VolumeSource.DownwardAPI.Items[j]
 | 
			
		||||
				if b.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			apiscorev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			corev1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			apiscorev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							apiscorev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					apiscorev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			apiscorev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				apiscorev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				apiscorev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				apiscorev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.JobTemplate.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.JobTemplate.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -122,16 +138,16 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -141,9 +157,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -153,9 +169,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -167,19 +183,19 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.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]
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -190,16 +206,16 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -209,9 +225,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -221,9 +237,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -235,19 +251,19 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.JobTemplate.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.JobTemplate.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		apiscorev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -258,16 +274,16 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -277,9 +293,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -289,9 +305,9 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -303,17 +319,17 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.JobTemplate.Spec.Template.Spec.Overhead)
 | 
			
		||||
	apiscorev1.SetDefaults_ResourceList(&in.Spec.JobTemplate.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_CronJobList(in *v1.CronJobList) {
 | 
			
		||||
@@ -325,15 +341,15 @@ func SetObjectDefaults_CronJobList(in *v1.CronJobList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
	SetDefaults_Job(in)
 | 
			
		||||
	corev1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	apiscorev1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	for i := range in.Spec.Template.Spec.Volumes {
 | 
			
		||||
		a := &in.Spec.Template.Spec.Volumes[i]
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			apiscorev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			apiscorev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -352,51 +368,66 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			apiscorev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			for j := range a.VolumeSource.DownwardAPI.Items {
 | 
			
		||||
				b := &a.VolumeSource.DownwardAPI.Items[j]
 | 
			
		||||
				if b.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			apiscorev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			corev1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			apiscorev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							apiscorev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					apiscorev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			apiscorev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				apiscorev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				apiscorev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				apiscorev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -407,16 +438,16 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -426,9 +457,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -438,9 +469,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -452,19 +483,19 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.Containers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.Containers[i]
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		apiscorev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -475,16 +506,16 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -494,9 +525,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -506,9 +537,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -520,19 +551,19 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		apiscorev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -543,16 +574,16 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					apiscorev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -562,9 +593,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -574,9 +605,9 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			apiscorev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -588,17 +619,17 @@ func SetObjectDefaults_Job(in *v1.Job) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					apiscorev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	apiscorev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_JobList(in *v1.JobList) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										122
									
								
								pkg/apis/batch/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										122
									
								
								pkg/apis/batch/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -23,8 +23,9 @@ package v1beta1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1beta1 "k8s.io/api/batch/v1beta1"
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	v1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -38,15 +39,15 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
	SetDefaults_CronJob(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.JobTemplate.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -65,51 +66,66 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.JobTemplate.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.JobTemplate.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -120,16 +136,16 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -139,9 +155,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -151,9 +167,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -165,19 +181,19 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -188,16 +204,16 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -207,9 +223,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -219,9 +235,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -233,19 +249,19 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.JobTemplate.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.JobTemplate.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -256,16 +272,16 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -275,9 +291,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -287,9 +303,9 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -301,17 +317,17 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.JobTemplate.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.JobTemplate.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_CronJobList(in *v1beta1.CronJobList) {
 | 
			
		||||
 
 | 
			
		||||
@@ -311,24 +311,6 @@ func SetDefaults_PersistentVolumeClaimSpec(obj *v1.PersistentVolumeClaimSpec) {
 | 
			
		||||
		*obj.VolumeMode = v1.PersistentVolumeFilesystem
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
func SetDefaults_AzureDiskVolumeSource(obj *v1.AzureDiskVolumeSource) {
 | 
			
		||||
	if obj.CachingMode == nil {
 | 
			
		||||
		obj.CachingMode = new(v1.AzureDataDiskCachingMode)
 | 
			
		||||
		*obj.CachingMode = v1.AzureDataDiskCachingReadWrite
 | 
			
		||||
	}
 | 
			
		||||
	if obj.Kind == nil {
 | 
			
		||||
		obj.Kind = new(v1.AzureDataDiskKind)
 | 
			
		||||
		*obj.Kind = v1.AzureSharedBlobDisk
 | 
			
		||||
	}
 | 
			
		||||
	if obj.FSType == nil {
 | 
			
		||||
		obj.FSType = new(string)
 | 
			
		||||
		*obj.FSType = "ext4"
 | 
			
		||||
	}
 | 
			
		||||
	if obj.ReadOnly == nil {
 | 
			
		||||
		obj.ReadOnly = new(bool)
 | 
			
		||||
		*obj.ReadOnly = false
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
func SetDefaults_Endpoints(obj *v1.Endpoints) {
 | 
			
		||||
	for i := range obj.Subsets {
 | 
			
		||||
		ss := &obj.Subsets[i]
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										68
									
								
								pkg/apis/core/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										68
									
								
								pkg/apis/core/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -153,7 +153,22 @@ func SetObjectDefaults_PersistentVolume(in *v1.PersistentVolume) {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if in.Spec.PersistentVolumeSource.AzureDisk != nil {
 | 
			
		||||
		SetDefaults_AzureDiskVolumeSource(in.Spec.PersistentVolumeSource.AzureDisk)
 | 
			
		||||
		if in.Spec.PersistentVolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
			ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
			in.Spec.PersistentVolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.PersistentVolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
			var ptrVar1 string = "ext4"
 | 
			
		||||
			in.Spec.PersistentVolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.PersistentVolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
			var ptrVar1 bool = false
 | 
			
		||||
			in.Spec.PersistentVolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.PersistentVolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
			ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
			in.Spec.PersistentVolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if in.Spec.PersistentVolumeSource.ScaleIO != nil {
 | 
			
		||||
		SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
@@ -224,7 +239,22 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
 | 
			
		||||
			SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
@@ -559,7 +589,22 @@ func SetObjectDefaults_PodTemplate(in *v1.PodTemplate) {
 | 
			
		||||
			SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
@@ -845,7 +890,22 @@ func SetObjectDefaults_ReplicationController(in *v1.ReplicationController) {
 | 
			
		||||
				SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
				SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
				if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
					ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
					a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
				}
 | 
			
		||||
				if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
					var ptrVar1 string = "ext4"
 | 
			
		||||
					a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
				}
 | 
			
		||||
				if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
					var ptrVar1 bool = false
 | 
			
		||||
					a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
				}
 | 
			
		||||
				if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
					ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
					a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.Projected != nil {
 | 
			
		||||
				SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										360
									
								
								pkg/apis/extensions/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										360
									
								
								pkg/apis/extensions/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -22,9 +22,10 @@ limitations under the License.
 | 
			
		||||
package v1beta1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	v1beta1 "k8s.io/api/extensions/v1beta1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	v1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -46,15 +47,15 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
	SetDefaults_DaemonSet(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -73,51 +74,66 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -128,16 +144,16 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -147,9 +163,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -159,9 +175,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -173,19 +189,19 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -196,16 +212,16 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -215,9 +231,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -227,9 +243,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -241,19 +257,19 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -264,16 +280,16 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -283,9 +299,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -295,9 +311,9 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -309,17 +325,17 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_DaemonSetList(in *v1beta1.DaemonSetList) {
 | 
			
		||||
@@ -331,15 +347,15 @@ func SetObjectDefaults_DaemonSetList(in *v1beta1.DaemonSetList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
	SetDefaults_Deployment(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -358,51 +374,66 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -413,16 +444,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -432,9 +463,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -444,9 +475,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -458,19 +489,19 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -481,16 +512,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -500,9 +531,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -512,9 +543,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -526,19 +557,19 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -549,16 +580,16 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -568,9 +599,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -580,9 +611,9 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -594,17 +625,17 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_DeploymentList(in *v1beta1.DeploymentList) {
 | 
			
		||||
@@ -646,15 +677,15 @@ func SetObjectDefaults_NetworkPolicyList(in *v1beta1.NetworkPolicyList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
	SetDefaults_ReplicaSet(in)
 | 
			
		||||
	v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
 | 
			
		||||
	corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Volume(a)
 | 
			
		||||
		if a.VolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(a.VolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Secret != nil {
 | 
			
		||||
			v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
			corev1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ISCSI != nil {
 | 
			
		||||
			if a.VolumeSource.ISCSI.ISCSIInterface == "" {
 | 
			
		||||
@@ -673,51 +704,66 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.DownwardAPI != nil {
 | 
			
		||||
			v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
 | 
			
		||||
			corev1.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)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ConfigMap != nil {
 | 
			
		||||
			v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
			corev1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
 | 
			
		||||
			if a.VolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				a.VolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				a.VolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if a.VolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				a.VolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Projected != nil {
 | 
			
		||||
			v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			corev1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
 | 
			
		||||
			for j := range a.VolumeSource.Projected.Sources {
 | 
			
		||||
				b := &a.VolumeSource.Projected.Sources[j]
 | 
			
		||||
				if b.DownwardAPI != nil {
 | 
			
		||||
					for k := range b.DownwardAPI.Items {
 | 
			
		||||
						c := &b.DownwardAPI.Items[k]
 | 
			
		||||
						if c.FieldRef != nil {
 | 
			
		||||
							v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
							corev1.SetDefaults_ObjectFieldSelector(c.FieldRef)
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if b.ServiceAccountToken != nil {
 | 
			
		||||
					v1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
					corev1.SetDefaults_ServiceAccountTokenProjection(b.ServiceAccountToken)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOVolumeSource(a.VolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
		if a.VolumeSource.Ephemeral != nil {
 | 
			
		||||
			if a.VolumeSource.Ephemeral.VolumeClaimTemplate != nil {
 | 
			
		||||
				v1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				v1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
				corev1.SetDefaults_PersistentVolumeClaimSpec(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Limits)
 | 
			
		||||
				corev1.SetDefaults_ResourceList(&a.VolumeSource.Ephemeral.VolumeClaimTemplate.Spec.Resources.Requests)
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.InitContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.InitContainers[i]
 | 
			
		||||
		v1.SetDefaults_Container(a)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -728,16 +774,16 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -747,9 +793,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -759,9 +805,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -773,19 +819,19 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.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)
 | 
			
		||||
		corev1.SetDefaults_Container(a)
 | 
			
		||||
		for j := range a.Ports {
 | 
			
		||||
			b := &a.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -796,16 +842,16 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			b := &a.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.Resources.Requests)
 | 
			
		||||
		if a.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.LivenessProbe)
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -815,9 +861,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.ReadinessProbe)
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -827,9 +873,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.StartupProbe)
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -841,19 +887,19 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
		if a.Lifecycle != nil {
 | 
			
		||||
			if a.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for i := range in.Spec.Template.Spec.EphemeralContainers {
 | 
			
		||||
		a := &in.Spec.Template.Spec.EphemeralContainers[i]
 | 
			
		||||
		v1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		corev1.SetDefaults_EphemeralContainer(a)
 | 
			
		||||
		for j := range a.EphemeralContainerCommon.Ports {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Ports[j]
 | 
			
		||||
			if b.Protocol == "" {
 | 
			
		||||
@@ -864,16 +910,16 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			b := &a.EphemeralContainerCommon.Env[j]
 | 
			
		||||
			if b.ValueFrom != nil {
 | 
			
		||||
				if b.ValueFrom.FieldRef != nil {
 | 
			
		||||
					v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
					corev1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		v1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Limits)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&a.EphemeralContainerCommon.Resources.Requests)
 | 
			
		||||
		if a.EphemeralContainerCommon.LivenessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.LivenessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -883,9 +929,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.ReadinessProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.ReadinessProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -895,9 +941,9 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if a.EphemeralContainerCommon.StartupProbe != nil {
 | 
			
		||||
			v1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			corev1.SetDefaults_Probe(a.EphemeralContainerCommon.StartupProbe)
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet != nil {
 | 
			
		||||
				v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
				corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.StartupProbe.ProbeHandler.HTTPGet)
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil {
 | 
			
		||||
@@ -909,17 +955,17 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
 | 
			
		||||
		if a.EphemeralContainerCommon.Lifecycle != nil {
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PostStart != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PostStart.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if a.EphemeralContainerCommon.Lifecycle.PreStop != nil {
 | 
			
		||||
				if a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet != nil {
 | 
			
		||||
					v1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
					corev1.SetDefaults_HTTPGetAction(a.EphemeralContainerCommon.Lifecycle.PreStop.HTTPGet)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	v1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_ReplicaSetList(in *v1beta1.ReplicaSetList) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										26
									
								
								pkg/apis/storage/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								pkg/apis/storage/v1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -22,9 +22,10 @@ limitations under the License.
 | 
			
		||||
package v1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	corev1 "k8s.io/api/core/v1"
 | 
			
		||||
	v1 "k8s.io/api/storage/v1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	apiscorev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -64,9 +65,9 @@ func SetObjectDefaults_StorageClassList(in *v1.StorageClassList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_VolumeAttachment(in *v1.VolumeAttachment) {
 | 
			
		||||
	if in.Spec.Source.InlineVolumeSpec != nil {
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		apiscorev1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath != nil {
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
			apiscorev1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
 | 
			
		||||
@@ -85,10 +86,25 @@ func SetObjectDefaults_VolumeAttachment(in *v1.VolumeAttachment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk != nil {
 | 
			
		||||
			corev1.SetDefaults_AzureDiskVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk)
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO != nil {
 | 
			
		||||
			corev1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
			apiscorev1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										26
									
								
								pkg/apis/storage/v1alpha1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								pkg/apis/storage/v1alpha1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -22,9 +22,10 @@ limitations under the License.
 | 
			
		||||
package v1alpha1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	v1alpha1 "k8s.io/api/storage/v1alpha1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	v1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -38,9 +39,9 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_VolumeAttachment(in *v1alpha1.VolumeAttachment) {
 | 
			
		||||
	if in.Spec.Source.InlineVolumeSpec != nil {
 | 
			
		||||
		v1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
 | 
			
		||||
@@ -59,10 +60,25 @@ func SetObjectDefaults_VolumeAttachment(in *v1alpha1.VolumeAttachment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk)
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										26
									
								
								pkg/apis/storage/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								pkg/apis/storage/v1beta1/zz_generated.defaults.go
									
									
									
										generated
									
									
									
								
							@@ -22,9 +22,10 @@ limitations under the License.
 | 
			
		||||
package v1beta1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	v1beta1 "k8s.io/api/storage/v1beta1"
 | 
			
		||||
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
			
		||||
	v1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
	corev1 "k8s.io/kubernetes/pkg/apis/core/v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegisterDefaults adds defaulters functions to the given scheme.
 | 
			
		||||
@@ -64,9 +65,9 @@ func SetObjectDefaults_StorageClassList(in *v1beta1.StorageClassList) {
 | 
			
		||||
 | 
			
		||||
func SetObjectDefaults_VolumeAttachment(in *v1beta1.VolumeAttachment) {
 | 
			
		||||
	if in.Spec.Source.InlineVolumeSpec != nil {
 | 
			
		||||
		v1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		corev1.SetDefaults_ResourceList(&in.Spec.Source.InlineVolumeSpec.Capacity)
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath != nil {
 | 
			
		||||
			v1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
			corev1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
 | 
			
		||||
@@ -85,10 +86,25 @@ func SetObjectDefaults_VolumeAttachment(in *v1beta1.VolumeAttachment) {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk != nil {
 | 
			
		||||
			v1.SetDefaults_AzureDiskVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk)
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.CachingMode = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType == nil {
 | 
			
		||||
				var ptrVar1 string = "ext4"
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.FSType = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly == nil {
 | 
			
		||||
				var ptrVar1 bool = false
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.ReadOnly = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
			if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind == nil {
 | 
			
		||||
				ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk)
 | 
			
		||||
				in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.AzureDisk.Kind = &ptrVar1
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO != nil {
 | 
			
		||||
			v1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
			corev1.SetDefaults_ScaleIOPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ScaleIO)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										23
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -22,7 +22,8 @@ limitations under the License.
 | 
			
		||||
package openapi
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
			
		||||
	v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
 | 
			
		||||
	resource "k8s.io/apimachinery/pkg/api/resource"
 | 
			
		||||
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
			
		||||
@@ -19109,6 +19110,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback
 | 
			
		||||
					"cachingMode": {
 | 
			
		||||
						SchemaProps: spec.SchemaProps{
 | 
			
		||||
							Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.\n\nPossible enum values:\n - `\"None\"`\n - `\"ReadOnly\"`\n - `\"ReadWrite\"`",
 | 
			
		||||
							Default:     v1.AzureDataDiskCachingReadWrite,
 | 
			
		||||
							Type:        []string{"string"},
 | 
			
		||||
							Format:      "",
 | 
			
		||||
							Enum:        []interface{}{"None", "ReadOnly", "ReadWrite"},
 | 
			
		||||
@@ -19117,6 +19119,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback
 | 
			
		||||
					"fsType": {
 | 
			
		||||
						SchemaProps: spec.SchemaProps{
 | 
			
		||||
							Description: "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
 | 
			
		||||
							Default:     "ext4",
 | 
			
		||||
							Type:        []string{"string"},
 | 
			
		||||
							Format:      "",
 | 
			
		||||
						},
 | 
			
		||||
@@ -19124,6 +19127,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback
 | 
			
		||||
					"readOnly": {
 | 
			
		||||
						SchemaProps: spec.SchemaProps{
 | 
			
		||||
							Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
 | 
			
		||||
							Default:     false,
 | 
			
		||||
							Type:        []string{"boolean"},
 | 
			
		||||
							Format:      "",
 | 
			
		||||
						},
 | 
			
		||||
@@ -19131,6 +19135,7 @@ func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback
 | 
			
		||||
					"kind": {
 | 
			
		||||
						SchemaProps: spec.SchemaProps{
 | 
			
		||||
							Description: "kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared\n\nPossible enum values:\n - `\"Dedicated\"`\n - `\"Managed\"`\n - `\"Shared\"`",
 | 
			
		||||
							Default:     v1.AzureSharedBlobDisk,
 | 
			
		||||
							Type:        []string{"string"},
 | 
			
		||||
							Format:      "",
 | 
			
		||||
							Enum:        []interface{}{"Dedicated", "Managed", "Shared"},
 | 
			
		||||
@@ -50753,8 +50758,8 @@ func schema_pkg_apis_apiextensions_v1_JSON(ref common.ReferenceCallback) common.
 | 
			
		||||
		Schema: spec.Schema{
 | 
			
		||||
			SchemaProps: spec.SchemaProps{
 | 
			
		||||
				Description: "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.",
 | 
			
		||||
				Type:        v1.JSON{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      v1.JSON{}.OpenAPISchemaFormat(),
 | 
			
		||||
				Type:        apiextensionsv1.JSON{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      apiextensionsv1.JSON{}.OpenAPISchemaFormat(),
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
@@ -51167,8 +51172,8 @@ func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrArray(ref common.Referenc
 | 
			
		||||
		Schema: spec.Schema{
 | 
			
		||||
			SchemaProps: spec.SchemaProps{
 | 
			
		||||
				Description: "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.",
 | 
			
		||||
				Type:        v1.JSONSchemaPropsOrArray{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      v1.JSONSchemaPropsOrArray{}.OpenAPISchemaFormat(),
 | 
			
		||||
				Type:        apiextensionsv1.JSONSchemaPropsOrArray{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      apiextensionsv1.JSONSchemaPropsOrArray{}.OpenAPISchemaFormat(),
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
@@ -51179,8 +51184,8 @@ func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrBool(ref common.Reference
 | 
			
		||||
		Schema: spec.Schema{
 | 
			
		||||
			SchemaProps: spec.SchemaProps{
 | 
			
		||||
				Description: "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.",
 | 
			
		||||
				Type:        v1.JSONSchemaPropsOrBool{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      v1.JSONSchemaPropsOrBool{}.OpenAPISchemaFormat(),
 | 
			
		||||
				Type:        apiextensionsv1.JSONSchemaPropsOrBool{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      apiextensionsv1.JSONSchemaPropsOrBool{}.OpenAPISchemaFormat(),
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
@@ -51191,8 +51196,8 @@ func schema_pkg_apis_apiextensions_v1_JSONSchemaPropsOrStringArray(ref common.Re
 | 
			
		||||
		Schema: spec.Schema{
 | 
			
		||||
			SchemaProps: spec.SchemaProps{
 | 
			
		||||
				Description: "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.",
 | 
			
		||||
				Type:        v1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      v1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaFormat(),
 | 
			
		||||
				Type:        apiextensionsv1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaType(),
 | 
			
		||||
				Format:      apiextensionsv1.JSONSchemaPropsOrStringArray{}.OpenAPISchemaFormat(),
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -126,20 +126,24 @@ message AzureDiskVolumeSource {
 | 
			
		||||
 | 
			
		||||
  // cachingMode is the Host Caching mode: None, Read Only, Read Write.
 | 
			
		||||
  // +optional
 | 
			
		||||
  // +default=ref(AzureDataDiskCachingReadWrite)
 | 
			
		||||
  optional string cachingMode = 3;
 | 
			
		||||
 | 
			
		||||
  // fsType is Filesystem type to mount.
 | 
			
		||||
  // Must be a filesystem type supported by the host operating system.
 | 
			
		||||
  // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
 | 
			
		||||
  // +optional
 | 
			
		||||
  // +default="ext4"
 | 
			
		||||
  optional string fsType = 4;
 | 
			
		||||
 | 
			
		||||
  // readOnly Defaults to false (read/write). ReadOnly here will force
 | 
			
		||||
  // the ReadOnly setting in VolumeMounts.
 | 
			
		||||
  // +optional
 | 
			
		||||
  // +default=false
 | 
			
		||||
  optional bool readOnly = 5;
 | 
			
		||||
 | 
			
		||||
  // kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
 | 
			
		||||
  // +default=ref(AzureSharedBlobDisk)
 | 
			
		||||
  optional string kind = 6;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1625,17 +1625,21 @@ type AzureDiskVolumeSource struct {
 | 
			
		||||
	DataDiskURI string `json:"diskURI" protobuf:"bytes,2,opt,name=diskURI"`
 | 
			
		||||
	// cachingMode is the Host Caching mode: None, Read Only, Read Write.
 | 
			
		||||
	// +optional
 | 
			
		||||
	// +default=ref(AzureDataDiskCachingReadWrite)
 | 
			
		||||
	CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty" protobuf:"bytes,3,opt,name=cachingMode,casttype=AzureDataDiskCachingMode"`
 | 
			
		||||
	// fsType is Filesystem type to mount.
 | 
			
		||||
	// Must be a filesystem type supported by the host operating system.
 | 
			
		||||
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
 | 
			
		||||
	// +optional
 | 
			
		||||
	// +default="ext4"
 | 
			
		||||
	FSType *string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"`
 | 
			
		||||
	// readOnly Defaults to false (read/write). ReadOnly here will force
 | 
			
		||||
	// the ReadOnly setting in VolumeMounts.
 | 
			
		||||
	// +optional
 | 
			
		||||
	// +default=false
 | 
			
		||||
	ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,5,opt,name=readOnly"`
 | 
			
		||||
	// kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
 | 
			
		||||
	// +default=ref(AzureSharedBlobDisk)
 | 
			
		||||
	Kind *AzureDataDiskKind `json:"kind,omitempty" protobuf:"bytes,6,opt,name=kind,casttype=AzureDataDiskKind"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4454,6 +4454,7 @@ var schemaYAML = typed.YAMLObject(`types:
 | 
			
		||||
    - name: cachingMode
 | 
			
		||||
      type:
 | 
			
		||||
        scalar: string
 | 
			
		||||
      default: ReadWrite
 | 
			
		||||
    - name: diskName
 | 
			
		||||
      type:
 | 
			
		||||
        scalar: string
 | 
			
		||||
@@ -4465,12 +4466,15 @@ var schemaYAML = typed.YAMLObject(`types:
 | 
			
		||||
    - name: fsType
 | 
			
		||||
      type:
 | 
			
		||||
        scalar: string
 | 
			
		||||
      default: ext4
 | 
			
		||||
    - name: kind
 | 
			
		||||
      type:
 | 
			
		||||
        scalar: string
 | 
			
		||||
      default: Shared
 | 
			
		||||
    - name: readOnly
 | 
			
		||||
      type:
 | 
			
		||||
        scalar: boolean
 | 
			
		||||
      default: false
 | 
			
		||||
- name: io.k8s.api.core.v1.AzureFilePersistentVolumeSource
 | 
			
		||||
  map:
 | 
			
		||||
    fields:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user