diff --git a/cmd/kubernetes-discovery/pkg/apis/apiregistration/v1alpha1/zz_generated.deepcopy.go b/cmd/kubernetes-discovery/pkg/apis/apiregistration/v1alpha1/zz_generated.deepcopy.go index 0230407ae97f4..02160d5e81a84 100644 --- a/cmd/kubernetes-discovery/pkg/apis/apiregistration/v1alpha1/zz_generated.deepcopy.go +++ b/cmd/kubernetes-discovery/pkg/apis/apiregistration/v1alpha1/zz_generated.deepcopy.go @@ -47,14 +47,13 @@ func DeepCopy_v1alpha1_APIService(in interface{}, out interface{}, c *conversion { in := in.(*APIService) out := out.(*APIService) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1alpha1_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -63,8 +62,7 @@ func DeepCopy_v1alpha1_APIServiceList(in interface{}, out interface{}, c *conver { in := in.(*APIServiceList) out := out.(*APIServiceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]APIService, len(*in)) @@ -73,8 +71,6 @@ func DeepCopy_v1alpha1_APIServiceList(in interface{}, out interface{}, c *conver return err } } - } else { - out.Items = nil } return nil } @@ -84,18 +80,12 @@ func DeepCopy_v1alpha1_APIServiceSpec(in interface{}, out interface{}, c *conver { in := in.(*APIServiceSpec) out := out.(*APIServiceSpec) - out.Service = in.Service - out.Group = in.Group - out.Version = in.Version - out.InsecureSkipTLSVerify = in.InsecureSkipTLSVerify + *out = *in if in.CABundle != nil { in, out := &in.CABundle, &out.CABundle *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.CABundle = nil } - out.Priority = in.Priority return nil } } @@ -104,8 +94,7 @@ func DeepCopy_v1alpha1_APIServiceStatus(in interface{}, out interface{}, c *conv { in := in.(*APIServiceStatus) out := out.(*APIServiceStatus) - _ = in - _ = out + *out = *in return nil } } @@ -114,8 +103,7 @@ func DeepCopy_v1alpha1_ServiceReference(in interface{}, out interface{}, c *conv { in := in.(*ServiceReference) out := out.(*ServiceReference) - out.Namespace = in.Namespace - out.Name = in.Name + *out = *in return nil } } diff --git a/cmd/kubernetes-discovery/pkg/apis/apiregistration/zz_generated.deepcopy.go b/cmd/kubernetes-discovery/pkg/apis/apiregistration/zz_generated.deepcopy.go index 2808fd0c0e3e0..f2cbc7409f028 100644 --- a/cmd/kubernetes-discovery/pkg/apis/apiregistration/zz_generated.deepcopy.go +++ b/cmd/kubernetes-discovery/pkg/apis/apiregistration/zz_generated.deepcopy.go @@ -47,14 +47,13 @@ func DeepCopy_apiregistration_APIService(in interface{}, out interface{}, c *con { in := in.(*APIService) out := out.(*APIService) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_apiregistration_APIServiceSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -63,8 +62,7 @@ func DeepCopy_apiregistration_APIServiceList(in interface{}, out interface{}, c { in := in.(*APIServiceList) out := out.(*APIServiceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]APIService, len(*in)) @@ -73,8 +71,6 @@ func DeepCopy_apiregistration_APIServiceList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -84,18 +80,12 @@ func DeepCopy_apiregistration_APIServiceSpec(in interface{}, out interface{}, c { in := in.(*APIServiceSpec) out := out.(*APIServiceSpec) - out.Service = in.Service - out.Group = in.Group - out.Version = in.Version - out.InsecureSkipTLSVerify = in.InsecureSkipTLSVerify + *out = *in if in.CABundle != nil { in, out := &in.CABundle, &out.CABundle *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.CABundle = nil } - out.Priority = in.Priority return nil } } @@ -104,8 +94,7 @@ func DeepCopy_apiregistration_APIServiceStatus(in interface{}, out interface{}, { in := in.(*APIServiceStatus) out := out.(*APIServiceStatus) - _ = in - _ = out + *out = *in return nil } } @@ -114,8 +103,7 @@ func DeepCopy_apiregistration_ServiceReference(in interface{}, out interface{}, { in := in.(*ServiceReference) out := out.(*ServiceReference) - out.Namespace = in.Namespace - out.Name = in.Name + *out = *in return nil } } diff --git a/cmd/libs/go2idl/openapi-gen/generators/openapi_test.go b/cmd/libs/go2idl/openapi-gen/generators/openapi_test.go index f4939f31e8e5e..3ae467ffa184a 100644 --- a/cmd/libs/go2idl/openapi-gen/generators/openapi_test.go +++ b/cmd/libs/go2idl/openapi-gen/generators/openapi_test.go @@ -33,7 +33,7 @@ import ( func construct(t *testing.T, files map[string]string, testNamer namer.Namer) (*parser.Builder, types.Universe, []*types.Type) { b := parser.New() for name, src := range files { - if err := b.AddFile(filepath.Dir(name), name, []byte(src)); err != nil { + if err := b.AddFileForTest(filepath.Dir(name), name, []byte(src)); err != nil { t.Fatal(err) } } diff --git a/federation/apis/federation/v1beta1/BUILD b/federation/apis/federation/v1beta1/BUILD index b6811578a9ca5..714a6fce70845 100644 --- a/federation/apis/federation/v1beta1/BUILD +++ b/federation/apis/federation/v1beta1/BUILD @@ -20,6 +20,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/federation/apis/federation/v1beta1/zz_generated.deepcopy.go b/federation/apis/federation/v1beta1/zz_generated.deepcopy.go index d85fc68d59df4..6b35908d2f83d 100644 --- a/federation/apis/federation/v1beta1/zz_generated.deepcopy.go +++ b/federation/apis/federation/v1beta1/zz_generated.deepcopy.go @@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Clo { in := in.(*Cluster) out := out.(*Cluster) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -66,12 +66,9 @@ func DeepCopy_v1beta1_ClusterCondition(in interface{}, out interface{}, c *conve { in := in.(*ClusterCondition) out := out.(*ClusterCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -80,8 +77,7 @@ func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion { in := in.(*ClusterList) out := out.(*ClusterList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Cluster, len(*in)) @@ -90,8 +86,6 @@ func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion return err } } - } else { - out.Items = nil } return nil } @@ -101,21 +95,18 @@ func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion { in := in.(*ClusterSpec) out := out.(*ClusterSpec) + *out = *in if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs *out = make([]ServerAddressByClientCIDR, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ServerAddressByClientCIDRs = nil } if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(v1.LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } return nil } @@ -125,6 +116,7 @@ func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversi { in := in.(*ClusterStatus) out := out.(*ClusterStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ClusterCondition, len(*in)) @@ -133,17 +125,12 @@ func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversi return err } } - } else { - out.Conditions = nil } if in.Zones != nil { in, out := &in.Zones, &out.Zones *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Zones = nil } - out.Region = in.Region return nil } } @@ -152,8 +139,7 @@ func DeepCopy_v1beta1_ServerAddressByClientCIDR(in interface{}, out interface{}, { in := in.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR) - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress + *out = *in return nil } } diff --git a/federation/apis/federation/v1beta1/zz_generated.defaults.go b/federation/apis/federation/v1beta1/zz_generated.defaults.go new file mode 100644 index 0000000000000..7cd6967ccf10a --- /dev/null +++ b/federation/apis/federation/v1beta1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/federation/apis/federation/zz_generated.deepcopy.go b/federation/apis/federation/zz_generated.deepcopy.go index 8a0ec8444bcf5..16f4ba90cc8fc 100644 --- a/federation/apis/federation/zz_generated.deepcopy.go +++ b/federation/apis/federation/zz_generated.deepcopy.go @@ -50,7 +50,7 @@ func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion. { in := in.(*Cluster) out := out.(*Cluster) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -68,12 +68,9 @@ func DeepCopy_federation_ClusterCondition(in interface{}, out interface{}, c *co { in := in.(*ClusterCondition) out := out.(*ClusterCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -82,8 +79,7 @@ func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *convers { in := in.(*ClusterList) out := out.(*ClusterList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Cluster, len(*in)) @@ -92,8 +88,6 @@ func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -103,15 +97,12 @@ func DeepCopy_federation_ClusterReplicaSetPreferences(in interface{}, out interf { in := in.(*ClusterReplicaSetPreferences) out := out.(*ClusterReplicaSetPreferences) - out.MinReplicas = in.MinReplicas + *out = *in if in.MaxReplicas != nil { in, out := &in.MaxReplicas, &out.MaxReplicas *out = new(int64) **out = **in - } else { - out.MaxReplicas = nil } - out.Weight = in.Weight return nil } } @@ -120,21 +111,18 @@ func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *convers { in := in.(*ClusterSpec) out := out.(*ClusterSpec) + *out = *in if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs *out = make([]ServerAddressByClientCIDR, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ServerAddressByClientCIDRs = nil } if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(api.LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } return nil } @@ -144,6 +132,7 @@ func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conve { in := in.(*ClusterStatus) out := out.(*ClusterStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ClusterCondition, len(*in)) @@ -152,17 +141,12 @@ func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conve return err } } - } else { - out.Conditions = nil } if in.Zones != nil { in, out := &in.Zones, &out.Zones *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Zones = nil } - out.Region = in.Region return nil } } @@ -171,7 +155,7 @@ func DeepCopy_federation_FederatedReplicaSetPreferences(in interface{}, out inte { in := in.(*FederatedReplicaSetPreferences) out := out.(*FederatedReplicaSetPreferences) - out.Rebalance = in.Rebalance + *out = *in if in.Clusters != nil { in, out := &in.Clusters, &out.Clusters *out = make(map[string]ClusterReplicaSetPreferences) @@ -182,8 +166,6 @@ func DeepCopy_federation_FederatedReplicaSetPreferences(in interface{}, out inte } (*out)[key] = *newVal } - } else { - out.Clusters = nil } return nil } @@ -193,8 +175,7 @@ func DeepCopy_federation_ServerAddressByClientCIDR(in interface{}, out interface { in := in.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR) - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress + *out = *in return nil } } diff --git a/pkg/api/v1/zz_generated.deepcopy.go b/pkg/api/v1/zz_generated.deepcopy.go index 8525468f091e7..ae0f1476a8629 100644 --- a/pkg/api/v1/zz_generated.deepcopy.go +++ b/pkg/api/v1/zz_generated.deepcopy.go @@ -201,10 +201,7 @@ func DeepCopy_v1_AWSElasticBlockStoreVolumeSource(in interface{}, out interface{ { in := in.(*AWSElasticBlockStoreVolumeSource) out := out.(*AWSElasticBlockStoreVolumeSource) - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -213,14 +210,13 @@ func DeepCopy_v1_Affinity(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Affinity) out := out.(*Affinity) + *out = *in if in.NodeAffinity != nil { in, out := &in.NodeAffinity, &out.NodeAffinity *out = new(NodeAffinity) if err := DeepCopy_v1_NodeAffinity(*in, *out, c); err != nil { return err } - } else { - out.NodeAffinity = nil } if in.PodAffinity != nil { in, out := &in.PodAffinity, &out.PodAffinity @@ -228,8 +224,6 @@ func DeepCopy_v1_Affinity(in interface{}, out interface{}, c *conversion.Cloner) if err := DeepCopy_v1_PodAffinity(*in, *out, c); err != nil { return err } - } else { - out.PodAffinity = nil } if in.PodAntiAffinity != nil { in, out := &in.PodAntiAffinity, &out.PodAntiAffinity @@ -237,8 +231,6 @@ func DeepCopy_v1_Affinity(in interface{}, out interface{}, c *conversion.Cloner) if err := DeepCopy_v1_PodAntiAffinity(*in, *out, c); err != nil { return err } - } else { - out.PodAntiAffinity = nil } return nil } @@ -248,8 +240,7 @@ func DeepCopy_v1_AttachedVolume(in interface{}, out interface{}, c *conversion.C { in := in.(*AttachedVolume) out := out.(*AttachedVolume) - out.Name = in.Name - out.DevicePath = in.DevicePath + *out = *in return nil } } @@ -258,6 +249,7 @@ func DeepCopy_v1_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*AvoidPods) out := out.(*AvoidPods) + *out = *in if in.PreferAvoidPods != nil { in, out := &in.PreferAvoidPods, &out.PreferAvoidPods *out = make([]PreferAvoidPodsEntry, len(*in)) @@ -266,8 +258,6 @@ func DeepCopy_v1_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.PreferAvoidPods = nil } return nil } @@ -277,28 +267,21 @@ func DeepCopy_v1_AzureDiskVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*AzureDiskVolumeSource) out := out.(*AzureDiskVolumeSource) - out.DiskName = in.DiskName - out.DataDiskURI = in.DataDiskURI + *out = *in if in.CachingMode != nil { in, out := &in.CachingMode, &out.CachingMode *out = new(AzureDataDiskCachingMode) **out = **in - } else { - out.CachingMode = nil } if in.FSType != nil { in, out := &in.FSType, &out.FSType *out = new(string) **out = **in - } else { - out.FSType = nil } if in.ReadOnly != nil { in, out := &in.ReadOnly, &out.ReadOnly *out = new(bool) **out = **in - } else { - out.ReadOnly = nil } return nil } @@ -308,9 +291,7 @@ func DeepCopy_v1_AzureFileVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*AzureFileVolumeSource) out := out.(*AzureFileVolumeSource) - out.SecretName = in.SecretName - out.ShareName = in.ShareName - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -319,11 +300,10 @@ func DeepCopy_v1_Binding(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Binding) out := out.(*Binding) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Target = in.Target return nil } } @@ -332,14 +312,13 @@ func DeepCopy_v1_Capabilities(in interface{}, out interface{}, c *conversion.Clo { in := in.(*Capabilities) out := out.(*Capabilities) + *out = *in if in.Add != nil { in, out := &in.Add, &out.Add *out = make([]Capability, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Add = nil } if in.Drop != nil { in, out := &in.Drop, &out.Drop @@ -347,8 +326,6 @@ func DeepCopy_v1_Capabilities(in interface{}, out interface{}, c *conversion.Clo for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Drop = nil } return nil } @@ -358,24 +335,17 @@ func DeepCopy_v1_CephFSVolumeSource(in interface{}, out interface{}, c *conversi { in := in.(*CephFSVolumeSource) out := out.(*CephFSVolumeSource) + *out = *in if in.Monitors != nil { in, out := &in.Monitors, &out.Monitors *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Monitors = nil } - out.Path = in.Path - out.User = in.User - out.SecretFile = in.SecretFile if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly return nil } } @@ -384,9 +354,7 @@ func DeepCopy_v1_CinderVolumeSource(in interface{}, out interface{}, c *conversi { in := in.(*CinderVolumeSource) out := out.(*CinderVolumeSource) - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -395,10 +363,7 @@ func DeepCopy_v1_ComponentCondition(in interface{}, out interface{}, c *conversi { in := in.(*ComponentCondition) out := out.(*ComponentCondition) - out.Type = in.Type - out.Status = in.Status - out.Message = in.Message - out.Error = in.Error + *out = *in return nil } } @@ -407,7 +372,7 @@ func DeepCopy_v1_ComponentStatus(in interface{}, out interface{}, c *conversion. { in := in.(*ComponentStatus) out := out.(*ComponentStatus) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -417,8 +382,6 @@ func DeepCopy_v1_ComponentStatus(in interface{}, out interface{}, c *conversion. for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Conditions = nil } return nil } @@ -428,8 +391,7 @@ func DeepCopy_v1_ComponentStatusList(in interface{}, out interface{}, c *convers { in := in.(*ComponentStatusList) out := out.(*ComponentStatusList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ComponentStatus, len(*in)) @@ -438,8 +400,6 @@ func DeepCopy_v1_ComponentStatusList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -449,7 +409,7 @@ func DeepCopy_v1_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*ConfigMap) out := out.(*ConfigMap) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -459,8 +419,6 @@ func DeepCopy_v1_ConfigMap(in interface{}, out interface{}, c *conversion.Cloner for key, val := range *in { (*out)[key] = val } - } else { - out.Data = nil } return nil } @@ -470,7 +428,7 @@ func DeepCopy_v1_ConfigMapEnvSource(in interface{}, out interface{}, c *conversi { in := in.(*ConfigMapEnvSource) out := out.(*ConfigMapEnvSource) - out.LocalObjectReference = in.LocalObjectReference + *out = *in return nil } } @@ -479,8 +437,7 @@ func DeepCopy_v1_ConfigMapKeySelector(in interface{}, out interface{}, c *conver { in := in.(*ConfigMapKeySelector) out := out.(*ConfigMapKeySelector) - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key + *out = *in return nil } } @@ -489,8 +446,7 @@ func DeepCopy_v1_ConfigMapList(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ConfigMapList) out := out.(*ConfigMapList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ConfigMap, len(*in)) @@ -499,8 +455,6 @@ func DeepCopy_v1_ConfigMapList(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.Items = nil } return nil } @@ -510,7 +464,7 @@ func DeepCopy_v1_ConfigMapVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*ConfigMapVolumeSource) out := out.(*ConfigMapVolumeSource) - out.LocalObjectReference = in.LocalObjectReference + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) @@ -519,15 +473,11 @@ func DeepCopy_v1_ConfigMapVolumeSource(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -537,31 +487,23 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Container) out := out.(*Container) - out.Name = in.Name - out.Image = in.Image + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } if in.Args != nil { in, out := &in.Args, &out.Args *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Args = nil } - out.WorkingDir = in.WorkingDir if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]ContainerPort, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } if in.EnvFrom != nil { in, out := &in.EnvFrom, &out.EnvFrom @@ -571,8 +513,6 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.EnvFrom = nil } if in.Env != nil { in, out := &in.Env, &out.Env @@ -582,8 +522,6 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Env = nil } if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { return err @@ -594,8 +532,6 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumeMounts = nil } if in.LivenessProbe != nil { in, out := &in.LivenessProbe, &out.LivenessProbe @@ -603,8 +539,6 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { return err } - } else { - out.LivenessProbe = nil } if in.ReadinessProbe != nil { in, out := &in.ReadinessProbe, &out.ReadinessProbe @@ -612,8 +546,6 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_v1_Probe(*in, *out, c); err != nil { return err } - } else { - out.ReadinessProbe = nil } if in.Lifecycle != nil { in, out := &in.Lifecycle, &out.Lifecycle @@ -621,23 +553,14 @@ func DeepCopy_v1_Container(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_v1_Lifecycle(*in, *out, c); err != nil { return err } - } else { - out.Lifecycle = nil } - out.TerminationMessagePath = in.TerminationMessagePath - out.ImagePullPolicy = in.ImagePullPolicy if in.SecurityContext != nil { in, out := &in.SecurityContext, &out.SecurityContext *out = new(SecurityContext) if err := DeepCopy_v1_SecurityContext(*in, *out, c); err != nil { return err } - } else { - out.SecurityContext = nil } - out.Stdin = in.Stdin - out.StdinOnce = in.StdinOnce - out.TTY = in.TTY return nil } } @@ -646,14 +569,12 @@ func DeepCopy_v1_ContainerImage(in interface{}, out interface{}, c *conversion.C { in := in.(*ContainerImage) out := out.(*ContainerImage) + *out = *in if in.Names != nil { in, out := &in.Names, &out.Names *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Names = nil } - out.SizeBytes = in.SizeBytes return nil } } @@ -662,11 +583,7 @@ func DeepCopy_v1_ContainerPort(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ContainerPort) out := out.(*ContainerPort) - out.Name = in.Name - out.HostPort = in.HostPort - out.ContainerPort = in.ContainerPort - out.Protocol = in.Protocol - out.HostIP = in.HostIP + *out = *in return nil } } @@ -675,12 +592,11 @@ func DeepCopy_v1_ContainerState(in interface{}, out interface{}, c *conversion.C { in := in.(*ContainerState) out := out.(*ContainerState) + *out = *in if in.Waiting != nil { in, out := &in.Waiting, &out.Waiting *out = new(ContainerStateWaiting) **out = **in - } else { - out.Waiting = nil } if in.Running != nil { in, out := &in.Running, &out.Running @@ -688,8 +604,6 @@ func DeepCopy_v1_ContainerState(in interface{}, out interface{}, c *conversion.C if err := DeepCopy_v1_ContainerStateRunning(*in, *out, c); err != nil { return err } - } else { - out.Running = nil } if in.Terminated != nil { in, out := &in.Terminated, &out.Terminated @@ -697,8 +611,6 @@ func DeepCopy_v1_ContainerState(in interface{}, out interface{}, c *conversion.C if err := DeepCopy_v1_ContainerStateTerminated(*in, *out, c); err != nil { return err } - } else { - out.Terminated = nil } return nil } @@ -708,6 +620,7 @@ func DeepCopy_v1_ContainerStateRunning(in interface{}, out interface{}, c *conve { in := in.(*ContainerStateRunning) out := out.(*ContainerStateRunning) + *out = *in out.StartedAt = in.StartedAt.DeepCopy() return nil } @@ -717,13 +630,9 @@ func DeepCopy_v1_ContainerStateTerminated(in interface{}, out interface{}, c *co { in := in.(*ContainerStateTerminated) out := out.(*ContainerStateTerminated) - out.ExitCode = in.ExitCode - out.Signal = in.Signal - out.Reason = in.Reason - out.Message = in.Message + *out = *in out.StartedAt = in.StartedAt.DeepCopy() out.FinishedAt = in.FinishedAt.DeepCopy() - out.ContainerID = in.ContainerID return nil } } @@ -732,8 +641,7 @@ func DeepCopy_v1_ContainerStateWaiting(in interface{}, out interface{}, c *conve { in := in.(*ContainerStateWaiting) out := out.(*ContainerStateWaiting) - out.Reason = in.Reason - out.Message = in.Message + *out = *in return nil } } @@ -742,18 +650,13 @@ func DeepCopy_v1_ContainerStatus(in interface{}, out interface{}, c *conversion. { in := in.(*ContainerStatus) out := out.(*ContainerStatus) - out.Name = in.Name + *out = *in if err := DeepCopy_v1_ContainerState(&in.State, &out.State, c); err != nil { return err } if err := DeepCopy_v1_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { return err } - out.Ready = in.Ready - out.RestartCount = in.RestartCount - out.Image = in.Image - out.ImageID = in.ImageID - out.ContainerID = in.ContainerID return nil } } @@ -762,7 +665,7 @@ func DeepCopy_v1_DaemonEndpoint(in interface{}, out interface{}, c *conversion.C { in := in.(*DaemonEndpoint) out := out.(*DaemonEndpoint) - out.Port = in.Port + *out = *in return nil } } @@ -771,13 +674,11 @@ func DeepCopy_v1_DeleteOptions(in interface{}, out interface{}, c *conversion.Cl { in := in.(*DeleteOptions) out := out.(*DeleteOptions) - out.TypeMeta = in.TypeMeta + *out = *in if in.GracePeriodSeconds != nil { in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds *out = new(int64) **out = **in - } else { - out.GracePeriodSeconds = nil } if in.Preconditions != nil { in, out := &in.Preconditions, &out.Preconditions @@ -785,15 +686,11 @@ func DeepCopy_v1_DeleteOptions(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_v1_Preconditions(*in, *out, c); err != nil { return err } - } else { - out.Preconditions = nil } if in.OrphanDependents != nil { in, out := &in.OrphanDependents, &out.OrphanDependents *out = new(bool) **out = **in - } else { - out.OrphanDependents = nil } return nil } @@ -803,13 +700,11 @@ func DeepCopy_v1_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conve { in := in.(*DownwardAPIVolumeFile) out := out.(*DownwardAPIVolumeFile) - out.Path = in.Path + *out = *in if in.FieldRef != nil { in, out := &in.FieldRef, &out.FieldRef *out = new(ObjectFieldSelector) **out = **in - } else { - out.FieldRef = nil } if in.ResourceFieldRef != nil { in, out := &in.ResourceFieldRef, &out.ResourceFieldRef @@ -817,15 +712,11 @@ func DeepCopy_v1_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conve if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { return err } - } else { - out.ResourceFieldRef = nil } if in.Mode != nil { in, out := &in.Mode, &out.Mode *out = new(int32) **out = **in - } else { - out.Mode = nil } return nil } @@ -835,6 +726,7 @@ func DeepCopy_v1_DownwardAPIVolumeSource(in interface{}, out interface{}, c *con { in := in.(*DownwardAPIVolumeSource) out := out.(*DownwardAPIVolumeSource) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DownwardAPIVolumeFile, len(*in)) @@ -843,15 +735,11 @@ func DeepCopy_v1_DownwardAPIVolumeSource(in interface{}, out interface{}, c *con return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -861,7 +749,7 @@ func DeepCopy_v1_EmptyDirVolumeSource(in interface{}, out interface{}, c *conver { in := in.(*EmptyDirVolumeSource) out := out.(*EmptyDirVolumeSource) - out.Medium = in.Medium + *out = *in return nil } } @@ -870,21 +758,16 @@ func DeepCopy_v1_EndpointAddress(in interface{}, out interface{}, c *conversion. { in := in.(*EndpointAddress) out := out.(*EndpointAddress) - out.IP = in.IP - out.Hostname = in.Hostname + *out = *in if in.NodeName != nil { in, out := &in.NodeName, &out.NodeName *out = new(string) **out = **in - } else { - out.NodeName = nil } if in.TargetRef != nil { in, out := &in.TargetRef, &out.TargetRef *out = new(ObjectReference) **out = **in - } else { - out.TargetRef = nil } return nil } @@ -894,9 +777,7 @@ func DeepCopy_v1_EndpointPort(in interface{}, out interface{}, c *conversion.Clo { in := in.(*EndpointPort) out := out.(*EndpointPort) - out.Name = in.Name - out.Port = in.Port - out.Protocol = in.Protocol + *out = *in return nil } } @@ -905,6 +786,7 @@ func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.C { in := in.(*EndpointSubset) out := out.(*EndpointSubset) + *out = *in if in.Addresses != nil { in, out := &in.Addresses, &out.Addresses *out = make([]EndpointAddress, len(*in)) @@ -913,8 +795,6 @@ func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Addresses = nil } if in.NotReadyAddresses != nil { in, out := &in.NotReadyAddresses, &out.NotReadyAddresses @@ -924,8 +804,6 @@ func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.NotReadyAddresses = nil } if in.Ports != nil { in, out := &in.Ports, &out.Ports @@ -933,8 +811,6 @@ func DeepCopy_v1_EndpointSubset(in interface{}, out interface{}, c *conversion.C for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } return nil } @@ -944,7 +820,7 @@ func DeepCopy_v1_Endpoints(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Endpoints) out := out.(*Endpoints) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -956,8 +832,6 @@ func DeepCopy_v1_Endpoints(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Subsets = nil } return nil } @@ -967,8 +841,7 @@ func DeepCopy_v1_EndpointsList(in interface{}, out interface{}, c *conversion.Cl { in := in.(*EndpointsList) out := out.(*EndpointsList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Endpoints, len(*in)) @@ -977,8 +850,6 @@ func DeepCopy_v1_EndpointsList(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.Items = nil } return nil } @@ -988,13 +859,11 @@ func DeepCopy_v1_EnvFromSource(in interface{}, out interface{}, c *conversion.Cl { in := in.(*EnvFromSource) out := out.(*EnvFromSource) - out.Prefix = in.Prefix + *out = *in if in.ConfigMapRef != nil { in, out := &in.ConfigMapRef, &out.ConfigMapRef *out = new(ConfigMapEnvSource) **out = **in - } else { - out.ConfigMapRef = nil } return nil } @@ -1004,16 +873,13 @@ func DeepCopy_v1_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*EnvVar) out := out.(*EnvVar) - out.Name = in.Name - out.Value = in.Value + *out = *in if in.ValueFrom != nil { in, out := &in.ValueFrom, &out.ValueFrom *out = new(EnvVarSource) if err := DeepCopy_v1_EnvVarSource(*in, *out, c); err != nil { return err } - } else { - out.ValueFrom = nil } return nil } @@ -1023,12 +889,11 @@ func DeepCopy_v1_EnvVarSource(in interface{}, out interface{}, c *conversion.Clo { in := in.(*EnvVarSource) out := out.(*EnvVarSource) + *out = *in if in.FieldRef != nil { in, out := &in.FieldRef, &out.FieldRef *out = new(ObjectFieldSelector) **out = **in - } else { - out.FieldRef = nil } if in.ResourceFieldRef != nil { in, out := &in.ResourceFieldRef, &out.ResourceFieldRef @@ -1036,22 +901,16 @@ func DeepCopy_v1_EnvVarSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_ResourceFieldSelector(*in, *out, c); err != nil { return err } - } else { - out.ResourceFieldRef = nil } if in.ConfigMapKeyRef != nil { in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef *out = new(ConfigMapKeySelector) **out = **in - } else { - out.ConfigMapKeyRef = nil } if in.SecretKeyRef != nil { in, out := &in.SecretKeyRef, &out.SecretKeyRef *out = new(SecretKeySelector) **out = **in - } else { - out.SecretKeyRef = nil } return nil } @@ -1061,18 +920,12 @@ func DeepCopy_v1_Event(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Event) out := out.(*Event) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.InvolvedObject = in.InvolvedObject - out.Reason = in.Reason - out.Message = in.Message - out.Source = in.Source out.FirstTimestamp = in.FirstTimestamp.DeepCopy() out.LastTimestamp = in.LastTimestamp.DeepCopy() - out.Count = in.Count - out.Type = in.Type return nil } } @@ -1081,8 +934,7 @@ func DeepCopy_v1_EventList(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*EventList) out := out.(*EventList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Event, len(*in)) @@ -1091,8 +943,6 @@ func DeepCopy_v1_EventList(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Items = nil } return nil } @@ -1102,8 +952,7 @@ func DeepCopy_v1_EventSource(in interface{}, out interface{}, c *conversion.Clon { in := in.(*EventSource) out := out.(*EventSource) - out.Component = in.Component - out.Host = in.Host + *out = *in return nil } } @@ -1112,12 +961,11 @@ func DeepCopy_v1_ExecAction(in interface{}, out interface{}, c *conversion.Clone { in := in.(*ExecAction) out := out.(*ExecAction) + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } return nil } @@ -1127,22 +975,17 @@ func DeepCopy_v1_FCVolumeSource(in interface{}, out interface{}, c *conversion.C { in := in.(*FCVolumeSource) out := out.(*FCVolumeSource) + *out = *in if in.TargetWWNs != nil { in, out := &in.TargetWWNs, &out.TargetWWNs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.TargetWWNs = nil } if in.Lun != nil { in, out := &in.Lun, &out.Lun *out = new(int32) **out = **in - } else { - out.Lun = nil } - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly return nil } } @@ -1151,24 +994,18 @@ func DeepCopy_v1_FlexVolumeSource(in interface{}, out interface{}, c *conversion { in := in.(*FlexVolumeSource) out := out.(*FlexVolumeSource) - out.Driver = in.Driver - out.FSType = in.FSType + *out = *in if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly if in.Options != nil { in, out := &in.Options, &out.Options *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Options = nil } return nil } @@ -1178,8 +1015,7 @@ func DeepCopy_v1_FlockerVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*FlockerVolumeSource) out := out.(*FlockerVolumeSource) - out.DatasetName = in.DatasetName - out.DatasetUUID = in.DatasetUUID + *out = *in return nil } } @@ -1188,10 +1024,7 @@ func DeepCopy_v1_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, { in := in.(*GCEPersistentDiskVolumeSource) out := out.(*GCEPersistentDiskVolumeSource) - out.PDName = in.PDName - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1200,9 +1033,7 @@ func DeepCopy_v1_GitRepoVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*GitRepoVolumeSource) out := out.(*GitRepoVolumeSource) - out.Repository = in.Repository - out.Revision = in.Revision - out.Directory = in.Directory + *out = *in return nil } } @@ -1211,9 +1042,7 @@ func DeepCopy_v1_GlusterfsVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*GlusterfsVolumeSource) out := out.(*GlusterfsVolumeSource) - out.EndpointsName = in.EndpointsName - out.Path = in.Path - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1222,18 +1051,13 @@ func DeepCopy_v1_HTTPGetAction(in interface{}, out interface{}, c *conversion.Cl { in := in.(*HTTPGetAction) out := out.(*HTTPGetAction) - out.Path = in.Path - out.Port = in.Port - out.Host = in.Host - out.Scheme = in.Scheme + *out = *in if in.HTTPHeaders != nil { in, out := &in.HTTPHeaders, &out.HTTPHeaders *out = make([]HTTPHeader, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.HTTPHeaders = nil } return nil } @@ -1243,8 +1067,7 @@ func DeepCopy_v1_HTTPHeader(in interface{}, out interface{}, c *conversion.Clone { in := in.(*HTTPHeader) out := out.(*HTTPHeader) - out.Name = in.Name - out.Value = in.Value + *out = *in return nil } } @@ -1253,14 +1076,13 @@ func DeepCopy_v1_Handler(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Handler) out := out.(*Handler) + *out = *in if in.Exec != nil { in, out := &in.Exec, &out.Exec *out = new(ExecAction) if err := DeepCopy_v1_ExecAction(*in, *out, c); err != nil { return err } - } else { - out.Exec = nil } if in.HTTPGet != nil { in, out := &in.HTTPGet, &out.HTTPGet @@ -1268,15 +1090,11 @@ func DeepCopy_v1_Handler(in interface{}, out interface{}, c *conversion.Cloner) if err := DeepCopy_v1_HTTPGetAction(*in, *out, c); err != nil { return err } - } else { - out.HTTPGet = nil } if in.TCPSocket != nil { in, out := &in.TCPSocket, &out.TCPSocket *out = new(TCPSocketAction) **out = **in - } else { - out.TCPSocket = nil } return nil } @@ -1286,7 +1104,7 @@ func DeepCopy_v1_HostPathVolumeSource(in interface{}, out interface{}, c *conver { in := in.(*HostPathVolumeSource) out := out.(*HostPathVolumeSource) - out.Path = in.Path + *out = *in return nil } } @@ -1295,12 +1113,7 @@ func DeepCopy_v1_ISCSIVolumeSource(in interface{}, out interface{}, c *conversio { in := in.(*ISCSIVolumeSource) out := out.(*ISCSIVolumeSource) - out.TargetPortal = in.TargetPortal - out.IQN = in.IQN - out.Lun = in.Lun - out.ISCSIInterface = in.ISCSIInterface - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1309,14 +1122,11 @@ func DeepCopy_v1_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*KeyToPath) out := out.(*KeyToPath) - out.Key = in.Key - out.Path = in.Path + *out = *in if in.Mode != nil { in, out := &in.Mode, &out.Mode *out = new(int32) **out = **in - } else { - out.Mode = nil } return nil } @@ -1326,14 +1136,13 @@ func DeepCopy_v1_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Lifecycle) out := out.(*Lifecycle) + *out = *in if in.PostStart != nil { in, out := &in.PostStart, &out.PostStart *out = new(Handler) if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { return err } - } else { - out.PostStart = nil } if in.PreStop != nil { in, out := &in.PreStop, &out.PreStop @@ -1341,8 +1150,6 @@ func DeepCopy_v1_Lifecycle(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_v1_Handler(*in, *out, c); err != nil { return err } - } else { - out.PreStop = nil } return nil } @@ -1352,7 +1159,7 @@ func DeepCopy_v1_LimitRange(in interface{}, out interface{}, c *conversion.Clone { in := in.(*LimitRange) out := out.(*LimitRange) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -1367,15 +1174,13 @@ func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.C { in := in.(*LimitRangeItem) out := out.(*LimitRangeItem) - out.Type = in.Type + *out = *in if in.Max != nil { in, out := &in.Max, &out.Max *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Max = nil } if in.Min != nil { in, out := &in.Min, &out.Min @@ -1383,8 +1188,6 @@ func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.C for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Min = nil } if in.Default != nil { in, out := &in.Default, &out.Default @@ -1392,8 +1195,6 @@ func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.C for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Default = nil } if in.DefaultRequest != nil { in, out := &in.DefaultRequest, &out.DefaultRequest @@ -1401,8 +1202,6 @@ func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.C for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.DefaultRequest = nil } if in.MaxLimitRequestRatio != nil { in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio @@ -1410,8 +1209,6 @@ func DeepCopy_v1_LimitRangeItem(in interface{}, out interface{}, c *conversion.C for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.MaxLimitRequestRatio = nil } return nil } @@ -1421,8 +1218,7 @@ func DeepCopy_v1_LimitRangeList(in interface{}, out interface{}, c *conversion.C { in := in.(*LimitRangeList) out := out.(*LimitRangeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]LimitRange, len(*in)) @@ -1431,8 +1227,6 @@ func DeepCopy_v1_LimitRangeList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -1442,6 +1236,7 @@ func DeepCopy_v1_LimitRangeSpec(in interface{}, out interface{}, c *conversion.C { in := in.(*LimitRangeSpec) out := out.(*LimitRangeSpec) + *out = *in if in.Limits != nil { in, out := &in.Limits, &out.Limits *out = make([]LimitRangeItem, len(*in)) @@ -1450,8 +1245,6 @@ func DeepCopy_v1_LimitRangeSpec(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Limits = nil } return nil } @@ -1461,8 +1254,7 @@ func DeepCopy_v1_List(in interface{}, out interface{}, c *conversion.Cloner) err { in := in.(*List) out := out.(*List) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]runtime.RawExtension, len(*in)) @@ -1471,8 +1263,6 @@ func DeepCopy_v1_List(in interface{}, out interface{}, c *conversion.Cloner) err return err } } - } else { - out.Items = nil } return nil } @@ -1482,17 +1272,11 @@ func DeepCopy_v1_ListOptions(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ListOptions) out := out.(*ListOptions) - out.TypeMeta = in.TypeMeta - out.LabelSelector = in.LabelSelector - out.FieldSelector = in.FieldSelector - out.Watch = in.Watch - out.ResourceVersion = in.ResourceVersion + *out = *in if in.TimeoutSeconds != nil { in, out := &in.TimeoutSeconds, &out.TimeoutSeconds *out = new(int64) **out = **in - } else { - out.TimeoutSeconds = nil } return nil } @@ -1502,8 +1286,7 @@ func DeepCopy_v1_LoadBalancerIngress(in interface{}, out interface{}, c *convers { in := in.(*LoadBalancerIngress) out := out.(*LoadBalancerIngress) - out.IP = in.IP - out.Hostname = in.Hostname + *out = *in return nil } } @@ -1512,14 +1295,13 @@ func DeepCopy_v1_LoadBalancerStatus(in interface{}, out interface{}, c *conversi { in := in.(*LoadBalancerStatus) out := out.(*LoadBalancerStatus) + *out = *in if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]LoadBalancerIngress, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ingress = nil } return nil } @@ -1529,7 +1311,7 @@ func DeepCopy_v1_LocalObjectReference(in interface{}, out interface{}, c *conver { in := in.(*LocalObjectReference) out := out.(*LocalObjectReference) - out.Name = in.Name + *out = *in return nil } } @@ -1538,9 +1320,7 @@ func DeepCopy_v1_NFSVolumeSource(in interface{}, out interface{}, c *conversion. { in := in.(*NFSVolumeSource) out := out.(*NFSVolumeSource) - out.Server = in.Server - out.Path = in.Path - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1549,14 +1329,13 @@ func DeepCopy_v1_Namespace(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Namespace) out := out.(*Namespace) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -1565,8 +1344,7 @@ func DeepCopy_v1_NamespaceList(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NamespaceList) out := out.(*NamespaceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Namespace, len(*in)) @@ -1575,8 +1353,6 @@ func DeepCopy_v1_NamespaceList(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.Items = nil } return nil } @@ -1586,14 +1362,13 @@ func DeepCopy_v1_NamespaceSpec(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NamespaceSpec) out := out.(*NamespaceSpec) + *out = *in if in.Finalizers != nil { in, out := &in.Finalizers, &out.Finalizers *out = make([]FinalizerName, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Finalizers = nil } return nil } @@ -1603,7 +1378,7 @@ func DeepCopy_v1_NamespaceStatus(in interface{}, out interface{}, c *conversion. { in := in.(*NamespaceStatus) out := out.(*NamespaceStatus) - out.Phase = in.Phase + *out = *in return nil } } @@ -1612,11 +1387,10 @@ func DeepCopy_v1_Node(in interface{}, out interface{}, c *conversion.Cloner) err { in := in.(*Node) out := out.(*Node) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_v1_NodeStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -1628,8 +1402,7 @@ func DeepCopy_v1_NodeAddress(in interface{}, out interface{}, c *conversion.Clon { in := in.(*NodeAddress) out := out.(*NodeAddress) - out.Type = in.Type - out.Address = in.Address + *out = *in return nil } } @@ -1638,14 +1411,13 @@ func DeepCopy_v1_NodeAffinity(in interface{}, out interface{}, c *conversion.Clo { in := in.(*NodeAffinity) out := out.(*NodeAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = new(NodeSelector) if err := DeepCopy_v1_NodeSelector(*in, *out, c); err != nil { return err } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -1655,8 +1427,6 @@ func DeepCopy_v1_NodeAffinity(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -1666,12 +1436,9 @@ func DeepCopy_v1_NodeCondition(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NodeCondition) out := out.(*NodeCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -1680,7 +1447,7 @@ func DeepCopy_v1_NodeDaemonEndpoints(in interface{}, out interface{}, c *convers { in := in.(*NodeDaemonEndpoints) out := out.(*NodeDaemonEndpoints) - out.KubeletEndpoint = in.KubeletEndpoint + *out = *in return nil } } @@ -1689,8 +1456,7 @@ func DeepCopy_v1_NodeList(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*NodeList) out := out.(*NodeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Node, len(*in)) @@ -1699,8 +1465,6 @@ func DeepCopy_v1_NodeList(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Items = nil } return nil } @@ -1710,8 +1474,7 @@ func DeepCopy_v1_NodeProxyOptions(in interface{}, out interface{}, c *conversion { in := in.(*NodeProxyOptions) out := out.(*NodeProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -1720,14 +1483,13 @@ func DeepCopy_v1_NodeResources(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NodeResources) out := out.(*NodeResources) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } return nil } @@ -1737,6 +1499,7 @@ func DeepCopy_v1_NodeSelector(in interface{}, out interface{}, c *conversion.Clo { in := in.(*NodeSelector) out := out.(*NodeSelector) + *out = *in if in.NodeSelectorTerms != nil { in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms *out = make([]NodeSelectorTerm, len(*in)) @@ -1745,8 +1508,6 @@ func DeepCopy_v1_NodeSelector(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.NodeSelectorTerms = nil } return nil } @@ -1756,14 +1517,11 @@ func DeepCopy_v1_NodeSelectorRequirement(in interface{}, out interface{}, c *con { in := in.(*NodeSelectorRequirement) out := out.(*NodeSelectorRequirement) - out.Key = in.Key - out.Operator = in.Operator + *out = *in if in.Values != nil { in, out := &in.Values, &out.Values *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Values = nil } return nil } @@ -1773,6 +1531,7 @@ func DeepCopy_v1_NodeSelectorTerm(in interface{}, out interface{}, c *conversion { in := in.(*NodeSelectorTerm) out := out.(*NodeSelectorTerm) + *out = *in if in.MatchExpressions != nil { in, out := &in.MatchExpressions, &out.MatchExpressions *out = make([]NodeSelectorRequirement, len(*in)) @@ -1781,8 +1540,6 @@ func DeepCopy_v1_NodeSelectorTerm(in interface{}, out interface{}, c *conversion return err } } - } else { - out.MatchExpressions = nil } return nil } @@ -1792,10 +1549,7 @@ func DeepCopy_v1_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*NodeSpec) out := out.(*NodeSpec) - out.PodCIDR = in.PodCIDR - out.ExternalID = in.ExternalID - out.ProviderID = in.ProviderID - out.Unschedulable = in.Unschedulable + *out = *in return nil } } @@ -1804,14 +1558,13 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone { in := in.(*NodeStatus) out := out.(*NodeStatus) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } if in.Allocatable != nil { in, out := &in.Allocatable, &out.Allocatable @@ -1819,10 +1572,7 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Allocatable = nil } - out.Phase = in.Phase if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]NodeCondition, len(*in)) @@ -1831,8 +1581,6 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Conditions = nil } if in.Addresses != nil { in, out := &in.Addresses, &out.Addresses @@ -1840,11 +1588,7 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Addresses = nil } - out.DaemonEndpoints = in.DaemonEndpoints - out.NodeInfo = in.NodeInfo if in.Images != nil { in, out := &in.Images, &out.Images *out = make([]ContainerImage, len(*in)) @@ -1853,8 +1597,6 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Images = nil } if in.VolumesInUse != nil { in, out := &in.VolumesInUse, &out.VolumesInUse @@ -1862,8 +1604,6 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumesInUse = nil } if in.VolumesAttached != nil { in, out := &in.VolumesAttached, &out.VolumesAttached @@ -1871,8 +1611,6 @@ func DeepCopy_v1_NodeStatus(in interface{}, out interface{}, c *conversion.Clone for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumesAttached = nil } return nil } @@ -1882,16 +1620,7 @@ func DeepCopy_v1_NodeSystemInfo(in interface{}, out interface{}, c *conversion.C { in := in.(*NodeSystemInfo) out := out.(*NodeSystemInfo) - out.MachineID = in.MachineID - out.SystemUUID = in.SystemUUID - out.BootID = in.BootID - out.KernelVersion = in.KernelVersion - out.OSImage = in.OSImage - out.ContainerRuntimeVersion = in.ContainerRuntimeVersion - out.KubeletVersion = in.KubeletVersion - out.KubeProxyVersion = in.KubeProxyVersion - out.OperatingSystem = in.OperatingSystem - out.Architecture = in.Architecture + *out = *in return nil } } @@ -1900,8 +1629,7 @@ func DeepCopy_v1_ObjectFieldSelector(in interface{}, out interface{}, c *convers { in := in.(*ObjectFieldSelector) out := out.(*ObjectFieldSelector) - out.APIVersion = in.APIVersion - out.FieldPath = in.FieldPath + *out = *in return nil } } @@ -1910,27 +1638,17 @@ func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Clone { in := in.(*ObjectMeta) out := out.(*ObjectMeta) - out.Name = in.Name - out.GenerateName = in.GenerateName - out.Namespace = in.Namespace - out.SelfLink = in.SelfLink - out.UID = in.UID - out.ResourceVersion = in.ResourceVersion - out.Generation = in.Generation + *out = *in out.CreationTimestamp = in.CreationTimestamp.DeepCopy() if in.DeletionTimestamp != nil { in, out := &in.DeletionTimestamp, &out.DeletionTimestamp *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.DeletionTimestamp = nil } if in.DeletionGracePeriodSeconds != nil { in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds *out = new(int64) **out = **in - } else { - out.DeletionGracePeriodSeconds = nil } if in.Labels != nil { in, out := &in.Labels, &out.Labels @@ -1938,8 +1656,6 @@ func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Clone for key, val := range *in { (*out)[key] = val } - } else { - out.Labels = nil } if in.Annotations != nil { in, out := &in.Annotations, &out.Annotations @@ -1947,8 +1663,6 @@ func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Clone for key, val := range *in { (*out)[key] = val } - } else { - out.Annotations = nil } if in.OwnerReferences != nil { in, out := &in.OwnerReferences, &out.OwnerReferences @@ -1958,17 +1672,12 @@ func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.OwnerReferences = nil } if in.Finalizers != nil { in, out := &in.Finalizers, &out.Finalizers *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Finalizers = nil } - out.ClusterName = in.ClusterName return nil } } @@ -1977,13 +1686,7 @@ func DeepCopy_v1_ObjectReference(in interface{}, out interface{}, c *conversion. { in := in.(*ObjectReference) out := out.(*ObjectReference) - out.Kind = in.Kind - out.Namespace = in.Namespace - out.Name = in.Name - out.UID = in.UID - out.APIVersion = in.APIVersion - out.ResourceVersion = in.ResourceVersion - out.FieldPath = in.FieldPath + *out = *in return nil } } @@ -1992,14 +1695,13 @@ func DeepCopy_v1_PersistentVolume(in interface{}, out interface{}, c *conversion { in := in.(*PersistentVolume) out := out.(*PersistentVolume) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -2008,7 +1710,7 @@ func DeepCopy_v1_PersistentVolumeClaim(in interface{}, out interface{}, c *conve { in := in.(*PersistentVolumeClaim) out := out.(*PersistentVolumeClaim) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2026,8 +1728,7 @@ func DeepCopy_v1_PersistentVolumeClaimList(in interface{}, out interface{}, c *c { in := in.(*PersistentVolumeClaimList) out := out.(*PersistentVolumeClaimList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PersistentVolumeClaim, len(*in)) @@ -2036,8 +1737,6 @@ func DeepCopy_v1_PersistentVolumeClaimList(in interface{}, out interface{}, c *c return err } } - } else { - out.Items = nil } return nil } @@ -2047,14 +1746,13 @@ func DeepCopy_v1_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *c { in := in.(*PersistentVolumeClaimSpec) out := out.(*PersistentVolumeClaimSpec) + *out = *in if in.AccessModes != nil { in, out := &in.AccessModes, &out.AccessModes *out = make([]PersistentVolumeAccessMode, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -2062,13 +1760,10 @@ func DeepCopy_v1_PersistentVolumeClaimSpec(in interface{}, out interface{}, c *c if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := DeepCopy_v1_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { return err } - out.VolumeName = in.VolumeName return nil } } @@ -2077,15 +1772,13 @@ func DeepCopy_v1_PersistentVolumeClaimStatus(in interface{}, out interface{}, c { in := in.(*PersistentVolumeClaimStatus) out := out.(*PersistentVolumeClaimStatus) - out.Phase = in.Phase + *out = *in if in.AccessModes != nil { in, out := &in.AccessModes, &out.AccessModes *out = make([]PersistentVolumeAccessMode, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity @@ -2093,8 +1786,6 @@ func DeepCopy_v1_PersistentVolumeClaimStatus(in interface{}, out interface{}, c for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } return nil } @@ -2104,8 +1795,7 @@ func DeepCopy_v1_PersistentVolumeClaimVolumeSource(in interface{}, out interface { in := in.(*PersistentVolumeClaimVolumeSource) out := out.(*PersistentVolumeClaimVolumeSource) - out.ClaimName = in.ClaimName - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -2114,8 +1804,7 @@ func DeepCopy_v1_PersistentVolumeList(in interface{}, out interface{}, c *conver { in := in.(*PersistentVolumeList) out := out.(*PersistentVolumeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PersistentVolume, len(*in)) @@ -2124,8 +1813,6 @@ func DeepCopy_v1_PersistentVolumeList(in interface{}, out interface{}, c *conver return err } } - } else { - out.Items = nil } return nil } @@ -2135,40 +1822,31 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv { in := in.(*PersistentVolumeSource) out := out.(*PersistentVolumeSource) + *out = *in if in.GCEPersistentDisk != nil { in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk *out = new(GCEPersistentDiskVolumeSource) **out = **in - } else { - out.GCEPersistentDisk = nil } if in.AWSElasticBlockStore != nil { in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore *out = new(AWSElasticBlockStoreVolumeSource) **out = **in - } else { - out.AWSElasticBlockStore = nil } if in.HostPath != nil { in, out := &in.HostPath, &out.HostPath *out = new(HostPathVolumeSource) **out = **in - } else { - out.HostPath = nil } if in.Glusterfs != nil { in, out := &in.Glusterfs, &out.Glusterfs *out = new(GlusterfsVolumeSource) **out = **in - } else { - out.Glusterfs = nil } if in.NFS != nil { in, out := &in.NFS, &out.NFS *out = new(NFSVolumeSource) **out = **in - } else { - out.NFS = nil } if in.RBD != nil { in, out := &in.RBD, &out.RBD @@ -2176,22 +1854,16 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.RBD = nil } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) **out = **in - } else { - out.ISCSI = nil } if in.Cinder != nil { in, out := &in.Cinder, &out.Cinder *out = new(CinderVolumeSource) **out = **in - } else { - out.Cinder = nil } if in.CephFS != nil { in, out := &in.CephFS, &out.CephFS @@ -2199,8 +1871,6 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.CephFS = nil } if in.FC != nil { in, out := &in.FC, &out.FC @@ -2208,15 +1878,11 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FC = nil } if in.Flocker != nil { in, out := &in.Flocker, &out.Flocker *out = new(FlockerVolumeSource) **out = **in - } else { - out.Flocker = nil } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume @@ -2224,29 +1890,21 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FlexVolume = nil } if in.AzureFile != nil { in, out := &in.AzureFile, &out.AzureFile *out = new(AzureFileVolumeSource) **out = **in - } else { - out.AzureFile = nil } if in.VsphereVolume != nil { in, out := &in.VsphereVolume, &out.VsphereVolume *out = new(VsphereVirtualDiskVolumeSource) **out = **in - } else { - out.VsphereVolume = nil } if in.Quobyte != nil { in, out := &in.Quobyte, &out.Quobyte *out = new(QuobyteVolumeSource) **out = **in - } else { - out.Quobyte = nil } if in.AzureDisk != nil { in, out := &in.AzureDisk, &out.AzureDisk @@ -2254,15 +1912,11 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv if err := DeepCopy_v1_AzureDiskVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.AzureDisk = nil } if in.PhotonPersistentDisk != nil { in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk *out = new(PhotonPersistentDiskVolumeSource) **out = **in - } else { - out.PhotonPersistentDisk = nil } return nil } @@ -2272,14 +1926,13 @@ func DeepCopy_v1_PersistentVolumeSpec(in interface{}, out interface{}, c *conver { in := in.(*PersistentVolumeSpec) out := out.(*PersistentVolumeSpec) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } if err := DeepCopy_v1_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { return err @@ -2290,17 +1943,12 @@ func DeepCopy_v1_PersistentVolumeSpec(in interface{}, out interface{}, c *conver for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.ClaimRef != nil { in, out := &in.ClaimRef, &out.ClaimRef *out = new(ObjectReference) **out = **in - } else { - out.ClaimRef = nil } - out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy return nil } } @@ -2309,9 +1957,7 @@ func DeepCopy_v1_PersistentVolumeStatus(in interface{}, out interface{}, c *conv { in := in.(*PersistentVolumeStatus) out := out.(*PersistentVolumeStatus) - out.Phase = in.Phase - out.Message = in.Message - out.Reason = in.Reason + *out = *in return nil } } @@ -2320,8 +1966,7 @@ func DeepCopy_v1_PhotonPersistentDiskVolumeSource(in interface{}, out interface{ { in := in.(*PhotonPersistentDiskVolumeSource) out := out.(*PhotonPersistentDiskVolumeSource) - out.PdID = in.PdID - out.FSType = in.FSType + *out = *in return nil } } @@ -2330,7 +1975,7 @@ func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) erro { in := in.(*Pod) out := out.(*Pod) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2348,6 +1993,7 @@ func DeepCopy_v1_PodAffinity(in interface{}, out interface{}, c *conversion.Clon { in := in.(*PodAffinity) out := out.(*PodAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = make([]PodAffinityTerm, len(*in)) @@ -2356,8 +2002,6 @@ func DeepCopy_v1_PodAffinity(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -2367,8 +2011,6 @@ func DeepCopy_v1_PodAffinity(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -2378,23 +2020,19 @@ func DeepCopy_v1_PodAffinityTerm(in interface{}, out interface{}, c *conversion. { in := in.(*PodAffinityTerm) out := out.(*PodAffinityTerm) + *out = *in if in.LabelSelector != nil { in, out := &in.LabelSelector, &out.LabelSelector *out = new(meta_v1.LabelSelector) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.LabelSelector = nil } if in.Namespaces != nil { in, out := &in.Namespaces, &out.Namespaces *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Namespaces = nil } - out.TopologyKey = in.TopologyKey return nil } } @@ -2403,6 +2041,7 @@ func DeepCopy_v1_PodAntiAffinity(in interface{}, out interface{}, c *conversion. { in := in.(*PodAntiAffinity) out := out.(*PodAntiAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = make([]PodAffinityTerm, len(*in)) @@ -2411,8 +2050,6 @@ func DeepCopy_v1_PodAntiAffinity(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -2422,8 +2059,6 @@ func DeepCopy_v1_PodAntiAffinity(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -2433,12 +2068,7 @@ func DeepCopy_v1_PodAttachOptions(in interface{}, out interface{}, c *conversion { in := in.(*PodAttachOptions) out := out.(*PodAttachOptions) - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container + *out = *in return nil } } @@ -2447,12 +2077,9 @@ func DeepCopy_v1_PodCondition(in interface{}, out interface{}, c *conversion.Clo { in := in.(*PodCondition) out := out.(*PodCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -2461,18 +2088,11 @@ func DeepCopy_v1_PodExecOptions(in interface{}, out interface{}, c *conversion.C { in := in.(*PodExecOptions) out := out.(*PodExecOptions) - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } return nil } @@ -2482,8 +2102,7 @@ func DeepCopy_v1_PodList(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*PodList) out := out.(*PodList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Pod, len(*in)) @@ -2492,8 +2111,6 @@ func DeepCopy_v1_PodList(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Items = nil } return nil } @@ -2503,38 +2120,26 @@ func DeepCopy_v1_PodLogOptions(in interface{}, out interface{}, c *conversion.Cl { in := in.(*PodLogOptions) out := out.(*PodLogOptions) - out.TypeMeta = in.TypeMeta - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous + *out = *in if in.SinceSeconds != nil { in, out := &in.SinceSeconds, &out.SinceSeconds *out = new(int64) **out = **in - } else { - out.SinceSeconds = nil } if in.SinceTime != nil { in, out := &in.SinceTime, &out.SinceTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.SinceTime = nil } - out.Timestamps = in.Timestamps if in.TailLines != nil { in, out := &in.TailLines, &out.TailLines *out = new(int64) **out = **in - } else { - out.TailLines = nil } if in.LimitBytes != nil { in, out := &in.LimitBytes, &out.LimitBytes *out = new(int64) **out = **in - } else { - out.LimitBytes = nil } return nil } @@ -2544,8 +2149,7 @@ func DeepCopy_v1_PodProxyOptions(in interface{}, out interface{}, c *conversion. { in := in.(*PodProxyOptions) out := out.(*PodProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -2554,40 +2158,31 @@ func DeepCopy_v1_PodSecurityContext(in interface{}, out interface{}, c *conversi { in := in.(*PodSecurityContext) out := out.(*PodSecurityContext) + *out = *in if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } if in.RunAsUser != nil { in, out := &in.RunAsUser, &out.RunAsUser *out = new(int64) **out = **in - } else { - out.RunAsUser = nil } if in.RunAsNonRoot != nil { in, out := &in.RunAsNonRoot, &out.RunAsNonRoot *out = new(bool) **out = **in - } else { - out.RunAsNonRoot = nil } if in.SupplementalGroups != nil { in, out := &in.SupplementalGroups, &out.SupplementalGroups *out = make([]int64, len(*in)) copy(*out, *in) - } else { - out.SupplementalGroups = nil } if in.FSGroup != nil { in, out := &in.FSGroup, &out.FSGroup *out = new(int64) **out = **in - } else { - out.FSGroup = nil } return nil } @@ -2597,14 +2192,13 @@ func DeepCopy_v1_PodSignature(in interface{}, out interface{}, c *conversion.Clo { in := in.(*PodSignature) out := out.(*PodSignature) + *out = *in if in.PodController != nil { in, out := &in.PodController, &out.PodController *out = new(meta_v1.OwnerReference) if err := meta_v1.DeepCopy_v1_OwnerReference(*in, *out, c); err != nil { return err } - } else { - out.PodController = nil } return nil } @@ -2614,6 +2208,7 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*PodSpec) out := out.(*PodSpec) + *out = *in if in.Volumes != nil { in, out := &in.Volumes, &out.Volumes *out = make([]Volume, len(*in)) @@ -2622,8 +2217,6 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Volumes = nil } if in.InitContainers != nil { in, out := &in.InitContainers, &out.InitContainers @@ -2633,8 +2226,6 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.InitContainers = nil } if in.Containers != nil { in, out := &in.Containers, &out.Containers @@ -2644,48 +2235,30 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Containers = nil } - out.RestartPolicy = in.RestartPolicy if in.TerminationGracePeriodSeconds != nil { in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds *out = new(int64) **out = **in - } else { - out.TerminationGracePeriodSeconds = nil } if in.ActiveDeadlineSeconds != nil { in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds *out = new(int64) **out = **in - } else { - out.ActiveDeadlineSeconds = nil } - out.DNSPolicy = in.DNSPolicy if in.NodeSelector != nil { in, out := &in.NodeSelector, &out.NodeSelector *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.NodeSelector = nil } - out.ServiceAccountName = in.ServiceAccountName - out.DeprecatedServiceAccount = in.DeprecatedServiceAccount - out.NodeName = in.NodeName - out.HostNetwork = in.HostNetwork - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC if in.SecurityContext != nil { in, out := &in.SecurityContext, &out.SecurityContext *out = new(PodSecurityContext) if err := DeepCopy_v1_PodSecurityContext(*in, *out, c); err != nil { return err } - } else { - out.SecurityContext = nil } if in.ImagePullSecrets != nil { in, out := &in.ImagePullSecrets, &out.ImagePullSecrets @@ -2693,19 +2266,13 @@ func DeepCopy_v1_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ImagePullSecrets = nil } - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain if in.Affinity != nil { in, out := &in.Affinity, &out.Affinity *out = new(Affinity) if err := DeepCopy_v1_Affinity(*in, *out, c); err != nil { return err } - } else { - out.Affinity = nil } return nil } @@ -2715,7 +2282,7 @@ func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*PodStatus) out := out.(*PodStatus) - out.Phase = in.Phase + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PodCondition, len(*in)) @@ -2724,19 +2291,11 @@ func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Conditions = nil } - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.PodIP = in.PodIP if in.StartTime != nil { in, out := &in.StartTime, &out.StartTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.StartTime = nil } if in.InitContainerStatuses != nil { in, out := &in.InitContainerStatuses, &out.InitContainerStatuses @@ -2746,8 +2305,6 @@ func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.InitContainerStatuses = nil } if in.ContainerStatuses != nil { in, out := &in.ContainerStatuses, &out.ContainerStatuses @@ -2757,10 +2314,7 @@ func DeepCopy_v1_PodStatus(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.ContainerStatuses = nil } - out.QOSClass = in.QOSClass return nil } } @@ -2769,7 +2323,7 @@ func DeepCopy_v1_PodStatusResult(in interface{}, out interface{}, c *conversion. { in := in.(*PodStatusResult) out := out.(*PodStatusResult) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2784,7 +2338,7 @@ func DeepCopy_v1_PodTemplate(in interface{}, out interface{}, c *conversion.Clon { in := in.(*PodTemplate) out := out.(*PodTemplate) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2799,8 +2353,7 @@ func DeepCopy_v1_PodTemplateList(in interface{}, out interface{}, c *conversion. { in := in.(*PodTemplateList) out := out.(*PodTemplateList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodTemplate, len(*in)) @@ -2809,8 +2362,6 @@ func DeepCopy_v1_PodTemplateList(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.Items = nil } return nil } @@ -2820,6 +2371,7 @@ func DeepCopy_v1_PodTemplateSpec(in interface{}, out interface{}, c *conversion. { in := in.(*PodTemplateSpec) out := out.(*PodTemplateSpec) + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2834,12 +2386,11 @@ func DeepCopy_v1_Preconditions(in interface{}, out interface{}, c *conversion.Cl { in := in.(*Preconditions) out := out.(*Preconditions) + *out = *in if in.UID != nil { in, out := &in.UID, &out.UID *out = new(types.UID) **out = **in - } else { - out.UID = nil } return nil } @@ -2849,12 +2400,11 @@ func DeepCopy_v1_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conver { in := in.(*PreferAvoidPodsEntry) out := out.(*PreferAvoidPodsEntry) + *out = *in if err := DeepCopy_v1_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { return err } out.EvictionTime = in.EvictionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -2863,7 +2413,7 @@ func DeepCopy_v1_PreferredSchedulingTerm(in interface{}, out interface{}, c *con { in := in.(*PreferredSchedulingTerm) out := out.(*PreferredSchedulingTerm) - out.Weight = in.Weight + *out = *in if err := DeepCopy_v1_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { return err } @@ -2875,14 +2425,10 @@ func DeepCopy_v1_Probe(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Probe) out := out.(*Probe) + *out = *in if err := DeepCopy_v1_Handler(&in.Handler, &out.Handler, c); err != nil { return err } - out.InitialDelaySeconds = in.InitialDelaySeconds - out.TimeoutSeconds = in.TimeoutSeconds - out.PeriodSeconds = in.PeriodSeconds - out.SuccessThreshold = in.SuccessThreshold - out.FailureThreshold = in.FailureThreshold return nil } } @@ -2891,11 +2437,7 @@ func DeepCopy_v1_QuobyteVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*QuobyteVolumeSource) out := out.(*QuobyteVolumeSource) - out.Registry = in.Registry - out.Volume = in.Volume - out.ReadOnly = in.ReadOnly - out.User = in.User - out.Group = in.Group + *out = *in return nil } } @@ -2904,26 +2446,17 @@ func DeepCopy_v1_RBDVolumeSource(in interface{}, out interface{}, c *conversion. { in := in.(*RBDVolumeSource) out := out.(*RBDVolumeSource) + *out = *in if in.CephMonitors != nil { in, out := &in.CephMonitors, &out.CephMonitors *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.CephMonitors = nil - } - out.RBDImage = in.RBDImage - out.FSType = in.FSType - out.RBDPool = in.RBDPool - out.RadosUser = in.RadosUser - out.Keyring = in.Keyring + } if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly return nil } } @@ -2932,17 +2465,14 @@ func DeepCopy_v1_RangeAllocation(in interface{}, out interface{}, c *conversion. { in := in.(*RangeAllocation) out := out.(*RangeAllocation) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Range = in.Range if in.Data != nil { in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Data = nil } return nil } @@ -2952,7 +2482,7 @@ func DeepCopy_v1_ReplicationController(in interface{}, out interface{}, c *conve { in := in.(*ReplicationController) out := out.(*ReplicationController) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2970,11 +2500,8 @@ func DeepCopy_v1_ReplicationControllerCondition(in interface{}, out interface{}, { in := in.(*ReplicationControllerCondition) out := out.(*ReplicationControllerCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -2983,8 +2510,7 @@ func DeepCopy_v1_ReplicationControllerList(in interface{}, out interface{}, c *c { in := in.(*ReplicationControllerList) out := out.(*ReplicationControllerList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicationController, len(*in)) @@ -2993,8 +2519,6 @@ func DeepCopy_v1_ReplicationControllerList(in interface{}, out interface{}, c *c return err } } - } else { - out.Items = nil } return nil } @@ -3004,22 +2528,18 @@ func DeepCopy_v1_ReplicationControllerSpec(in interface{}, out interface{}, c *c { in := in.(*ReplicationControllerSpec) out := out.(*ReplicationControllerSpec) + *out = *in if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas *out = new(int32) **out = **in - } else { - out.Replicas = nil } - out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Selector = nil } if in.Template != nil { in, out := &in.Template, &out.Template @@ -3027,8 +2547,6 @@ func DeepCopy_v1_ReplicationControllerSpec(in interface{}, out interface{}, c *c if err := DeepCopy_v1_PodTemplateSpec(*in, *out, c); err != nil { return err } - } else { - out.Template = nil } return nil } @@ -3038,11 +2556,7 @@ func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c { in := in.(*ReplicationControllerStatus) out := out.(*ReplicationControllerStatus) - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ReplicationControllerCondition, len(*in)) @@ -3051,8 +2565,6 @@ func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c return err } } - } else { - out.Conditions = nil } return nil } @@ -3062,8 +2574,7 @@ func DeepCopy_v1_ResourceFieldSelector(in interface{}, out interface{}, c *conve { in := in.(*ResourceFieldSelector) out := out.(*ResourceFieldSelector) - out.ContainerName = in.ContainerName - out.Resource = in.Resource + *out = *in out.Divisor = in.Divisor.DeepCopy() return nil } @@ -3073,7 +2584,7 @@ func DeepCopy_v1_ResourceQuota(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ResourceQuota) out := out.(*ResourceQuota) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3091,8 +2602,7 @@ func DeepCopy_v1_ResourceQuotaList(in interface{}, out interface{}, c *conversio { in := in.(*ResourceQuotaList) out := out.(*ResourceQuotaList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ResourceQuota, len(*in)) @@ -3101,8 +2611,6 @@ func DeepCopy_v1_ResourceQuotaList(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Items = nil } return nil } @@ -3112,14 +2620,13 @@ func DeepCopy_v1_ResourceQuotaSpec(in interface{}, out interface{}, c *conversio { in := in.(*ResourceQuotaSpec) out := out.(*ResourceQuotaSpec) + *out = *in if in.Hard != nil { in, out := &in.Hard, &out.Hard *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Hard = nil } if in.Scopes != nil { in, out := &in.Scopes, &out.Scopes @@ -3127,8 +2634,6 @@ func DeepCopy_v1_ResourceQuotaSpec(in interface{}, out interface{}, c *conversio for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Scopes = nil } return nil } @@ -3138,14 +2643,13 @@ func DeepCopy_v1_ResourceQuotaStatus(in interface{}, out interface{}, c *convers { in := in.(*ResourceQuotaStatus) out := out.(*ResourceQuotaStatus) + *out = *in if in.Hard != nil { in, out := &in.Hard, &out.Hard *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Hard = nil } if in.Used != nil { in, out := &in.Used, &out.Used @@ -3153,8 +2657,6 @@ func DeepCopy_v1_ResourceQuotaStatus(in interface{}, out interface{}, c *convers for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Used = nil } return nil } @@ -3164,14 +2666,13 @@ func DeepCopy_v1_ResourceRequirements(in interface{}, out interface{}, c *conver { in := in.(*ResourceRequirements) out := out.(*ResourceRequirements) + *out = *in if in.Limits != nil { in, out := &in.Limits, &out.Limits *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Limits = nil } if in.Requests != nil { in, out := &in.Requests, &out.Requests @@ -3179,8 +2680,6 @@ func DeepCopy_v1_ResourceRequirements(in interface{}, out interface{}, c *conver for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Requests = nil } return nil } @@ -3190,10 +2689,7 @@ func DeepCopy_v1_SELinuxOptions(in interface{}, out interface{}, c *conversion.C { in := in.(*SELinuxOptions) out := out.(*SELinuxOptions) - out.User = in.User - out.Role = in.Role - out.Type = in.Type - out.Level = in.Level + *out = *in return nil } } @@ -3202,7 +2698,7 @@ func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Secret) out := out.(*Secret) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3216,8 +2712,6 @@ func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) e (*out)[key] = *newVal.(*[]byte) } } - } else { - out.Data = nil } if in.StringData != nil { in, out := &in.StringData, &out.StringData @@ -3225,10 +2719,7 @@ func DeepCopy_v1_Secret(in interface{}, out interface{}, c *conversion.Cloner) e for key, val := range *in { (*out)[key] = val } - } else { - out.StringData = nil } - out.Type = in.Type return nil } } @@ -3237,8 +2728,7 @@ func DeepCopy_v1_SecretKeySelector(in interface{}, out interface{}, c *conversio { in := in.(*SecretKeySelector) out := out.(*SecretKeySelector) - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key + *out = *in return nil } } @@ -3247,8 +2737,7 @@ func DeepCopy_v1_SecretList(in interface{}, out interface{}, c *conversion.Clone { in := in.(*SecretList) out := out.(*SecretList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Secret, len(*in)) @@ -3257,8 +2746,6 @@ func DeepCopy_v1_SecretList(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Items = nil } return nil } @@ -3268,7 +2755,7 @@ func DeepCopy_v1_SecretVolumeSource(in interface{}, out interface{}, c *conversi { in := in.(*SecretVolumeSource) out := out.(*SecretVolumeSource) - out.SecretName = in.SecretName + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) @@ -3277,15 +2764,11 @@ func DeepCopy_v1_SecretVolumeSource(in interface{}, out interface{}, c *conversi return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -3295,49 +2778,38 @@ func DeepCopy_v1_SecurityContext(in interface{}, out interface{}, c *conversion. { in := in.(*SecurityContext) out := out.(*SecurityContext) + *out = *in if in.Capabilities != nil { in, out := &in.Capabilities, &out.Capabilities *out = new(Capabilities) if err := DeepCopy_v1_Capabilities(*in, *out, c); err != nil { return err } - } else { - out.Capabilities = nil } if in.Privileged != nil { in, out := &in.Privileged, &out.Privileged *out = new(bool) **out = **in - } else { - out.Privileged = nil } if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } if in.RunAsUser != nil { in, out := &in.RunAsUser, &out.RunAsUser *out = new(int64) **out = **in - } else { - out.RunAsUser = nil } if in.RunAsNonRoot != nil { in, out := &in.RunAsNonRoot, &out.RunAsNonRoot *out = new(bool) **out = **in - } else { - out.RunAsNonRoot = nil } if in.ReadOnlyRootFilesystem != nil { in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem *out = new(bool) **out = **in - } else { - out.ReadOnlyRootFilesystem = nil } return nil } @@ -3347,8 +2819,7 @@ func DeepCopy_v1_SerializedReference(in interface{}, out interface{}, c *convers { in := in.(*SerializedReference) out := out.(*SerializedReference) - out.TypeMeta = in.TypeMeta - out.Reference = in.Reference + *out = *in return nil } } @@ -3357,7 +2828,7 @@ func DeepCopy_v1_Service(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Service) out := out.(*Service) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3375,7 +2846,7 @@ func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.C { in := in.(*ServiceAccount) out := out.(*ServiceAccount) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3385,8 +2856,6 @@ func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.C for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Secrets = nil } if in.ImagePullSecrets != nil { in, out := &in.ImagePullSecrets, &out.ImagePullSecrets @@ -3394,8 +2863,6 @@ func DeepCopy_v1_ServiceAccount(in interface{}, out interface{}, c *conversion.C for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ImagePullSecrets = nil } return nil } @@ -3405,8 +2872,7 @@ func DeepCopy_v1_ServiceAccountList(in interface{}, out interface{}, c *conversi { in := in.(*ServiceAccountList) out := out.(*ServiceAccountList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ServiceAccount, len(*in)) @@ -3415,8 +2881,6 @@ func DeepCopy_v1_ServiceAccountList(in interface{}, out interface{}, c *conversi return err } } - } else { - out.Items = nil } return nil } @@ -3426,8 +2890,7 @@ func DeepCopy_v1_ServiceList(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ServiceList) out := out.(*ServiceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Service, len(*in)) @@ -3436,8 +2899,6 @@ func DeepCopy_v1_ServiceList(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.Items = nil } return nil } @@ -3447,11 +2908,7 @@ func DeepCopy_v1_ServicePort(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ServicePort) out := out.(*ServicePort) - out.Name = in.Name - out.Protocol = in.Protocol - out.Port = in.Port - out.TargetPort = in.TargetPort - out.NodePort = in.NodePort + *out = *in return nil } } @@ -3460,8 +2917,7 @@ func DeepCopy_v1_ServiceProxyOptions(in interface{}, out interface{}, c *convers { in := in.(*ServiceProxyOptions) out := out.(*ServiceProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -3470,14 +2926,13 @@ func DeepCopy_v1_ServiceSpec(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ServiceSpec) out := out.(*ServiceSpec) + *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]ServicePort, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -3485,35 +2940,22 @@ func DeepCopy_v1_ServiceSpec(in interface{}, out interface{}, c *conversion.Clon for key, val := range *in { (*out)[key] = val } - } else { - out.Selector = nil } - out.ClusterIP = in.ClusterIP - out.Type = in.Type if in.ExternalIPs != nil { in, out := &in.ExternalIPs, &out.ExternalIPs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.ExternalIPs = nil } if in.DeprecatedPublicIPs != nil { in, out := &in.DeprecatedPublicIPs, &out.DeprecatedPublicIPs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.DeprecatedPublicIPs = nil } - out.SessionAffinity = in.SessionAffinity - out.LoadBalancerIP = in.LoadBalancerIP if in.LoadBalancerSourceRanges != nil { in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.LoadBalancerSourceRanges = nil } - out.ExternalName = in.ExternalName return nil } } @@ -3522,6 +2964,7 @@ func DeepCopy_v1_ServiceStatus(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ServiceStatus) out := out.(*ServiceStatus) + *out = *in if err := DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { return err } @@ -3533,8 +2976,7 @@ func DeepCopy_v1_Sysctl(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Sysctl) out := out.(*Sysctl) - out.Name = in.Name - out.Value = in.Value + *out = *in return nil } } @@ -3543,7 +2985,7 @@ func DeepCopy_v1_TCPSocketAction(in interface{}, out interface{}, c *conversion. { in := in.(*TCPSocketAction) out := out.(*TCPSocketAction) - out.Port = in.Port + *out = *in return nil } } @@ -3552,9 +2994,7 @@ func DeepCopy_v1_Taint(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Taint) out := out.(*Taint) - out.Key = in.Key - out.Value = in.Value - out.Effect = in.Effect + *out = *in return nil } } @@ -3563,10 +3003,7 @@ func DeepCopy_v1_Toleration(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Toleration) out := out.(*Toleration) - out.Key = in.Key - out.Operator = in.Operator - out.Value = in.Value - out.Effect = in.Effect + *out = *in return nil } } @@ -3575,7 +3012,7 @@ func DeepCopy_v1_Volume(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Volume) out := out.(*Volume) - out.Name = in.Name + *out = *in if err := DeepCopy_v1_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { return err } @@ -3587,10 +3024,7 @@ func DeepCopy_v1_VolumeMount(in interface{}, out interface{}, c *conversion.Clon { in := in.(*VolumeMount) out := out.(*VolumeMount) - out.Name = in.Name - out.ReadOnly = in.ReadOnly - out.MountPath = in.MountPath - out.SubPath = in.SubPath + *out = *in return nil } } @@ -3599,40 +3033,31 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo { in := in.(*VolumeSource) out := out.(*VolumeSource) + *out = *in if in.HostPath != nil { in, out := &in.HostPath, &out.HostPath *out = new(HostPathVolumeSource) **out = **in - } else { - out.HostPath = nil } if in.EmptyDir != nil { in, out := &in.EmptyDir, &out.EmptyDir *out = new(EmptyDirVolumeSource) **out = **in - } else { - out.EmptyDir = nil } if in.GCEPersistentDisk != nil { in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk *out = new(GCEPersistentDiskVolumeSource) **out = **in - } else { - out.GCEPersistentDisk = nil } if in.AWSElasticBlockStore != nil { in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore *out = new(AWSElasticBlockStoreVolumeSource) **out = **in - } else { - out.AWSElasticBlockStore = nil } if in.GitRepo != nil { in, out := &in.GitRepo, &out.GitRepo *out = new(GitRepoVolumeSource) **out = **in - } else { - out.GitRepo = nil } if in.Secret != nil { in, out := &in.Secret, &out.Secret @@ -3640,36 +3065,26 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_SecretVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.Secret = nil } if in.NFS != nil { in, out := &in.NFS, &out.NFS *out = new(NFSVolumeSource) **out = **in - } else { - out.NFS = nil } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) **out = **in - } else { - out.ISCSI = nil } if in.Glusterfs != nil { in, out := &in.Glusterfs, &out.Glusterfs *out = new(GlusterfsVolumeSource) **out = **in - } else { - out.Glusterfs = nil } if in.PersistentVolumeClaim != nil { in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim *out = new(PersistentVolumeClaimVolumeSource) **out = **in - } else { - out.PersistentVolumeClaim = nil } if in.RBD != nil { in, out := &in.RBD, &out.RBD @@ -3677,8 +3092,6 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_RBDVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.RBD = nil } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume @@ -3686,15 +3099,11 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_FlexVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FlexVolume = nil } if in.Cinder != nil { in, out := &in.Cinder, &out.Cinder *out = new(CinderVolumeSource) **out = **in - } else { - out.Cinder = nil } if in.CephFS != nil { in, out := &in.CephFS, &out.CephFS @@ -3702,15 +3111,11 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_CephFSVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.CephFS = nil } if in.Flocker != nil { in, out := &in.Flocker, &out.Flocker *out = new(FlockerVolumeSource) **out = **in - } else { - out.Flocker = nil } if in.DownwardAPI != nil { in, out := &in.DownwardAPI, &out.DownwardAPI @@ -3718,8 +3123,6 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_DownwardAPIVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.DownwardAPI = nil } if in.FC != nil { in, out := &in.FC, &out.FC @@ -3727,15 +3130,11 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_FCVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FC = nil } if in.AzureFile != nil { in, out := &in.AzureFile, &out.AzureFile *out = new(AzureFileVolumeSource) **out = **in - } else { - out.AzureFile = nil } if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap @@ -3743,22 +3142,16 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_ConfigMapVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.ConfigMap = nil } if in.VsphereVolume != nil { in, out := &in.VsphereVolume, &out.VsphereVolume *out = new(VsphereVirtualDiskVolumeSource) **out = **in - } else { - out.VsphereVolume = nil } if in.Quobyte != nil { in, out := &in.Quobyte, &out.Quobyte *out = new(QuobyteVolumeSource) **out = **in - } else { - out.Quobyte = nil } if in.AzureDisk != nil { in, out := &in.AzureDisk, &out.AzureDisk @@ -3766,15 +3159,11 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo if err := DeepCopy_v1_AzureDiskVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.AzureDisk = nil } if in.PhotonPersistentDisk != nil { in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk *out = new(PhotonPersistentDiskVolumeSource) **out = **in - } else { - out.PhotonPersistentDisk = nil } return nil } @@ -3784,8 +3173,7 @@ func DeepCopy_v1_VsphereVirtualDiskVolumeSource(in interface{}, out interface{}, { in := in.(*VsphereVirtualDiskVolumeSource) out := out.(*VsphereVirtualDiskVolumeSource) - out.VolumePath = in.VolumePath - out.FSType = in.FSType + *out = *in return nil } } @@ -3794,7 +3182,7 @@ func DeepCopy_v1_WeightedPodAffinityTerm(in interface{}, out interface{}, c *con { in := in.(*WeightedPodAffinityTerm) out := out.(*WeightedPodAffinityTerm) - out.Weight = in.Weight + *out = *in if err := DeepCopy_v1_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { return err } diff --git a/pkg/api/zz_generated.deepcopy.go b/pkg/api/zz_generated.deepcopy.go index 7743f30f4a1f2..89e8de56961f2 100644 --- a/pkg/api/zz_generated.deepcopy.go +++ b/pkg/api/zz_generated.deepcopy.go @@ -204,10 +204,7 @@ func DeepCopy_api_AWSElasticBlockStoreVolumeSource(in interface{}, out interface { in := in.(*AWSElasticBlockStoreVolumeSource) out := out.(*AWSElasticBlockStoreVolumeSource) - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -216,14 +213,13 @@ func DeepCopy_api_Affinity(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Affinity) out := out.(*Affinity) + *out = *in if in.NodeAffinity != nil { in, out := &in.NodeAffinity, &out.NodeAffinity *out = new(NodeAffinity) if err := DeepCopy_api_NodeAffinity(*in, *out, c); err != nil { return err } - } else { - out.NodeAffinity = nil } if in.PodAffinity != nil { in, out := &in.PodAffinity, &out.PodAffinity @@ -231,8 +227,6 @@ func DeepCopy_api_Affinity(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_api_PodAffinity(*in, *out, c); err != nil { return err } - } else { - out.PodAffinity = nil } if in.PodAntiAffinity != nil { in, out := &in.PodAntiAffinity, &out.PodAntiAffinity @@ -240,8 +234,6 @@ func DeepCopy_api_Affinity(in interface{}, out interface{}, c *conversion.Cloner if err := DeepCopy_api_PodAntiAffinity(*in, *out, c); err != nil { return err } - } else { - out.PodAntiAffinity = nil } return nil } @@ -251,8 +243,7 @@ func DeepCopy_api_AttachedVolume(in interface{}, out interface{}, c *conversion. { in := in.(*AttachedVolume) out := out.(*AttachedVolume) - out.Name = in.Name - out.DevicePath = in.DevicePath + *out = *in return nil } } @@ -261,6 +252,7 @@ func DeepCopy_api_AvoidPods(in interface{}, out interface{}, c *conversion.Clone { in := in.(*AvoidPods) out := out.(*AvoidPods) + *out = *in if in.PreferAvoidPods != nil { in, out := &in.PreferAvoidPods, &out.PreferAvoidPods *out = make([]PreferAvoidPodsEntry, len(*in)) @@ -269,8 +261,6 @@ func DeepCopy_api_AvoidPods(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.PreferAvoidPods = nil } return nil } @@ -280,28 +270,21 @@ func DeepCopy_api_AzureDiskVolumeSource(in interface{}, out interface{}, c *conv { in := in.(*AzureDiskVolumeSource) out := out.(*AzureDiskVolumeSource) - out.DiskName = in.DiskName - out.DataDiskURI = in.DataDiskURI + *out = *in if in.CachingMode != nil { in, out := &in.CachingMode, &out.CachingMode *out = new(AzureDataDiskCachingMode) **out = **in - } else { - out.CachingMode = nil } if in.FSType != nil { in, out := &in.FSType, &out.FSType *out = new(string) **out = **in - } else { - out.FSType = nil } if in.ReadOnly != nil { in, out := &in.ReadOnly, &out.ReadOnly *out = new(bool) **out = **in - } else { - out.ReadOnly = nil } return nil } @@ -311,9 +294,7 @@ func DeepCopy_api_AzureFileVolumeSource(in interface{}, out interface{}, c *conv { in := in.(*AzureFileVolumeSource) out := out.(*AzureFileVolumeSource) - out.SecretName = in.SecretName - out.ShareName = in.ShareName - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -322,11 +303,10 @@ func DeepCopy_api_Binding(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Binding) out := out.(*Binding) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Target = in.Target return nil } } @@ -335,14 +315,13 @@ func DeepCopy_api_Capabilities(in interface{}, out interface{}, c *conversion.Cl { in := in.(*Capabilities) out := out.(*Capabilities) + *out = *in if in.Add != nil { in, out := &in.Add, &out.Add *out = make([]Capability, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Add = nil } if in.Drop != nil { in, out := &in.Drop, &out.Drop @@ -350,8 +329,6 @@ func DeepCopy_api_Capabilities(in interface{}, out interface{}, c *conversion.Cl for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Drop = nil } return nil } @@ -361,24 +338,17 @@ func DeepCopy_api_CephFSVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*CephFSVolumeSource) out := out.(*CephFSVolumeSource) + *out = *in if in.Monitors != nil { in, out := &in.Monitors, &out.Monitors *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Monitors = nil } - out.Path = in.Path - out.User = in.User - out.SecretFile = in.SecretFile if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly return nil } } @@ -387,9 +357,7 @@ func DeepCopy_api_CinderVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*CinderVolumeSource) out := out.(*CinderVolumeSource) - out.VolumeID = in.VolumeID - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -398,10 +366,7 @@ func DeepCopy_api_ComponentCondition(in interface{}, out interface{}, c *convers { in := in.(*ComponentCondition) out := out.(*ComponentCondition) - out.Type = in.Type - out.Status = in.Status - out.Message = in.Message - out.Error = in.Error + *out = *in return nil } } @@ -410,7 +375,7 @@ func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion { in := in.(*ComponentStatus) out := out.(*ComponentStatus) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -420,8 +385,6 @@ func DeepCopy_api_ComponentStatus(in interface{}, out interface{}, c *conversion for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Conditions = nil } return nil } @@ -431,8 +394,7 @@ func DeepCopy_api_ComponentStatusList(in interface{}, out interface{}, c *conver { in := in.(*ComponentStatusList) out := out.(*ComponentStatusList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ComponentStatus, len(*in)) @@ -441,8 +403,6 @@ func DeepCopy_api_ComponentStatusList(in interface{}, out interface{}, c *conver return err } } - } else { - out.Items = nil } return nil } @@ -452,7 +412,7 @@ func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Clone { in := in.(*ConfigMap) out := out.(*ConfigMap) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -462,8 +422,6 @@ func DeepCopy_api_ConfigMap(in interface{}, out interface{}, c *conversion.Clone for key, val := range *in { (*out)[key] = val } - } else { - out.Data = nil } return nil } @@ -473,7 +431,7 @@ func DeepCopy_api_ConfigMapEnvSource(in interface{}, out interface{}, c *convers { in := in.(*ConfigMapEnvSource) out := out.(*ConfigMapEnvSource) - out.LocalObjectReference = in.LocalObjectReference + *out = *in return nil } } @@ -482,8 +440,7 @@ func DeepCopy_api_ConfigMapKeySelector(in interface{}, out interface{}, c *conve { in := in.(*ConfigMapKeySelector) out := out.(*ConfigMapKeySelector) - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key + *out = *in return nil } } @@ -492,8 +449,7 @@ func DeepCopy_api_ConfigMapList(in interface{}, out interface{}, c *conversion.C { in := in.(*ConfigMapList) out := out.(*ConfigMapList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ConfigMap, len(*in)) @@ -502,8 +458,6 @@ func DeepCopy_api_ConfigMapList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -513,7 +467,7 @@ func DeepCopy_api_ConfigMapVolumeSource(in interface{}, out interface{}, c *conv { in := in.(*ConfigMapVolumeSource) out := out.(*ConfigMapVolumeSource) - out.LocalObjectReference = in.LocalObjectReference + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) @@ -522,15 +476,11 @@ func DeepCopy_api_ConfigMapVolumeSource(in interface{}, out interface{}, c *conv return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -540,31 +490,23 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Container) out := out.(*Container) - out.Name = in.Name - out.Image = in.Image + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } if in.Args != nil { in, out := &in.Args, &out.Args *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Args = nil } - out.WorkingDir = in.WorkingDir if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]ContainerPort, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } if in.EnvFrom != nil { in, out := &in.EnvFrom, &out.EnvFrom @@ -574,8 +516,6 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.EnvFrom = nil } if in.Env != nil { in, out := &in.Env, &out.Env @@ -585,8 +525,6 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Env = nil } if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { return err @@ -597,8 +535,6 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumeMounts = nil } if in.LivenessProbe != nil { in, out := &in.LivenessProbe, &out.LivenessProbe @@ -606,8 +542,6 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone if err := DeepCopy_api_Probe(*in, *out, c); err != nil { return err } - } else { - out.LivenessProbe = nil } if in.ReadinessProbe != nil { in, out := &in.ReadinessProbe, &out.ReadinessProbe @@ -615,8 +549,6 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone if err := DeepCopy_api_Probe(*in, *out, c); err != nil { return err } - } else { - out.ReadinessProbe = nil } if in.Lifecycle != nil { in, out := &in.Lifecycle, &out.Lifecycle @@ -624,23 +556,14 @@ func DeepCopy_api_Container(in interface{}, out interface{}, c *conversion.Clone if err := DeepCopy_api_Lifecycle(*in, *out, c); err != nil { return err } - } else { - out.Lifecycle = nil } - out.TerminationMessagePath = in.TerminationMessagePath - out.ImagePullPolicy = in.ImagePullPolicy if in.SecurityContext != nil { in, out := &in.SecurityContext, &out.SecurityContext *out = new(SecurityContext) if err := DeepCopy_api_SecurityContext(*in, *out, c); err != nil { return err } - } else { - out.SecurityContext = nil } - out.Stdin = in.Stdin - out.StdinOnce = in.StdinOnce - out.TTY = in.TTY return nil } } @@ -649,14 +572,12 @@ func DeepCopy_api_ContainerImage(in interface{}, out interface{}, c *conversion. { in := in.(*ContainerImage) out := out.(*ContainerImage) + *out = *in if in.Names != nil { in, out := &in.Names, &out.Names *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Names = nil } - out.SizeBytes = in.SizeBytes return nil } } @@ -665,11 +586,7 @@ func DeepCopy_api_ContainerPort(in interface{}, out interface{}, c *conversion.C { in := in.(*ContainerPort) out := out.(*ContainerPort) - out.Name = in.Name - out.HostPort = in.HostPort - out.ContainerPort = in.ContainerPort - out.Protocol = in.Protocol - out.HostIP = in.HostIP + *out = *in return nil } } @@ -678,12 +595,11 @@ func DeepCopy_api_ContainerState(in interface{}, out interface{}, c *conversion. { in := in.(*ContainerState) out := out.(*ContainerState) + *out = *in if in.Waiting != nil { in, out := &in.Waiting, &out.Waiting *out = new(ContainerStateWaiting) **out = **in - } else { - out.Waiting = nil } if in.Running != nil { in, out := &in.Running, &out.Running @@ -691,8 +607,6 @@ func DeepCopy_api_ContainerState(in interface{}, out interface{}, c *conversion. if err := DeepCopy_api_ContainerStateRunning(*in, *out, c); err != nil { return err } - } else { - out.Running = nil } if in.Terminated != nil { in, out := &in.Terminated, &out.Terminated @@ -700,8 +614,6 @@ func DeepCopy_api_ContainerState(in interface{}, out interface{}, c *conversion. if err := DeepCopy_api_ContainerStateTerminated(*in, *out, c); err != nil { return err } - } else { - out.Terminated = nil } return nil } @@ -711,6 +623,7 @@ func DeepCopy_api_ContainerStateRunning(in interface{}, out interface{}, c *conv { in := in.(*ContainerStateRunning) out := out.(*ContainerStateRunning) + *out = *in out.StartedAt = in.StartedAt.DeepCopy() return nil } @@ -720,13 +633,9 @@ func DeepCopy_api_ContainerStateTerminated(in interface{}, out interface{}, c *c { in := in.(*ContainerStateTerminated) out := out.(*ContainerStateTerminated) - out.ExitCode = in.ExitCode - out.Signal = in.Signal - out.Reason = in.Reason - out.Message = in.Message + *out = *in out.StartedAt = in.StartedAt.DeepCopy() out.FinishedAt = in.FinishedAt.DeepCopy() - out.ContainerID = in.ContainerID return nil } } @@ -735,8 +644,7 @@ func DeepCopy_api_ContainerStateWaiting(in interface{}, out interface{}, c *conv { in := in.(*ContainerStateWaiting) out := out.(*ContainerStateWaiting) - out.Reason = in.Reason - out.Message = in.Message + *out = *in return nil } } @@ -745,18 +653,13 @@ func DeepCopy_api_ContainerStatus(in interface{}, out interface{}, c *conversion { in := in.(*ContainerStatus) out := out.(*ContainerStatus) - out.Name = in.Name + *out = *in if err := DeepCopy_api_ContainerState(&in.State, &out.State, c); err != nil { return err } if err := DeepCopy_api_ContainerState(&in.LastTerminationState, &out.LastTerminationState, c); err != nil { return err } - out.Ready = in.Ready - out.RestartCount = in.RestartCount - out.Image = in.Image - out.ImageID = in.ImageID - out.ContainerID = in.ContainerID return nil } } @@ -765,21 +668,23 @@ func DeepCopy_api_ConversionError(in interface{}, out interface{}, c *conversion { in := in.(*ConversionError) out := out.(*ConversionError) - if in.In == nil { - out.In = nil - } else if newVal, err := c.DeepCopy(&in.In); err != nil { - return err - } else { - out.In = *newVal.(*interface{}) + *out = *in + // in.In is kind 'Interface' + if in.In != nil { + if newVal, err := c.DeepCopy(&in.In); err != nil { + return err + } else { + out.In = *newVal.(*interface{}) + } } - if in.Out == nil { - out.Out = nil - } else if newVal, err := c.DeepCopy(&in.Out); err != nil { - return err - } else { - out.Out = *newVal.(*interface{}) + // in.Out is kind 'Interface' + if in.Out != nil { + if newVal, err := c.DeepCopy(&in.Out); err != nil { + return err + } else { + out.Out = *newVal.(*interface{}) + } } - out.Message = in.Message return nil } } @@ -788,7 +693,7 @@ func DeepCopy_api_DaemonEndpoint(in interface{}, out interface{}, c *conversion. { in := in.(*DaemonEndpoint) out := out.(*DaemonEndpoint) - out.Port = in.Port + *out = *in return nil } } @@ -797,13 +702,11 @@ func DeepCopy_api_DeleteOptions(in interface{}, out interface{}, c *conversion.C { in := in.(*DeleteOptions) out := out.(*DeleteOptions) - out.TypeMeta = in.TypeMeta + *out = *in if in.GracePeriodSeconds != nil { in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds *out = new(int64) **out = **in - } else { - out.GracePeriodSeconds = nil } if in.Preconditions != nil { in, out := &in.Preconditions, &out.Preconditions @@ -811,15 +714,11 @@ func DeepCopy_api_DeleteOptions(in interface{}, out interface{}, c *conversion.C if err := DeepCopy_api_Preconditions(*in, *out, c); err != nil { return err } - } else { - out.Preconditions = nil } if in.OrphanDependents != nil { in, out := &in.OrphanDependents, &out.OrphanDependents *out = new(bool) **out = **in - } else { - out.OrphanDependents = nil } return nil } @@ -829,13 +728,11 @@ func DeepCopy_api_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conv { in := in.(*DownwardAPIVolumeFile) out := out.(*DownwardAPIVolumeFile) - out.Path = in.Path + *out = *in if in.FieldRef != nil { in, out := &in.FieldRef, &out.FieldRef *out = new(ObjectFieldSelector) **out = **in - } else { - out.FieldRef = nil } if in.ResourceFieldRef != nil { in, out := &in.ResourceFieldRef, &out.ResourceFieldRef @@ -843,15 +740,11 @@ func DeepCopy_api_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conv if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { return err } - } else { - out.ResourceFieldRef = nil } if in.Mode != nil { in, out := &in.Mode, &out.Mode *out = new(int32) **out = **in - } else { - out.Mode = nil } return nil } @@ -861,6 +754,7 @@ func DeepCopy_api_DownwardAPIVolumeSource(in interface{}, out interface{}, c *co { in := in.(*DownwardAPIVolumeSource) out := out.(*DownwardAPIVolumeSource) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DownwardAPIVolumeFile, len(*in)) @@ -869,15 +763,11 @@ func DeepCopy_api_DownwardAPIVolumeSource(in interface{}, out interface{}, c *co return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -887,7 +777,7 @@ func DeepCopy_api_EmptyDirVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*EmptyDirVolumeSource) out := out.(*EmptyDirVolumeSource) - out.Medium = in.Medium + *out = *in return nil } } @@ -896,21 +786,16 @@ func DeepCopy_api_EndpointAddress(in interface{}, out interface{}, c *conversion { in := in.(*EndpointAddress) out := out.(*EndpointAddress) - out.IP = in.IP - out.Hostname = in.Hostname + *out = *in if in.NodeName != nil { in, out := &in.NodeName, &out.NodeName *out = new(string) **out = **in - } else { - out.NodeName = nil } if in.TargetRef != nil { in, out := &in.TargetRef, &out.TargetRef *out = new(ObjectReference) **out = **in - } else { - out.TargetRef = nil } return nil } @@ -920,9 +805,7 @@ func DeepCopy_api_EndpointPort(in interface{}, out interface{}, c *conversion.Cl { in := in.(*EndpointPort) out := out.(*EndpointPort) - out.Name = in.Name - out.Port = in.Port - out.Protocol = in.Protocol + *out = *in return nil } } @@ -931,6 +814,7 @@ func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion. { in := in.(*EndpointSubset) out := out.(*EndpointSubset) + *out = *in if in.Addresses != nil { in, out := &in.Addresses, &out.Addresses *out = make([]EndpointAddress, len(*in)) @@ -939,8 +823,6 @@ func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.Addresses = nil } if in.NotReadyAddresses != nil { in, out := &in.NotReadyAddresses, &out.NotReadyAddresses @@ -950,8 +832,6 @@ func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.NotReadyAddresses = nil } if in.Ports != nil { in, out := &in.Ports, &out.Ports @@ -959,8 +839,6 @@ func DeepCopy_api_EndpointSubset(in interface{}, out interface{}, c *conversion. for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } return nil } @@ -970,7 +848,7 @@ func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Endpoints) out := out.(*Endpoints) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -982,8 +860,6 @@ func DeepCopy_api_Endpoints(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Subsets = nil } return nil } @@ -993,8 +869,7 @@ func DeepCopy_api_EndpointsList(in interface{}, out interface{}, c *conversion.C { in := in.(*EndpointsList) out := out.(*EndpointsList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Endpoints, len(*in)) @@ -1003,8 +878,6 @@ func DeepCopy_api_EndpointsList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -1014,13 +887,11 @@ func DeepCopy_api_EnvFromSource(in interface{}, out interface{}, c *conversion.C { in := in.(*EnvFromSource) out := out.(*EnvFromSource) - out.Prefix = in.Prefix + *out = *in if in.ConfigMapRef != nil { in, out := &in.ConfigMapRef, &out.ConfigMapRef *out = new(ConfigMapEnvSource) **out = **in - } else { - out.ConfigMapRef = nil } return nil } @@ -1030,16 +901,13 @@ func DeepCopy_api_EnvVar(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*EnvVar) out := out.(*EnvVar) - out.Name = in.Name - out.Value = in.Value + *out = *in if in.ValueFrom != nil { in, out := &in.ValueFrom, &out.ValueFrom *out = new(EnvVarSource) if err := DeepCopy_api_EnvVarSource(*in, *out, c); err != nil { return err } - } else { - out.ValueFrom = nil } return nil } @@ -1049,12 +917,11 @@ func DeepCopy_api_EnvVarSource(in interface{}, out interface{}, c *conversion.Cl { in := in.(*EnvVarSource) out := out.(*EnvVarSource) + *out = *in if in.FieldRef != nil { in, out := &in.FieldRef, &out.FieldRef *out = new(ObjectFieldSelector) **out = **in - } else { - out.FieldRef = nil } if in.ResourceFieldRef != nil { in, out := &in.ResourceFieldRef, &out.ResourceFieldRef @@ -1062,22 +929,16 @@ func DeepCopy_api_EnvVarSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_ResourceFieldSelector(*in, *out, c); err != nil { return err } - } else { - out.ResourceFieldRef = nil } if in.ConfigMapKeyRef != nil { in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef *out = new(ConfigMapKeySelector) **out = **in - } else { - out.ConfigMapKeyRef = nil } if in.SecretKeyRef != nil { in, out := &in.SecretKeyRef, &out.SecretKeyRef *out = new(SecretKeySelector) **out = **in - } else { - out.SecretKeyRef = nil } return nil } @@ -1087,18 +948,12 @@ func DeepCopy_api_Event(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Event) out := out.(*Event) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.InvolvedObject = in.InvolvedObject - out.Reason = in.Reason - out.Message = in.Message - out.Source = in.Source out.FirstTimestamp = in.FirstTimestamp.DeepCopy() out.LastTimestamp = in.LastTimestamp.DeepCopy() - out.Count = in.Count - out.Type = in.Type return nil } } @@ -1107,8 +962,7 @@ func DeepCopy_api_EventList(in interface{}, out interface{}, c *conversion.Clone { in := in.(*EventList) out := out.(*EventList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Event, len(*in)) @@ -1117,8 +971,6 @@ func DeepCopy_api_EventList(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Items = nil } return nil } @@ -1128,8 +980,7 @@ func DeepCopy_api_EventSource(in interface{}, out interface{}, c *conversion.Clo { in := in.(*EventSource) out := out.(*EventSource) - out.Component = in.Component - out.Host = in.Host + *out = *in return nil } } @@ -1138,12 +989,11 @@ func DeepCopy_api_ExecAction(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ExecAction) out := out.(*ExecAction) + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } return nil } @@ -1153,22 +1003,17 @@ func DeepCopy_api_FCVolumeSource(in interface{}, out interface{}, c *conversion. { in := in.(*FCVolumeSource) out := out.(*FCVolumeSource) + *out = *in if in.TargetWWNs != nil { in, out := &in.TargetWWNs, &out.TargetWWNs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.TargetWWNs = nil } if in.Lun != nil { in, out := &in.Lun, &out.Lun *out = new(int32) **out = **in - } else { - out.Lun = nil } - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly return nil } } @@ -1177,24 +1022,18 @@ func DeepCopy_api_FlexVolumeSource(in interface{}, out interface{}, c *conversio { in := in.(*FlexVolumeSource) out := out.(*FlexVolumeSource) - out.Driver = in.Driver - out.FSType = in.FSType + *out = *in if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly if in.Options != nil { in, out := &in.Options, &out.Options *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Options = nil } return nil } @@ -1204,8 +1043,7 @@ func DeepCopy_api_FlockerVolumeSource(in interface{}, out interface{}, c *conver { in := in.(*FlockerVolumeSource) out := out.(*FlockerVolumeSource) - out.DatasetName = in.DatasetName - out.DatasetUUID = in.DatasetUUID + *out = *in return nil } } @@ -1214,10 +1052,7 @@ func DeepCopy_api_GCEPersistentDiskVolumeSource(in interface{}, out interface{}, { in := in.(*GCEPersistentDiskVolumeSource) out := out.(*GCEPersistentDiskVolumeSource) - out.PDName = in.PDName - out.FSType = in.FSType - out.Partition = in.Partition - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1226,9 +1061,7 @@ func DeepCopy_api_GitRepoVolumeSource(in interface{}, out interface{}, c *conver { in := in.(*GitRepoVolumeSource) out := out.(*GitRepoVolumeSource) - out.Repository = in.Repository - out.Revision = in.Revision - out.Directory = in.Directory + *out = *in return nil } } @@ -1237,9 +1070,7 @@ func DeepCopy_api_GlusterfsVolumeSource(in interface{}, out interface{}, c *conv { in := in.(*GlusterfsVolumeSource) out := out.(*GlusterfsVolumeSource) - out.EndpointsName = in.EndpointsName - out.Path = in.Path - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1248,18 +1079,13 @@ func DeepCopy_api_HTTPGetAction(in interface{}, out interface{}, c *conversion.C { in := in.(*HTTPGetAction) out := out.(*HTTPGetAction) - out.Path = in.Path - out.Port = in.Port - out.Host = in.Host - out.Scheme = in.Scheme + *out = *in if in.HTTPHeaders != nil { in, out := &in.HTTPHeaders, &out.HTTPHeaders *out = make([]HTTPHeader, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.HTTPHeaders = nil } return nil } @@ -1269,8 +1095,7 @@ func DeepCopy_api_HTTPHeader(in interface{}, out interface{}, c *conversion.Clon { in := in.(*HTTPHeader) out := out.(*HTTPHeader) - out.Name = in.Name - out.Value = in.Value + *out = *in return nil } } @@ -1279,14 +1104,13 @@ func DeepCopy_api_Handler(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Handler) out := out.(*Handler) + *out = *in if in.Exec != nil { in, out := &in.Exec, &out.Exec *out = new(ExecAction) if err := DeepCopy_api_ExecAction(*in, *out, c); err != nil { return err } - } else { - out.Exec = nil } if in.HTTPGet != nil { in, out := &in.HTTPGet, &out.HTTPGet @@ -1294,15 +1118,11 @@ func DeepCopy_api_Handler(in interface{}, out interface{}, c *conversion.Cloner) if err := DeepCopy_api_HTTPGetAction(*in, *out, c); err != nil { return err } - } else { - out.HTTPGet = nil } if in.TCPSocket != nil { in, out := &in.TCPSocket, &out.TCPSocket *out = new(TCPSocketAction) **out = **in - } else { - out.TCPSocket = nil } return nil } @@ -1312,7 +1132,7 @@ func DeepCopy_api_HostPathVolumeSource(in interface{}, out interface{}, c *conve { in := in.(*HostPathVolumeSource) out := out.(*HostPathVolumeSource) - out.Path = in.Path + *out = *in return nil } } @@ -1321,12 +1141,7 @@ func DeepCopy_api_ISCSIVolumeSource(in interface{}, out interface{}, c *conversi { in := in.(*ISCSIVolumeSource) out := out.(*ISCSIVolumeSource) - out.TargetPortal = in.TargetPortal - out.IQN = in.IQN - out.Lun = in.Lun - out.ISCSIInterface = in.ISCSIInterface - out.FSType = in.FSType - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1335,14 +1150,11 @@ func DeepCopy_api_KeyToPath(in interface{}, out interface{}, c *conversion.Clone { in := in.(*KeyToPath) out := out.(*KeyToPath) - out.Key = in.Key - out.Path = in.Path + *out = *in if in.Mode != nil { in, out := &in.Mode, &out.Mode *out = new(int32) **out = **in - } else { - out.Mode = nil } return nil } @@ -1352,14 +1164,13 @@ func DeepCopy_api_Lifecycle(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Lifecycle) out := out.(*Lifecycle) + *out = *in if in.PostStart != nil { in, out := &in.PostStart, &out.PostStart *out = new(Handler) if err := DeepCopy_api_Handler(*in, *out, c); err != nil { return err } - } else { - out.PostStart = nil } if in.PreStop != nil { in, out := &in.PreStop, &out.PreStop @@ -1367,8 +1178,6 @@ func DeepCopy_api_Lifecycle(in interface{}, out interface{}, c *conversion.Clone if err := DeepCopy_api_Handler(*in, *out, c); err != nil { return err } - } else { - out.PreStop = nil } return nil } @@ -1378,7 +1187,7 @@ func DeepCopy_api_LimitRange(in interface{}, out interface{}, c *conversion.Clon { in := in.(*LimitRange) out := out.(*LimitRange) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -1393,15 +1202,13 @@ func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion. { in := in.(*LimitRangeItem) out := out.(*LimitRangeItem) - out.Type = in.Type + *out = *in if in.Max != nil { in, out := &in.Max, &out.Max *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Max = nil } if in.Min != nil { in, out := &in.Min, &out.Min @@ -1409,8 +1216,6 @@ func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion. for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Min = nil } if in.Default != nil { in, out := &in.Default, &out.Default @@ -1418,8 +1223,6 @@ func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion. for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Default = nil } if in.DefaultRequest != nil { in, out := &in.DefaultRequest, &out.DefaultRequest @@ -1427,8 +1230,6 @@ func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion. for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.DefaultRequest = nil } if in.MaxLimitRequestRatio != nil { in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio @@ -1436,8 +1237,6 @@ func DeepCopy_api_LimitRangeItem(in interface{}, out interface{}, c *conversion. for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.MaxLimitRequestRatio = nil } return nil } @@ -1447,8 +1246,7 @@ func DeepCopy_api_LimitRangeList(in interface{}, out interface{}, c *conversion. { in := in.(*LimitRangeList) out := out.(*LimitRangeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]LimitRange, len(*in)) @@ -1457,8 +1255,6 @@ func DeepCopy_api_LimitRangeList(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.Items = nil } return nil } @@ -1468,6 +1264,7 @@ func DeepCopy_api_LimitRangeSpec(in interface{}, out interface{}, c *conversion. { in := in.(*LimitRangeSpec) out := out.(*LimitRangeSpec) + *out = *in if in.Limits != nil { in, out := &in.Limits, &out.Limits *out = make([]LimitRangeItem, len(*in)) @@ -1476,8 +1273,6 @@ func DeepCopy_api_LimitRangeSpec(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.Limits = nil } return nil } @@ -1487,8 +1282,7 @@ func DeepCopy_api_List(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*List) out := out.(*List) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]runtime.Object, len(*in)) @@ -1499,8 +1293,6 @@ func DeepCopy_api_List(in interface{}, out interface{}, c *conversion.Cloner) er (*out)[i] = *newVal.(*runtime.Object) } } - } else { - out.Items = nil } return nil } @@ -1510,29 +1302,27 @@ func DeepCopy_api_ListOptions(in interface{}, out interface{}, c *conversion.Clo { in := in.(*ListOptions) out := out.(*ListOptions) - out.TypeMeta = in.TypeMeta - if in.LabelSelector == nil { - out.LabelSelector = nil - } else if newVal, err := c.DeepCopy(&in.LabelSelector); err != nil { - return err - } else { - out.LabelSelector = *newVal.(*labels.Selector) + *out = *in + // in.LabelSelector is kind 'Interface' + if in.LabelSelector != nil { + if newVal, err := c.DeepCopy(&in.LabelSelector); err != nil { + return err + } else { + out.LabelSelector = *newVal.(*labels.Selector) + } } - if in.FieldSelector == nil { - out.FieldSelector = nil - } else if newVal, err := c.DeepCopy(&in.FieldSelector); err != nil { - return err - } else { - out.FieldSelector = *newVal.(*fields.Selector) + // in.FieldSelector is kind 'Interface' + if in.FieldSelector != nil { + if newVal, err := c.DeepCopy(&in.FieldSelector); err != nil { + return err + } else { + out.FieldSelector = *newVal.(*fields.Selector) + } } - out.Watch = in.Watch - out.ResourceVersion = in.ResourceVersion if in.TimeoutSeconds != nil { in, out := &in.TimeoutSeconds, &out.TimeoutSeconds *out = new(int64) **out = **in - } else { - out.TimeoutSeconds = nil } return nil } @@ -1542,8 +1332,7 @@ func DeepCopy_api_LoadBalancerIngress(in interface{}, out interface{}, c *conver { in := in.(*LoadBalancerIngress) out := out.(*LoadBalancerIngress) - out.IP = in.IP - out.Hostname = in.Hostname + *out = *in return nil } } @@ -1552,14 +1341,13 @@ func DeepCopy_api_LoadBalancerStatus(in interface{}, out interface{}, c *convers { in := in.(*LoadBalancerStatus) out := out.(*LoadBalancerStatus) + *out = *in if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]LoadBalancerIngress, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ingress = nil } return nil } @@ -1569,7 +1357,7 @@ func DeepCopy_api_LocalObjectReference(in interface{}, out interface{}, c *conve { in := in.(*LocalObjectReference) out := out.(*LocalObjectReference) - out.Name = in.Name + *out = *in return nil } } @@ -1578,9 +1366,7 @@ func DeepCopy_api_NFSVolumeSource(in interface{}, out interface{}, c *conversion { in := in.(*NFSVolumeSource) out := out.(*NFSVolumeSource) - out.Server = in.Server - out.Path = in.Path - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -1589,14 +1375,13 @@ func DeepCopy_api_Namespace(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Namespace) out := out.(*Namespace) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_api_NamespaceSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -1605,8 +1390,7 @@ func DeepCopy_api_NamespaceList(in interface{}, out interface{}, c *conversion.C { in := in.(*NamespaceList) out := out.(*NamespaceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Namespace, len(*in)) @@ -1615,8 +1399,6 @@ func DeepCopy_api_NamespaceList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -1626,14 +1408,13 @@ func DeepCopy_api_NamespaceSpec(in interface{}, out interface{}, c *conversion.C { in := in.(*NamespaceSpec) out := out.(*NamespaceSpec) + *out = *in if in.Finalizers != nil { in, out := &in.Finalizers, &out.Finalizers *out = make([]FinalizerName, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Finalizers = nil } return nil } @@ -1643,7 +1424,7 @@ func DeepCopy_api_NamespaceStatus(in interface{}, out interface{}, c *conversion { in := in.(*NamespaceStatus) out := out.(*NamespaceStatus) - out.Phase = in.Phase + *out = *in return nil } } @@ -1652,11 +1433,10 @@ func DeepCopy_api_Node(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Node) out := out.(*Node) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_api_NodeStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -1668,8 +1448,7 @@ func DeepCopy_api_NodeAddress(in interface{}, out interface{}, c *conversion.Clo { in := in.(*NodeAddress) out := out.(*NodeAddress) - out.Type = in.Type - out.Address = in.Address + *out = *in return nil } } @@ -1678,14 +1457,13 @@ func DeepCopy_api_NodeAffinity(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NodeAffinity) out := out.(*NodeAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = new(NodeSelector) if err := DeepCopy_api_NodeSelector(*in, *out, c); err != nil { return err } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -1695,8 +1473,6 @@ func DeepCopy_api_NodeAffinity(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -1706,12 +1482,9 @@ func DeepCopy_api_NodeCondition(in interface{}, out interface{}, c *conversion.C { in := in.(*NodeCondition) out := out.(*NodeCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastHeartbeatTime = in.LastHeartbeatTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -1720,7 +1493,7 @@ func DeepCopy_api_NodeDaemonEndpoints(in interface{}, out interface{}, c *conver { in := in.(*NodeDaemonEndpoints) out := out.(*NodeDaemonEndpoints) - out.KubeletEndpoint = in.KubeletEndpoint + *out = *in return nil } } @@ -1729,8 +1502,7 @@ func DeepCopy_api_NodeList(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*NodeList) out := out.(*NodeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Node, len(*in)) @@ -1739,8 +1511,6 @@ func DeepCopy_api_NodeList(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Items = nil } return nil } @@ -1750,8 +1520,7 @@ func DeepCopy_api_NodeProxyOptions(in interface{}, out interface{}, c *conversio { in := in.(*NodeProxyOptions) out := out.(*NodeProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -1760,14 +1529,13 @@ func DeepCopy_api_NodeResources(in interface{}, out interface{}, c *conversion.C { in := in.(*NodeResources) out := out.(*NodeResources) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } return nil } @@ -1777,6 +1545,7 @@ func DeepCopy_api_NodeSelector(in interface{}, out interface{}, c *conversion.Cl { in := in.(*NodeSelector) out := out.(*NodeSelector) + *out = *in if in.NodeSelectorTerms != nil { in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms *out = make([]NodeSelectorTerm, len(*in)) @@ -1785,8 +1554,6 @@ func DeepCopy_api_NodeSelector(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.NodeSelectorTerms = nil } return nil } @@ -1796,14 +1563,11 @@ func DeepCopy_api_NodeSelectorRequirement(in interface{}, out interface{}, c *co { in := in.(*NodeSelectorRequirement) out := out.(*NodeSelectorRequirement) - out.Key = in.Key - out.Operator = in.Operator + *out = *in if in.Values != nil { in, out := &in.Values, &out.Values *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Values = nil } return nil } @@ -1813,6 +1577,7 @@ func DeepCopy_api_NodeSelectorTerm(in interface{}, out interface{}, c *conversio { in := in.(*NodeSelectorTerm) out := out.(*NodeSelectorTerm) + *out = *in if in.MatchExpressions != nil { in, out := &in.MatchExpressions, &out.MatchExpressions *out = make([]NodeSelectorRequirement, len(*in)) @@ -1821,8 +1586,6 @@ func DeepCopy_api_NodeSelectorTerm(in interface{}, out interface{}, c *conversio return err } } - } else { - out.MatchExpressions = nil } return nil } @@ -1832,10 +1595,7 @@ func DeepCopy_api_NodeSpec(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*NodeSpec) out := out.(*NodeSpec) - out.PodCIDR = in.PodCIDR - out.ExternalID = in.ExternalID - out.ProviderID = in.ProviderID - out.Unschedulable = in.Unschedulable + *out = *in return nil } } @@ -1844,14 +1604,13 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon { in := in.(*NodeStatus) out := out.(*NodeStatus) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } if in.Allocatable != nil { in, out := &in.Allocatable, &out.Allocatable @@ -1859,10 +1618,7 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Allocatable = nil } - out.Phase = in.Phase if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]NodeCondition, len(*in)) @@ -1871,8 +1627,6 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.Conditions = nil } if in.Addresses != nil { in, out := &in.Addresses, &out.Addresses @@ -1880,11 +1634,7 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Addresses = nil } - out.DaemonEndpoints = in.DaemonEndpoints - out.NodeInfo = in.NodeInfo if in.Images != nil { in, out := &in.Images, &out.Images *out = make([]ContainerImage, len(*in)) @@ -1893,8 +1643,6 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.Images = nil } if in.VolumesInUse != nil { in, out := &in.VolumesInUse, &out.VolumesInUse @@ -1902,8 +1650,6 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumesInUse = nil } if in.VolumesAttached != nil { in, out := &in.VolumesAttached, &out.VolumesAttached @@ -1911,8 +1657,6 @@ func DeepCopy_api_NodeStatus(in interface{}, out interface{}, c *conversion.Clon for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.VolumesAttached = nil } return nil } @@ -1922,16 +1666,7 @@ func DeepCopy_api_NodeSystemInfo(in interface{}, out interface{}, c *conversion. { in := in.(*NodeSystemInfo) out := out.(*NodeSystemInfo) - out.MachineID = in.MachineID - out.SystemUUID = in.SystemUUID - out.BootID = in.BootID - out.KernelVersion = in.KernelVersion - out.OSImage = in.OSImage - out.ContainerRuntimeVersion = in.ContainerRuntimeVersion - out.KubeletVersion = in.KubeletVersion - out.KubeProxyVersion = in.KubeProxyVersion - out.OperatingSystem = in.OperatingSystem - out.Architecture = in.Architecture + *out = *in return nil } } @@ -1940,8 +1675,7 @@ func DeepCopy_api_ObjectFieldSelector(in interface{}, out interface{}, c *conver { in := in.(*ObjectFieldSelector) out := out.(*ObjectFieldSelector) - out.APIVersion = in.APIVersion - out.FieldPath = in.FieldPath + *out = *in return nil } } @@ -1950,27 +1684,17 @@ func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ObjectMeta) out := out.(*ObjectMeta) - out.Name = in.Name - out.GenerateName = in.GenerateName - out.Namespace = in.Namespace - out.SelfLink = in.SelfLink - out.UID = in.UID - out.ResourceVersion = in.ResourceVersion - out.Generation = in.Generation + *out = *in out.CreationTimestamp = in.CreationTimestamp.DeepCopy() if in.DeletionTimestamp != nil { in, out := &in.DeletionTimestamp, &out.DeletionTimestamp *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.DeletionTimestamp = nil } if in.DeletionGracePeriodSeconds != nil { in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds *out = new(int64) **out = **in - } else { - out.DeletionGracePeriodSeconds = nil } if in.Labels != nil { in, out := &in.Labels, &out.Labels @@ -1978,8 +1702,6 @@ func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Clon for key, val := range *in { (*out)[key] = val } - } else { - out.Labels = nil } if in.Annotations != nil { in, out := &in.Annotations, &out.Annotations @@ -1987,8 +1709,6 @@ func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Clon for key, val := range *in { (*out)[key] = val } - } else { - out.Annotations = nil } if in.OwnerReferences != nil { in, out := &in.OwnerReferences, &out.OwnerReferences @@ -1998,17 +1718,12 @@ func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.OwnerReferences = nil } if in.Finalizers != nil { in, out := &in.Finalizers, &out.Finalizers *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Finalizers = nil } - out.ClusterName = in.ClusterName return nil } } @@ -2017,13 +1732,7 @@ func DeepCopy_api_ObjectReference(in interface{}, out interface{}, c *conversion { in := in.(*ObjectReference) out := out.(*ObjectReference) - out.Kind = in.Kind - out.Namespace = in.Namespace - out.Name = in.Name - out.UID = in.UID - out.APIVersion = in.APIVersion - out.ResourceVersion = in.ResourceVersion - out.FieldPath = in.FieldPath + *out = *in return nil } } @@ -2032,14 +1741,13 @@ func DeepCopy_api_PersistentVolume(in interface{}, out interface{}, c *conversio { in := in.(*PersistentVolume) out := out.(*PersistentVolume) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_api_PersistentVolumeSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -2048,7 +1756,7 @@ func DeepCopy_api_PersistentVolumeClaim(in interface{}, out interface{}, c *conv { in := in.(*PersistentVolumeClaim) out := out.(*PersistentVolumeClaim) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2066,8 +1774,7 @@ func DeepCopy_api_PersistentVolumeClaimList(in interface{}, out interface{}, c * { in := in.(*PersistentVolumeClaimList) out := out.(*PersistentVolumeClaimList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PersistentVolumeClaim, len(*in)) @@ -2076,8 +1783,6 @@ func DeepCopy_api_PersistentVolumeClaimList(in interface{}, out interface{}, c * return err } } - } else { - out.Items = nil } return nil } @@ -2087,14 +1792,13 @@ func DeepCopy_api_PersistentVolumeClaimSpec(in interface{}, out interface{}, c * { in := in.(*PersistentVolumeClaimSpec) out := out.(*PersistentVolumeClaimSpec) + *out = *in if in.AccessModes != nil { in, out := &in.AccessModes, &out.AccessModes *out = make([]PersistentVolumeAccessMode, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -2102,13 +1806,10 @@ func DeepCopy_api_PersistentVolumeClaimSpec(in interface{}, out interface{}, c * if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := DeepCopy_api_ResourceRequirements(&in.Resources, &out.Resources, c); err != nil { return err } - out.VolumeName = in.VolumeName return nil } } @@ -2117,15 +1818,13 @@ func DeepCopy_api_PersistentVolumeClaimStatus(in interface{}, out interface{}, c { in := in.(*PersistentVolumeClaimStatus) out := out.(*PersistentVolumeClaimStatus) - out.Phase = in.Phase + *out = *in if in.AccessModes != nil { in, out := &in.AccessModes, &out.AccessModes *out = make([]PersistentVolumeAccessMode, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity @@ -2133,8 +1832,6 @@ func DeepCopy_api_PersistentVolumeClaimStatus(in interface{}, out interface{}, c for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } return nil } @@ -2144,8 +1841,7 @@ func DeepCopy_api_PersistentVolumeClaimVolumeSource(in interface{}, out interfac { in := in.(*PersistentVolumeClaimVolumeSource) out := out.(*PersistentVolumeClaimVolumeSource) - out.ClaimName = in.ClaimName - out.ReadOnly = in.ReadOnly + *out = *in return nil } } @@ -2154,8 +1850,7 @@ func DeepCopy_api_PersistentVolumeList(in interface{}, out interface{}, c *conve { in := in.(*PersistentVolumeList) out := out.(*PersistentVolumeList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PersistentVolume, len(*in)) @@ -2164,8 +1859,6 @@ func DeepCopy_api_PersistentVolumeList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } @@ -2175,40 +1868,31 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con { in := in.(*PersistentVolumeSource) out := out.(*PersistentVolumeSource) + *out = *in if in.GCEPersistentDisk != nil { in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk *out = new(GCEPersistentDiskVolumeSource) **out = **in - } else { - out.GCEPersistentDisk = nil } if in.AWSElasticBlockStore != nil { in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore *out = new(AWSElasticBlockStoreVolumeSource) **out = **in - } else { - out.AWSElasticBlockStore = nil } if in.HostPath != nil { in, out := &in.HostPath, &out.HostPath *out = new(HostPathVolumeSource) **out = **in - } else { - out.HostPath = nil } if in.Glusterfs != nil { in, out := &in.Glusterfs, &out.Glusterfs *out = new(GlusterfsVolumeSource) **out = **in - } else { - out.Glusterfs = nil } if in.NFS != nil { in, out := &in.NFS, &out.NFS *out = new(NFSVolumeSource) **out = **in - } else { - out.NFS = nil } if in.RBD != nil { in, out := &in.RBD, &out.RBD @@ -2216,22 +1900,16 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.RBD = nil } if in.Quobyte != nil { in, out := &in.Quobyte, &out.Quobyte *out = new(QuobyteVolumeSource) **out = **in - } else { - out.Quobyte = nil } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) **out = **in - } else { - out.ISCSI = nil } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume @@ -2239,15 +1917,11 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FlexVolume = nil } if in.Cinder != nil { in, out := &in.Cinder, &out.Cinder *out = new(CinderVolumeSource) **out = **in - } else { - out.Cinder = nil } if in.CephFS != nil { in, out := &in.CephFS, &out.CephFS @@ -2255,8 +1929,6 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.CephFS = nil } if in.FC != nil { in, out := &in.FC, &out.FC @@ -2264,29 +1936,21 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FC = nil } if in.Flocker != nil { in, out := &in.Flocker, &out.Flocker *out = new(FlockerVolumeSource) **out = **in - } else { - out.Flocker = nil } if in.AzureFile != nil { in, out := &in.AzureFile, &out.AzureFile *out = new(AzureFileVolumeSource) **out = **in - } else { - out.AzureFile = nil } if in.VsphereVolume != nil { in, out := &in.VsphereVolume, &out.VsphereVolume *out = new(VsphereVirtualDiskVolumeSource) **out = **in - } else { - out.VsphereVolume = nil } if in.AzureDisk != nil { in, out := &in.AzureDisk, &out.AzureDisk @@ -2294,15 +1958,11 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con if err := DeepCopy_api_AzureDiskVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.AzureDisk = nil } if in.PhotonPersistentDisk != nil { in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk *out = new(PhotonPersistentDiskVolumeSource) **out = **in - } else { - out.PhotonPersistentDisk = nil } return nil } @@ -2312,14 +1972,13 @@ func DeepCopy_api_PersistentVolumeSpec(in interface{}, out interface{}, c *conve { in := in.(*PersistentVolumeSpec) out := out.(*PersistentVolumeSpec) + *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Capacity = nil } if err := DeepCopy_api_PersistentVolumeSource(&in.PersistentVolumeSource, &out.PersistentVolumeSource, c); err != nil { return err @@ -2330,17 +1989,12 @@ func DeepCopy_api_PersistentVolumeSpec(in interface{}, out interface{}, c *conve for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AccessModes = nil } if in.ClaimRef != nil { in, out := &in.ClaimRef, &out.ClaimRef *out = new(ObjectReference) **out = **in - } else { - out.ClaimRef = nil } - out.PersistentVolumeReclaimPolicy = in.PersistentVolumeReclaimPolicy return nil } } @@ -2349,9 +2003,7 @@ func DeepCopy_api_PersistentVolumeStatus(in interface{}, out interface{}, c *con { in := in.(*PersistentVolumeStatus) out := out.(*PersistentVolumeStatus) - out.Phase = in.Phase - out.Message = in.Message - out.Reason = in.Reason + *out = *in return nil } } @@ -2360,8 +2012,7 @@ func DeepCopy_api_PhotonPersistentDiskVolumeSource(in interface{}, out interface { in := in.(*PhotonPersistentDiskVolumeSource) out := out.(*PhotonPersistentDiskVolumeSource) - out.PdID = in.PdID - out.FSType = in.FSType + *out = *in return nil } } @@ -2370,7 +2021,7 @@ func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) err { in := in.(*Pod) out := out.(*Pod) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2388,6 +2039,7 @@ func DeepCopy_api_PodAffinity(in interface{}, out interface{}, c *conversion.Clo { in := in.(*PodAffinity) out := out.(*PodAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = make([]PodAffinityTerm, len(*in)) @@ -2396,8 +2048,6 @@ func DeepCopy_api_PodAffinity(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -2407,8 +2057,6 @@ func DeepCopy_api_PodAffinity(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -2418,23 +2066,19 @@ func DeepCopy_api_PodAffinityTerm(in interface{}, out interface{}, c *conversion { in := in.(*PodAffinityTerm) out := out.(*PodAffinityTerm) + *out = *in if in.LabelSelector != nil { in, out := &in.LabelSelector, &out.LabelSelector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.LabelSelector = nil } if in.Namespaces != nil { in, out := &in.Namespaces, &out.Namespaces *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Namespaces = nil } - out.TopologyKey = in.TopologyKey return nil } } @@ -2443,6 +2087,7 @@ func DeepCopy_api_PodAntiAffinity(in interface{}, out interface{}, c *conversion { in := in.(*PodAntiAffinity) out := out.(*PodAntiAffinity) + *out = *in if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution *out = make([]PodAffinityTerm, len(*in)) @@ -2451,8 +2096,6 @@ func DeepCopy_api_PodAntiAffinity(in interface{}, out interface{}, c *conversion return err } } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = nil } if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution @@ -2462,8 +2105,6 @@ func DeepCopy_api_PodAntiAffinity(in interface{}, out interface{}, c *conversion return err } } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = nil } return nil } @@ -2473,12 +2114,7 @@ func DeepCopy_api_PodAttachOptions(in interface{}, out interface{}, c *conversio { in := in.(*PodAttachOptions) out := out.(*PodAttachOptions) - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container + *out = *in return nil } } @@ -2487,12 +2123,9 @@ func DeepCopy_api_PodCondition(in interface{}, out interface{}, c *conversion.Cl { in := in.(*PodCondition) out := out.(*PodCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -2501,18 +2134,11 @@ func DeepCopy_api_PodExecOptions(in interface{}, out interface{}, c *conversion. { in := in.(*PodExecOptions) out := out.(*PodExecOptions) - out.TypeMeta = in.TypeMeta - out.Stdin = in.Stdin - out.Stdout = in.Stdout - out.Stderr = in.Stderr - out.TTY = in.TTY - out.Container = in.Container + *out = *in if in.Command != nil { in, out := &in.Command, &out.Command *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Command = nil } return nil } @@ -2522,8 +2148,7 @@ func DeepCopy_api_PodList(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*PodList) out := out.(*PodList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Pod, len(*in)) @@ -2532,8 +2157,6 @@ func DeepCopy_api_PodList(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Items = nil } return nil } @@ -2543,38 +2166,26 @@ func DeepCopy_api_PodLogOptions(in interface{}, out interface{}, c *conversion.C { in := in.(*PodLogOptions) out := out.(*PodLogOptions) - out.TypeMeta = in.TypeMeta - out.Container = in.Container - out.Follow = in.Follow - out.Previous = in.Previous + *out = *in if in.SinceSeconds != nil { in, out := &in.SinceSeconds, &out.SinceSeconds *out = new(int64) **out = **in - } else { - out.SinceSeconds = nil } if in.SinceTime != nil { in, out := &in.SinceTime, &out.SinceTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.SinceTime = nil } - out.Timestamps = in.Timestamps if in.TailLines != nil { in, out := &in.TailLines, &out.TailLines *out = new(int64) **out = **in - } else { - out.TailLines = nil } if in.LimitBytes != nil { in, out := &in.LimitBytes, &out.LimitBytes *out = new(int64) **out = **in - } else { - out.LimitBytes = nil } return nil } @@ -2584,8 +2195,7 @@ func DeepCopy_api_PodProxyOptions(in interface{}, out interface{}, c *conversion { in := in.(*PodProxyOptions) out := out.(*PodProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -2594,43 +2204,31 @@ func DeepCopy_api_PodSecurityContext(in interface{}, out interface{}, c *convers { in := in.(*PodSecurityContext) out := out.(*PodSecurityContext) - out.HostNetwork = in.HostNetwork - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC + *out = *in if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } if in.RunAsUser != nil { in, out := &in.RunAsUser, &out.RunAsUser *out = new(int64) **out = **in - } else { - out.RunAsUser = nil } if in.RunAsNonRoot != nil { in, out := &in.RunAsNonRoot, &out.RunAsNonRoot *out = new(bool) **out = **in - } else { - out.RunAsNonRoot = nil } if in.SupplementalGroups != nil { in, out := &in.SupplementalGroups, &out.SupplementalGroups *out = make([]int64, len(*in)) copy(*out, *in) - } else { - out.SupplementalGroups = nil } if in.FSGroup != nil { in, out := &in.FSGroup, &out.FSGroup *out = new(int64) **out = **in - } else { - out.FSGroup = nil } return nil } @@ -2640,14 +2238,13 @@ func DeepCopy_api_PodSignature(in interface{}, out interface{}, c *conversion.Cl { in := in.(*PodSignature) out := out.(*PodSignature) + *out = *in if in.PodController != nil { in, out := &in.PodController, &out.PodController *out = new(v1.OwnerReference) if err := v1.DeepCopy_v1_OwnerReference(*in, *out, c); err != nil { return err } - } else { - out.PodController = nil } return nil } @@ -2657,6 +2254,7 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*PodSpec) out := out.(*PodSpec) + *out = *in if in.Volumes != nil { in, out := &in.Volumes, &out.Volumes *out = make([]Volume, len(*in)) @@ -2665,8 +2263,6 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Volumes = nil } if in.InitContainers != nil { in, out := &in.InitContainers, &out.InitContainers @@ -2676,8 +2272,6 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.InitContainers = nil } if in.Containers != nil { in, out := &in.Containers, &out.Containers @@ -2687,44 +2281,30 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Containers = nil } - out.RestartPolicy = in.RestartPolicy if in.TerminationGracePeriodSeconds != nil { in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds *out = new(int64) **out = **in - } else { - out.TerminationGracePeriodSeconds = nil } if in.ActiveDeadlineSeconds != nil { in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds *out = new(int64) **out = **in - } else { - out.ActiveDeadlineSeconds = nil } - out.DNSPolicy = in.DNSPolicy if in.NodeSelector != nil { in, out := &in.NodeSelector, &out.NodeSelector *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.NodeSelector = nil } - out.ServiceAccountName = in.ServiceAccountName - out.NodeName = in.NodeName if in.SecurityContext != nil { in, out := &in.SecurityContext, &out.SecurityContext *out = new(PodSecurityContext) if err := DeepCopy_api_PodSecurityContext(*in, *out, c); err != nil { return err } - } else { - out.SecurityContext = nil } if in.ImagePullSecrets != nil { in, out := &in.ImagePullSecrets, &out.ImagePullSecrets @@ -2732,19 +2312,13 @@ func DeepCopy_api_PodSpec(in interface{}, out interface{}, c *conversion.Cloner) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ImagePullSecrets = nil } - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain if in.Affinity != nil { in, out := &in.Affinity, &out.Affinity *out = new(Affinity) if err := DeepCopy_api_Affinity(*in, *out, c); err != nil { return err } - } else { - out.Affinity = nil } return nil } @@ -2754,7 +2328,7 @@ func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Clone { in := in.(*PodStatus) out := out.(*PodStatus) - out.Phase = in.Phase + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]PodCondition, len(*in)) @@ -2763,21 +2337,12 @@ func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Conditions = nil } - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.PodIP = in.PodIP if in.StartTime != nil { in, out := &in.StartTime, &out.StartTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.StartTime = nil } - out.QOSClass = in.QOSClass if in.InitContainerStatuses != nil { in, out := &in.InitContainerStatuses, &out.InitContainerStatuses *out = make([]ContainerStatus, len(*in)) @@ -2786,8 +2351,6 @@ func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.InitContainerStatuses = nil } if in.ContainerStatuses != nil { in, out := &in.ContainerStatuses, &out.ContainerStatuses @@ -2797,8 +2360,6 @@ func DeepCopy_api_PodStatus(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.ContainerStatuses = nil } return nil } @@ -2808,7 +2369,7 @@ func DeepCopy_api_PodStatusResult(in interface{}, out interface{}, c *conversion { in := in.(*PodStatusResult) out := out.(*PodStatusResult) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2823,7 +2384,7 @@ func DeepCopy_api_PodTemplate(in interface{}, out interface{}, c *conversion.Clo { in := in.(*PodTemplate) out := out.(*PodTemplate) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2838,8 +2399,7 @@ func DeepCopy_api_PodTemplateList(in interface{}, out interface{}, c *conversion { in := in.(*PodTemplateList) out := out.(*PodTemplateList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodTemplate, len(*in)) @@ -2848,8 +2408,6 @@ func DeepCopy_api_PodTemplateList(in interface{}, out interface{}, c *conversion return err } } - } else { - out.Items = nil } return nil } @@ -2859,6 +2417,7 @@ func DeepCopy_api_PodTemplateSpec(in interface{}, out interface{}, c *conversion { in := in.(*PodTemplateSpec) out := out.(*PodTemplateSpec) + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -2873,12 +2432,11 @@ func DeepCopy_api_Preconditions(in interface{}, out interface{}, c *conversion.C { in := in.(*Preconditions) out := out.(*Preconditions) + *out = *in if in.UID != nil { in, out := &in.UID, &out.UID *out = new(types.UID) **out = **in - } else { - out.UID = nil } return nil } @@ -2888,12 +2446,11 @@ func DeepCopy_api_PreferAvoidPodsEntry(in interface{}, out interface{}, c *conve { in := in.(*PreferAvoidPodsEntry) out := out.(*PreferAvoidPodsEntry) + *out = *in if err := DeepCopy_api_PodSignature(&in.PodSignature, &out.PodSignature, c); err != nil { return err } out.EvictionTime = in.EvictionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -2902,7 +2459,7 @@ func DeepCopy_api_PreferredSchedulingTerm(in interface{}, out interface{}, c *co { in := in.(*PreferredSchedulingTerm) out := out.(*PreferredSchedulingTerm) - out.Weight = in.Weight + *out = *in if err := DeepCopy_api_NodeSelectorTerm(&in.Preference, &out.Preference, c); err != nil { return err } @@ -2914,14 +2471,10 @@ func DeepCopy_api_Probe(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Probe) out := out.(*Probe) + *out = *in if err := DeepCopy_api_Handler(&in.Handler, &out.Handler, c); err != nil { return err } - out.InitialDelaySeconds = in.InitialDelaySeconds - out.TimeoutSeconds = in.TimeoutSeconds - out.PeriodSeconds = in.PeriodSeconds - out.SuccessThreshold = in.SuccessThreshold - out.FailureThreshold = in.FailureThreshold return nil } } @@ -2930,11 +2483,7 @@ func DeepCopy_api_QuobyteVolumeSource(in interface{}, out interface{}, c *conver { in := in.(*QuobyteVolumeSource) out := out.(*QuobyteVolumeSource) - out.Registry = in.Registry - out.Volume = in.Volume - out.ReadOnly = in.ReadOnly - out.User = in.User - out.Group = in.Group + *out = *in return nil } } @@ -2943,26 +2492,17 @@ func DeepCopy_api_RBDVolumeSource(in interface{}, out interface{}, c *conversion { in := in.(*RBDVolumeSource) out := out.(*RBDVolumeSource) + *out = *in if in.CephMonitors != nil { in, out := &in.CephMonitors, &out.CephMonitors *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.CephMonitors = nil - } - out.RBDImage = in.RBDImage - out.FSType = in.FSType - out.RBDPool = in.RBDPool - out.RadosUser = in.RadosUser - out.Keyring = in.Keyring + } if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef *out = new(LocalObjectReference) **out = **in - } else { - out.SecretRef = nil } - out.ReadOnly = in.ReadOnly return nil } } @@ -2971,17 +2511,14 @@ func DeepCopy_api_RangeAllocation(in interface{}, out interface{}, c *conversion { in := in.(*RangeAllocation) out := out.(*RangeAllocation) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Range = in.Range if in.Data != nil { in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Data = nil } return nil } @@ -2991,7 +2528,7 @@ func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conv { in := in.(*ReplicationController) out := out.(*ReplicationController) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3009,11 +2546,8 @@ func DeepCopy_api_ReplicationControllerCondition(in interface{}, out interface{} { in := in.(*ReplicationControllerCondition) out := out.(*ReplicationControllerCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -3022,8 +2556,7 @@ func DeepCopy_api_ReplicationControllerList(in interface{}, out interface{}, c * { in := in.(*ReplicationControllerList) out := out.(*ReplicationControllerList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicationController, len(*in)) @@ -3032,8 +2565,6 @@ func DeepCopy_api_ReplicationControllerList(in interface{}, out interface{}, c * return err } } - } else { - out.Items = nil } return nil } @@ -3043,16 +2574,13 @@ func DeepCopy_api_ReplicationControllerSpec(in interface{}, out interface{}, c * { in := in.(*ReplicationControllerSpec) out := out.(*ReplicationControllerSpec) - out.Replicas = in.Replicas - out.MinReadySeconds = in.MinReadySeconds + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Selector = nil } if in.Template != nil { in, out := &in.Template, &out.Template @@ -3060,8 +2588,6 @@ func DeepCopy_api_ReplicationControllerSpec(in interface{}, out interface{}, c * if err := DeepCopy_api_PodTemplateSpec(*in, *out, c); err != nil { return err } - } else { - out.Template = nil } return nil } @@ -3071,11 +2597,7 @@ func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c { in := in.(*ReplicationControllerStatus) out := out.(*ReplicationControllerStatus) - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ReplicationControllerCondition, len(*in)) @@ -3084,8 +2606,6 @@ func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c return err } } - } else { - out.Conditions = nil } return nil } @@ -3095,8 +2615,7 @@ func DeepCopy_api_ResourceFieldSelector(in interface{}, out interface{}, c *conv { in := in.(*ResourceFieldSelector) out := out.(*ResourceFieldSelector) - out.ContainerName = in.ContainerName - out.Resource = in.Resource + *out = *in out.Divisor = in.Divisor.DeepCopy() return nil } @@ -3106,7 +2625,7 @@ func DeepCopy_api_ResourceQuota(in interface{}, out interface{}, c *conversion.C { in := in.(*ResourceQuota) out := out.(*ResourceQuota) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3124,8 +2643,7 @@ func DeepCopy_api_ResourceQuotaList(in interface{}, out interface{}, c *conversi { in := in.(*ResourceQuotaList) out := out.(*ResourceQuotaList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ResourceQuota, len(*in)) @@ -3134,8 +2652,6 @@ func DeepCopy_api_ResourceQuotaList(in interface{}, out interface{}, c *conversi return err } } - } else { - out.Items = nil } return nil } @@ -3145,14 +2661,13 @@ func DeepCopy_api_ResourceQuotaSpec(in interface{}, out interface{}, c *conversi { in := in.(*ResourceQuotaSpec) out := out.(*ResourceQuotaSpec) + *out = *in if in.Hard != nil { in, out := &in.Hard, &out.Hard *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Hard = nil } if in.Scopes != nil { in, out := &in.Scopes, &out.Scopes @@ -3160,8 +2675,6 @@ func DeepCopy_api_ResourceQuotaSpec(in interface{}, out interface{}, c *conversi for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Scopes = nil } return nil } @@ -3171,14 +2684,13 @@ func DeepCopy_api_ResourceQuotaStatus(in interface{}, out interface{}, c *conver { in := in.(*ResourceQuotaStatus) out := out.(*ResourceQuotaStatus) + *out = *in if in.Hard != nil { in, out := &in.Hard, &out.Hard *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Hard = nil } if in.Used != nil { in, out := &in.Used, &out.Used @@ -3186,8 +2698,6 @@ func DeepCopy_api_ResourceQuotaStatus(in interface{}, out interface{}, c *conver for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Used = nil } return nil } @@ -3197,14 +2707,13 @@ func DeepCopy_api_ResourceRequirements(in interface{}, out interface{}, c *conve { in := in.(*ResourceRequirements) out := out.(*ResourceRequirements) + *out = *in if in.Limits != nil { in, out := &in.Limits, &out.Limits *out = make(ResourceList) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Limits = nil } if in.Requests != nil { in, out := &in.Requests, &out.Requests @@ -3212,8 +2721,6 @@ func DeepCopy_api_ResourceRequirements(in interface{}, out interface{}, c *conve for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.Requests = nil } return nil } @@ -3223,10 +2730,7 @@ func DeepCopy_api_SELinuxOptions(in interface{}, out interface{}, c *conversion. { in := in.(*SELinuxOptions) out := out.(*SELinuxOptions) - out.User = in.User - out.Role = in.Role - out.Type = in.Type - out.Level = in.Level + *out = *in return nil } } @@ -3235,7 +2739,7 @@ func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Secret) out := out.(*Secret) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3249,10 +2753,7 @@ func DeepCopy_api_Secret(in interface{}, out interface{}, c *conversion.Cloner) (*out)[key] = *newVal.(*[]byte) } } - } else { - out.Data = nil } - out.Type = in.Type return nil } } @@ -3261,8 +2762,7 @@ func DeepCopy_api_SecretKeySelector(in interface{}, out interface{}, c *conversi { in := in.(*SecretKeySelector) out := out.(*SecretKeySelector) - out.LocalObjectReference = in.LocalObjectReference - out.Key = in.Key + *out = *in return nil } } @@ -3271,8 +2771,7 @@ func DeepCopy_api_SecretList(in interface{}, out interface{}, c *conversion.Clon { in := in.(*SecretList) out := out.(*SecretList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Secret, len(*in)) @@ -3281,8 +2780,6 @@ func DeepCopy_api_SecretList(in interface{}, out interface{}, c *conversion.Clon return err } } - } else { - out.Items = nil } return nil } @@ -3292,7 +2789,7 @@ func DeepCopy_api_SecretVolumeSource(in interface{}, out interface{}, c *convers { in := in.(*SecretVolumeSource) out := out.(*SecretVolumeSource) - out.SecretName = in.SecretName + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) @@ -3301,15 +2798,11 @@ func DeepCopy_api_SecretVolumeSource(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } if in.DefaultMode != nil { in, out := &in.DefaultMode, &out.DefaultMode *out = new(int32) **out = **in - } else { - out.DefaultMode = nil } return nil } @@ -3319,49 +2812,38 @@ func DeepCopy_api_SecurityContext(in interface{}, out interface{}, c *conversion { in := in.(*SecurityContext) out := out.(*SecurityContext) + *out = *in if in.Capabilities != nil { in, out := &in.Capabilities, &out.Capabilities *out = new(Capabilities) if err := DeepCopy_api_Capabilities(*in, *out, c); err != nil { return err } - } else { - out.Capabilities = nil } if in.Privileged != nil { in, out := &in.Privileged, &out.Privileged *out = new(bool) **out = **in - } else { - out.Privileged = nil } if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } if in.RunAsUser != nil { in, out := &in.RunAsUser, &out.RunAsUser *out = new(int64) **out = **in - } else { - out.RunAsUser = nil } if in.RunAsNonRoot != nil { in, out := &in.RunAsNonRoot, &out.RunAsNonRoot *out = new(bool) **out = **in - } else { - out.RunAsNonRoot = nil } if in.ReadOnlyRootFilesystem != nil { in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem *out = new(bool) **out = **in - } else { - out.ReadOnlyRootFilesystem = nil } return nil } @@ -3371,8 +2853,7 @@ func DeepCopy_api_SerializedReference(in interface{}, out interface{}, c *conver { in := in.(*SerializedReference) out := out.(*SerializedReference) - out.TypeMeta = in.TypeMeta - out.Reference = in.Reference + *out = *in return nil } } @@ -3381,7 +2862,7 @@ func DeepCopy_api_Service(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Service) out := out.(*Service) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3399,7 +2880,7 @@ func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion. { in := in.(*ServiceAccount) out := out.(*ServiceAccount) - out.TypeMeta = in.TypeMeta + *out = *in if err := DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -3409,8 +2890,6 @@ func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion. for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Secrets = nil } if in.ImagePullSecrets != nil { in, out := &in.ImagePullSecrets, &out.ImagePullSecrets @@ -3418,8 +2897,6 @@ func DeepCopy_api_ServiceAccount(in interface{}, out interface{}, c *conversion. for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ImagePullSecrets = nil } return nil } @@ -3429,8 +2906,7 @@ func DeepCopy_api_ServiceAccountList(in interface{}, out interface{}, c *convers { in := in.(*ServiceAccountList) out := out.(*ServiceAccountList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ServiceAccount, len(*in)) @@ -3439,8 +2915,6 @@ func DeepCopy_api_ServiceAccountList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -3450,8 +2924,7 @@ func DeepCopy_api_ServiceList(in interface{}, out interface{}, c *conversion.Clo { in := in.(*ServiceList) out := out.(*ServiceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Service, len(*in)) @@ -3460,8 +2933,6 @@ func DeepCopy_api_ServiceList(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.Items = nil } return nil } @@ -3471,11 +2942,7 @@ func DeepCopy_api_ServicePort(in interface{}, out interface{}, c *conversion.Clo { in := in.(*ServicePort) out := out.(*ServicePort) - out.Name = in.Name - out.Protocol = in.Protocol - out.Port = in.Port - out.TargetPort = in.TargetPort - out.NodePort = in.NodePort + *out = *in return nil } } @@ -3484,8 +2951,7 @@ func DeepCopy_api_ServiceProxyOptions(in interface{}, out interface{}, c *conver { in := in.(*ServiceProxyOptions) out := out.(*ServiceProxyOptions) - out.TypeMeta = in.TypeMeta - out.Path = in.Path + *out = *in return nil } } @@ -3494,15 +2960,13 @@ func DeepCopy_api_ServiceSpec(in interface{}, out interface{}, c *conversion.Clo { in := in.(*ServiceSpec) out := out.(*ServiceSpec) - out.Type = in.Type + *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]ServicePort, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ports = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -3510,26 +2974,16 @@ func DeepCopy_api_ServiceSpec(in interface{}, out interface{}, c *conversion.Clo for key, val := range *in { (*out)[key] = val } - } else { - out.Selector = nil } - out.ClusterIP = in.ClusterIP - out.ExternalName = in.ExternalName if in.ExternalIPs != nil { in, out := &in.ExternalIPs, &out.ExternalIPs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.ExternalIPs = nil } - out.LoadBalancerIP = in.LoadBalancerIP - out.SessionAffinity = in.SessionAffinity if in.LoadBalancerSourceRanges != nil { in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.LoadBalancerSourceRanges = nil } return nil } @@ -3539,6 +2993,7 @@ func DeepCopy_api_ServiceStatus(in interface{}, out interface{}, c *conversion.C { in := in.(*ServiceStatus) out := out.(*ServiceStatus) + *out = *in if err := DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { return err } @@ -3550,8 +3005,7 @@ func DeepCopy_api_Sysctl(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Sysctl) out := out.(*Sysctl) - out.Name = in.Name - out.Value = in.Value + *out = *in return nil } } @@ -3560,7 +3014,7 @@ func DeepCopy_api_TCPSocketAction(in interface{}, out interface{}, c *conversion { in := in.(*TCPSocketAction) out := out.(*TCPSocketAction) - out.Port = in.Port + *out = *in return nil } } @@ -3569,9 +3023,7 @@ func DeepCopy_api_Taint(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Taint) out := out.(*Taint) - out.Key = in.Key - out.Value = in.Value - out.Effect = in.Effect + *out = *in return nil } } @@ -3580,10 +3032,7 @@ func DeepCopy_api_Toleration(in interface{}, out interface{}, c *conversion.Clon { in := in.(*Toleration) out := out.(*Toleration) - out.Key = in.Key - out.Operator = in.Operator - out.Value = in.Value - out.Effect = in.Effect + *out = *in return nil } } @@ -3592,7 +3041,7 @@ func DeepCopy_api_Volume(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Volume) out := out.(*Volume) - out.Name = in.Name + *out = *in if err := DeepCopy_api_VolumeSource(&in.VolumeSource, &out.VolumeSource, c); err != nil { return err } @@ -3604,10 +3053,7 @@ func DeepCopy_api_VolumeMount(in interface{}, out interface{}, c *conversion.Clo { in := in.(*VolumeMount) out := out.(*VolumeMount) - out.Name = in.Name - out.ReadOnly = in.ReadOnly - out.MountPath = in.MountPath - out.SubPath = in.SubPath + *out = *in return nil } } @@ -3616,40 +3062,31 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl { in := in.(*VolumeSource) out := out.(*VolumeSource) + *out = *in if in.HostPath != nil { in, out := &in.HostPath, &out.HostPath *out = new(HostPathVolumeSource) **out = **in - } else { - out.HostPath = nil } if in.EmptyDir != nil { in, out := &in.EmptyDir, &out.EmptyDir *out = new(EmptyDirVolumeSource) **out = **in - } else { - out.EmptyDir = nil } if in.GCEPersistentDisk != nil { in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk *out = new(GCEPersistentDiskVolumeSource) **out = **in - } else { - out.GCEPersistentDisk = nil } if in.AWSElasticBlockStore != nil { in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore *out = new(AWSElasticBlockStoreVolumeSource) **out = **in - } else { - out.AWSElasticBlockStore = nil } if in.GitRepo != nil { in, out := &in.GitRepo, &out.GitRepo *out = new(GitRepoVolumeSource) **out = **in - } else { - out.GitRepo = nil } if in.Secret != nil { in, out := &in.Secret, &out.Secret @@ -3657,36 +3094,26 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_SecretVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.Secret = nil } if in.NFS != nil { in, out := &in.NFS, &out.NFS *out = new(NFSVolumeSource) **out = **in - } else { - out.NFS = nil } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) **out = **in - } else { - out.ISCSI = nil } if in.Glusterfs != nil { in, out := &in.Glusterfs, &out.Glusterfs *out = new(GlusterfsVolumeSource) **out = **in - } else { - out.Glusterfs = nil } if in.PersistentVolumeClaim != nil { in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim *out = new(PersistentVolumeClaimVolumeSource) **out = **in - } else { - out.PersistentVolumeClaim = nil } if in.RBD != nil { in, out := &in.RBD, &out.RBD @@ -3694,15 +3121,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_RBDVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.RBD = nil } if in.Quobyte != nil { in, out := &in.Quobyte, &out.Quobyte *out = new(QuobyteVolumeSource) **out = **in - } else { - out.Quobyte = nil } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume @@ -3710,15 +3133,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_FlexVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FlexVolume = nil } if in.Cinder != nil { in, out := &in.Cinder, &out.Cinder *out = new(CinderVolumeSource) **out = **in - } else { - out.Cinder = nil } if in.CephFS != nil { in, out := &in.CephFS, &out.CephFS @@ -3726,15 +3145,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_CephFSVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.CephFS = nil } if in.Flocker != nil { in, out := &in.Flocker, &out.Flocker *out = new(FlockerVolumeSource) **out = **in - } else { - out.Flocker = nil } if in.DownwardAPI != nil { in, out := &in.DownwardAPI, &out.DownwardAPI @@ -3742,8 +3157,6 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_DownwardAPIVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.DownwardAPI = nil } if in.FC != nil { in, out := &in.FC, &out.FC @@ -3751,15 +3164,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_FCVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.FC = nil } if in.AzureFile != nil { in, out := &in.AzureFile, &out.AzureFile *out = new(AzureFileVolumeSource) **out = **in - } else { - out.AzureFile = nil } if in.ConfigMap != nil { in, out := &in.ConfigMap, &out.ConfigMap @@ -3767,15 +3176,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_ConfigMapVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.ConfigMap = nil } if in.VsphereVolume != nil { in, out := &in.VsphereVolume, &out.VsphereVolume *out = new(VsphereVirtualDiskVolumeSource) **out = **in - } else { - out.VsphereVolume = nil } if in.AzureDisk != nil { in, out := &in.AzureDisk, &out.AzureDisk @@ -3783,15 +3188,11 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl if err := DeepCopy_api_AzureDiskVolumeSource(*in, *out, c); err != nil { return err } - } else { - out.AzureDisk = nil } if in.PhotonPersistentDisk != nil { in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk *out = new(PhotonPersistentDiskVolumeSource) **out = **in - } else { - out.PhotonPersistentDisk = nil } return nil } @@ -3801,8 +3202,7 @@ func DeepCopy_api_VsphereVirtualDiskVolumeSource(in interface{}, out interface{} { in := in.(*VsphereVirtualDiskVolumeSource) out := out.(*VsphereVirtualDiskVolumeSource) - out.VolumePath = in.VolumePath - out.FSType = in.FSType + *out = *in return nil } } @@ -3811,7 +3211,7 @@ func DeepCopy_api_WeightedPodAffinityTerm(in interface{}, out interface{}, c *co { in := in.(*WeightedPodAffinityTerm) out := out.(*WeightedPodAffinityTerm) - out.Weight = in.Weight + *out = *in if err := DeepCopy_api_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, c); err != nil { return err } diff --git a/pkg/apis/abac/v1beta1/BUILD b/pkg/apis/abac/v1beta1/BUILD index b908153bd26a9..6bd9a4f940954 100644 --- a/pkg/apis/abac/v1beta1/BUILD +++ b/pkg/apis/abac/v1beta1/BUILD @@ -17,6 +17,7 @@ go_library( "types.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/abac/v1beta1/zz_generated.deepcopy.go b/pkg/apis/abac/v1beta1/zz_generated.deepcopy.go index dbc4b5419ff0e..e9fc794cfeafe 100644 --- a/pkg/apis/abac/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/abac/v1beta1/zz_generated.deepcopy.go @@ -43,8 +43,7 @@ func DeepCopy_v1beta1_Policy(in interface{}, out interface{}, c *conversion.Clon { in := in.(*Policy) out := out.(*Policy) - out.TypeMeta = in.TypeMeta - out.Spec = in.Spec + *out = *in return nil } } @@ -53,13 +52,7 @@ func DeepCopy_v1beta1_PolicySpec(in interface{}, out interface{}, c *conversion. { in := in.(*PolicySpec) out := out.(*PolicySpec) - out.User = in.User - out.Group = in.Group - out.Readonly = in.Readonly - out.APIGroup = in.APIGroup - out.Resource = in.Resource - out.Namespace = in.Namespace - out.NonResourcePath = in.NonResourcePath + *out = *in return nil } } diff --git a/pkg/apis/abac/v1beta1/zz_generated.defaults.go b/pkg/apis/abac/v1beta1/zz_generated.defaults.go new file mode 100644 index 0000000000000..7cd6967ccf10a --- /dev/null +++ b/pkg/apis/abac/v1beta1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go b/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go index 988438a455d5d..1f0e77dee7143 100644 --- a/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go @@ -47,7 +47,7 @@ func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion { in := in.(*StatefulSet) out := out.(*StatefulSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,8 +65,7 @@ func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conver { in := in.(*StatefulSetList) out := out.(*StatefulSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StatefulSet, len(*in)) @@ -75,8 +74,6 @@ func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conver return err } } - } else { - out.Items = nil } return nil } @@ -86,12 +83,11 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver { in := in.(*StatefulSetSpec) out := out.(*StatefulSetSpec) + *out = *in if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas *out = new(int32) **out = **in - } else { - out.Replicas = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -99,8 +95,6 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -113,10 +107,7 @@ func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conver return err } } - } else { - out.VolumeClaimTemplates = nil } - out.ServiceName = in.ServiceName return nil } } @@ -125,14 +116,12 @@ func DeepCopy_v1beta1_StatefulSetStatus(in interface{}, out interface{}, c *conv { in := in.(*StatefulSetStatus) out := out.(*StatefulSetStatus) + *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in - } else { - out.ObservedGeneration = nil } - out.Replicas = in.Replicas return nil } } diff --git a/pkg/apis/apps/zz_generated.deepcopy.go b/pkg/apis/apps/zz_generated.deepcopy.go index 0ab9929618eed..26826983768d9 100644 --- a/pkg/apis/apps/zz_generated.deepcopy.go +++ b/pkg/apis/apps/zz_generated.deepcopy.go @@ -47,7 +47,7 @@ func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cl { in := in.(*StatefulSet) out := out.(*StatefulSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,8 +65,7 @@ func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversio { in := in.(*StatefulSetList) out := out.(*StatefulSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StatefulSet, len(*in)) @@ -75,8 +74,6 @@ func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Items = nil } return nil } @@ -86,15 +83,13 @@ func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversio { in := in.(*StatefulSetSpec) out := out.(*StatefulSetSpec) - out.Replicas = in.Replicas + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -107,10 +102,7 @@ func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversio return err } } - } else { - out.VolumeClaimTemplates = nil } - out.ServiceName = in.ServiceName return nil } } @@ -119,14 +111,12 @@ func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *convers { in := in.(*StatefulSetStatus) out := out.(*StatefulSetStatus) + *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in - } else { - out.ObservedGeneration = nil } - out.Replicas = in.Replicas return nil } } diff --git a/pkg/apis/authentication/v1beta1/BUILD b/pkg/apis/authentication/v1beta1/BUILD index a4ab1e95a94f6..00c5518d68844 100644 --- a/pkg/apis/authentication/v1beta1/BUILD +++ b/pkg/apis/authentication/v1beta1/BUILD @@ -20,6 +20,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go b/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go index fe98ad70b8095..cad8da37d5481 100644 --- a/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go @@ -46,11 +46,10 @@ func DeepCopy_v1beta1_TokenReview(in interface{}, out interface{}, c *conversion { in := in.(*TokenReview) out := out.(*TokenReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_v1beta1_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -62,7 +61,7 @@ func DeepCopy_v1beta1_TokenReviewSpec(in interface{}, out interface{}, c *conver { in := in.(*TokenReviewSpec) out := out.(*TokenReviewSpec) - out.Token = in.Token + *out = *in return nil } } @@ -71,11 +70,10 @@ func DeepCopy_v1beta1_TokenReviewStatus(in interface{}, out interface{}, c *conv { in := in.(*TokenReviewStatus) out := out.(*TokenReviewStatus) - out.Authenticated = in.Authenticated + *out = *in if err := DeepCopy_v1beta1_UserInfo(&in.User, &out.User, c); err != nil { return err } - out.Error = in.Error return nil } } @@ -84,14 +82,11 @@ func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cl { in := in.(*UserInfo) out := out.(*UserInfo) - out.Username = in.Username - out.UID = in.UID + *out = *in if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } if in.Extra != nil { in, out := &in.Extra, &out.Extra @@ -103,8 +98,6 @@ func DeepCopy_v1beta1_UserInfo(in interface{}, out interface{}, c *conversion.Cl (*out)[key] = *newVal.(*ExtraValue) } } - } else { - out.Extra = nil } return nil } diff --git a/pkg/apis/authentication/v1beta1/zz_generated.defaults.go b/pkg/apis/authentication/v1beta1/zz_generated.defaults.go new file mode 100644 index 0000000000000..7cd6967ccf10a --- /dev/null +++ b/pkg/apis/authentication/v1beta1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/authentication/zz_generated.deepcopy.go b/pkg/apis/authentication/zz_generated.deepcopy.go index 0f07550e96881..d022dbcefa0de 100644 --- a/pkg/apis/authentication/zz_generated.deepcopy.go +++ b/pkg/apis/authentication/zz_generated.deepcopy.go @@ -46,11 +46,10 @@ func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *con { in := in.(*TokenReview) out := out.(*TokenReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -62,7 +61,7 @@ func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c { in := in.(*TokenReviewSpec) out := out.(*TokenReviewSpec) - out.Token = in.Token + *out = *in return nil } } @@ -71,11 +70,10 @@ func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, { in := in.(*TokenReviewStatus) out := out.(*TokenReviewStatus) - out.Authenticated = in.Authenticated + *out = *in if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil { return err } - out.Error = in.Error return nil } } @@ -84,14 +82,11 @@ func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conver { in := in.(*UserInfo) out := out.(*UserInfo) - out.Username = in.Username - out.UID = in.UID + *out = *in if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } if in.Extra != nil { in, out := &in.Extra, &out.Extra @@ -103,8 +98,6 @@ func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conver (*out)[key] = *newVal.(*ExtraValue) } } - } else { - out.Extra = nil } return nil } diff --git a/pkg/apis/authorization/v1beta1/BUILD b/pkg/apis/authorization/v1beta1/BUILD index dad4a9301df8a..04c91c35c0abf 100644 --- a/pkg/apis/authorization/v1beta1/BUILD +++ b/pkg/apis/authorization/v1beta1/BUILD @@ -20,6 +20,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go b/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go index 2fa428d03a200..6c4552c328788 100644 --- a/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go @@ -50,14 +50,13 @@ func DeepCopy_v1beta1_LocalSubjectAccessReview(in interface{}, out interface{}, { in := in.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -66,8 +65,7 @@ func DeepCopy_v1beta1_NonResourceAttributes(in interface{}, out interface{}, c * { in := in.(*NonResourceAttributes) out := out.(*NonResourceAttributes) - out.Path = in.Path - out.Verb = in.Verb + *out = *in return nil } } @@ -76,13 +74,7 @@ func DeepCopy_v1beta1_ResourceAttributes(in interface{}, out interface{}, c *con { in := in.(*ResourceAttributes) out := out.(*ResourceAttributes) - out.Namespace = in.Namespace - out.Verb = in.Verb - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource - out.Subresource = in.Subresource - out.Name = in.Name + *out = *in return nil } } @@ -91,14 +83,13 @@ func DeepCopy_v1beta1_SelfSubjectAccessReview(in interface{}, out interface{}, c { in := in.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -107,19 +98,16 @@ func DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in interface{}, out interface{ { in := in.(*SelfSubjectAccessReviewSpec) out := out.(*SelfSubjectAccessReviewSpec) + *out = *in if in.ResourceAttributes != nil { in, out := &in.ResourceAttributes, &out.ResourceAttributes *out = new(ResourceAttributes) **out = **in - } else { - out.ResourceAttributes = nil } if in.NonResourceAttributes != nil { in, out := &in.NonResourceAttributes, &out.NonResourceAttributes *out = new(NonResourceAttributes) **out = **in - } else { - out.NonResourceAttributes = nil } return nil } @@ -129,14 +117,13 @@ func DeepCopy_v1beta1_SubjectAccessReview(in interface{}, out interface{}, c *co { in := in.(*SubjectAccessReview) out := out.(*SubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -145,27 +132,21 @@ func DeepCopy_v1beta1_SubjectAccessReviewSpec(in interface{}, out interface{}, c { in := in.(*SubjectAccessReviewSpec) out := out.(*SubjectAccessReviewSpec) + *out = *in if in.ResourceAttributes != nil { in, out := &in.ResourceAttributes, &out.ResourceAttributes *out = new(ResourceAttributes) **out = **in - } else { - out.ResourceAttributes = nil } if in.NonResourceAttributes != nil { in, out := &in.NonResourceAttributes, &out.NonResourceAttributes *out = new(NonResourceAttributes) **out = **in - } else { - out.NonResourceAttributes = nil } - out.User = in.User if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } if in.Extra != nil { in, out := &in.Extra, &out.Extra @@ -177,8 +158,6 @@ func DeepCopy_v1beta1_SubjectAccessReviewSpec(in interface{}, out interface{}, c (*out)[key] = *newVal.(*ExtraValue) } } - } else { - out.Extra = nil } return nil } @@ -188,9 +167,7 @@ func DeepCopy_v1beta1_SubjectAccessReviewStatus(in interface{}, out interface{}, { in := in.(*SubjectAccessReviewStatus) out := out.(*SubjectAccessReviewStatus) - out.Allowed = in.Allowed - out.Reason = in.Reason - out.EvaluationError = in.EvaluationError + *out = *in return nil } } diff --git a/pkg/apis/authorization/v1beta1/zz_generated.defaults.go b/pkg/apis/authorization/v1beta1/zz_generated.defaults.go new file mode 100644 index 0000000000000..7cd6967ccf10a --- /dev/null +++ b/pkg/apis/authorization/v1beta1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/authorization/zz_generated.deepcopy.go b/pkg/apis/authorization/zz_generated.deepcopy.go index c337787971ba1..46d0df23b4f7c 100644 --- a/pkg/apis/authorization/zz_generated.deepcopy.go +++ b/pkg/apis/authorization/zz_generated.deepcopy.go @@ -50,14 +50,13 @@ func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interfa { in := in.(*LocalSubjectAccessReview) out := out.(*LocalSubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -66,8 +65,7 @@ func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{ { in := in.(*NonResourceAttributes) out := out.(*NonResourceAttributes) - out.Path = in.Path - out.Verb = in.Verb + *out = *in return nil } } @@ -76,13 +74,7 @@ func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{}, { in := in.(*ResourceAttributes) out := out.(*ResourceAttributes) - out.Namespace = in.Namespace - out.Verb = in.Verb - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource - out.Subresource = in.Subresource - out.Name = in.Name + *out = *in return nil } } @@ -91,14 +83,13 @@ func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interfac { in := in.(*SelfSubjectAccessReview) out := out.(*SelfSubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -107,19 +98,16 @@ func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out inte { in := in.(*SelfSubjectAccessReviewSpec) out := out.(*SelfSubjectAccessReviewSpec) + *out = *in if in.ResourceAttributes != nil { in, out := &in.ResourceAttributes, &out.ResourceAttributes *out = new(ResourceAttributes) **out = **in - } else { - out.ResourceAttributes = nil } if in.NonResourceAttributes != nil { in, out := &in.NonResourceAttributes, &out.NonResourceAttributes *out = new(NonResourceAttributes) **out = **in - } else { - out.NonResourceAttributes = nil } return nil } @@ -129,14 +117,13 @@ func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{}, { in := in.(*SubjectAccessReview) out := out.(*SubjectAccessReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -145,27 +132,21 @@ func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interfac { in := in.(*SubjectAccessReviewSpec) out := out.(*SubjectAccessReviewSpec) + *out = *in if in.ResourceAttributes != nil { in, out := &in.ResourceAttributes, &out.ResourceAttributes *out = new(ResourceAttributes) **out = **in - } else { - out.ResourceAttributes = nil } if in.NonResourceAttributes != nil { in, out := &in.NonResourceAttributes, &out.NonResourceAttributes *out = new(NonResourceAttributes) **out = **in - } else { - out.NonResourceAttributes = nil } - out.User = in.User if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } if in.Extra != nil { in, out := &in.Extra, &out.Extra @@ -177,8 +158,6 @@ func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interfac (*out)[key] = *newVal.(*ExtraValue) } } - } else { - out.Extra = nil } return nil } @@ -188,9 +167,7 @@ func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interf { in := in.(*SubjectAccessReviewStatus) out := out.(*SubjectAccessReviewStatus) - out.Allowed = in.Allowed - out.Reason = in.Reason - out.EvaluationError = in.EvaluationError + *out = *in return nil } } diff --git a/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go b/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go index 2368bf320de84..9bc8a91b8671d 100644 --- a/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go +++ b/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go @@ -51,9 +51,7 @@ func DeepCopy_v1_CrossVersionObjectReference(in interface{}, out interface{}, c { in := in.(*CrossVersionObjectReference) out := out.(*CrossVersionObjectReference) - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion + *out = *in return nil } } @@ -62,7 +60,7 @@ func DeepCopy_v1_HorizontalPodAutoscaler(in interface{}, out interface{}, c *con { in := in.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler) - out.TypeMeta = in.TypeMeta + *out = *in if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -80,8 +78,7 @@ func DeepCopy_v1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c { in := in.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]HorizontalPodAutoscaler, len(*in)) @@ -90,8 +87,6 @@ func DeepCopy_v1_HorizontalPodAutoscalerList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -101,21 +96,16 @@ func DeepCopy_v1_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c { in := in.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec) - out.ScaleTargetRef = in.ScaleTargetRef + *out = *in if in.MinReplicas != nil { in, out := &in.MinReplicas, &out.MinReplicas *out = new(int32) **out = **in - } else { - out.MinReplicas = nil } - out.MaxReplicas = in.MaxReplicas if in.TargetCPUUtilizationPercentage != nil { in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage *out = new(int32) **out = **in - } else { - out.TargetCPUUtilizationPercentage = nil } return nil } @@ -125,28 +115,21 @@ func DeepCopy_v1_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, { in := in.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus) + *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in - } else { - out.ObservedGeneration = nil } if in.LastScaleTime != nil { in, out := &in.LastScaleTime, &out.LastScaleTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.LastScaleTime = nil } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas if in.CurrentCPUUtilizationPercentage != nil { in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage *out = new(int32) **out = **in - } else { - out.CurrentCPUUtilizationPercentage = nil } return nil } @@ -156,12 +139,10 @@ func DeepCopy_v1_Scale(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Scale) out := out.(*Scale) - out.TypeMeta = in.TypeMeta + *out = *in if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec - out.Status = in.Status return nil } } @@ -170,7 +151,7 @@ func DeepCopy_v1_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*ScaleSpec) out := out.(*ScaleSpec) - out.Replicas = in.Replicas + *out = *in return nil } } @@ -179,8 +160,7 @@ func DeepCopy_v1_ScaleStatus(in interface{}, out interface{}, c *conversion.Clon { in := in.(*ScaleStatus) out := out.(*ScaleStatus) - out.Replicas = in.Replicas - out.Selector = in.Selector + *out = *in return nil } } diff --git a/pkg/apis/autoscaling/zz_generated.deepcopy.go b/pkg/apis/autoscaling/zz_generated.deepcopy.go index c4f63aec054fa..e5c3e3020ee89 100644 --- a/pkg/apis/autoscaling/zz_generated.deepcopy.go +++ b/pkg/apis/autoscaling/zz_generated.deepcopy.go @@ -51,9 +51,7 @@ func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interf { in := in.(*CrossVersionObjectReference) out := out.(*CrossVersionObjectReference) - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion + *out = *in return nil } } @@ -62,7 +60,7 @@ func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{ { in := in.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -80,8 +78,7 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interf { in := in.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]HorizontalPodAutoscaler, len(*in)) @@ -90,8 +87,6 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interf return err } } - } else { - out.Items = nil } return nil } @@ -101,21 +96,16 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interf { in := in.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec) - out.ScaleTargetRef = in.ScaleTargetRef + *out = *in if in.MinReplicas != nil { in, out := &in.MinReplicas, &out.MinReplicas *out = new(int32) **out = **in - } else { - out.MinReplicas = nil } - out.MaxReplicas = in.MaxReplicas if in.TargetCPUUtilizationPercentage != nil { in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage *out = new(int32) **out = **in - } else { - out.TargetCPUUtilizationPercentage = nil } return nil } @@ -125,28 +115,21 @@ func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out inte { in := in.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus) + *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in - } else { - out.ObservedGeneration = nil } if in.LastScaleTime != nil { in, out := &in.LastScaleTime, &out.LastScaleTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.LastScaleTime = nil } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas if in.CurrentCPUUtilizationPercentage != nil { in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage *out = new(int32) **out = **in - } else { - out.CurrentCPUUtilizationPercentage = nil } return nil } @@ -156,12 +139,10 @@ func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.C { in := in.(*Scale) out := out.(*Scale) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec - out.Status = in.Status return nil } } @@ -170,7 +151,7 @@ func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversi { in := in.(*ScaleSpec) out := out.(*ScaleSpec) - out.Replicas = in.Replicas + *out = *in return nil } } @@ -179,8 +160,7 @@ func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conver { in := in.(*ScaleStatus) out := out.(*ScaleStatus) - out.Replicas = in.Replicas - out.Selector = in.Selector + *out = *in return nil } } diff --git a/pkg/apis/batch/v1/zz_generated.deepcopy.go b/pkg/apis/batch/v1/zz_generated.deepcopy.go index 71c3eba0da60d..305b7c904ca99 100644 --- a/pkg/apis/batch/v1/zz_generated.deepcopy.go +++ b/pkg/apis/batch/v1/zz_generated.deepcopy.go @@ -48,7 +48,7 @@ func DeepCopy_v1_Job(in interface{}, out interface{}, c *conversion.Cloner) erro { in := in.(*Job) out := out.(*Job) - out.TypeMeta = in.TypeMeta + *out = *in if err := api_v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -66,12 +66,9 @@ func DeepCopy_v1_JobCondition(in interface{}, out interface{}, c *conversion.Clo { in := in.(*JobCondition) out := out.(*JobCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -80,8 +77,7 @@ func DeepCopy_v1_JobList(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*JobList) out := out.(*JobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Job, len(*in)) @@ -90,8 +86,6 @@ func DeepCopy_v1_JobList(in interface{}, out interface{}, c *conversion.Cloner) return err } } - } else { - out.Items = nil } return nil } @@ -101,26 +95,21 @@ func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*JobSpec) out := out.(*JobSpec) + *out = *in if in.Parallelism != nil { in, out := &in.Parallelism, &out.Parallelism *out = new(int32) **out = **in - } else { - out.Parallelism = nil } if in.Completions != nil { in, out := &in.Completions, &out.Completions *out = new(int32) **out = **in - } else { - out.Completions = nil } if in.ActiveDeadlineSeconds != nil { in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds *out = new(int64) **out = **in - } else { - out.ActiveDeadlineSeconds = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -128,15 +117,11 @@ func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if in.ManualSelector != nil { in, out := &in.ManualSelector, &out.ManualSelector *out = new(bool) **out = **in - } else { - out.ManualSelector = nil } if err := api_v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -149,6 +134,7 @@ func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*JobStatus) out := out.(*JobStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]JobCondition, len(*in)) @@ -157,26 +143,17 @@ func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner return err } } - } else { - out.Conditions = nil } if in.StartTime != nil { in, out := &in.StartTime, &out.StartTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.StartTime = nil } if in.CompletionTime != nil { in, out := &in.CompletionTime, &out.CompletionTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.CompletionTime = nil } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed return nil } } diff --git a/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go b/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go index 20580cf013086..4bfc7c90bb2ae 100644 --- a/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go @@ -54,7 +54,7 @@ func DeepCopy_v2alpha1_CronJob(in interface{}, out interface{}, c *conversion.Cl { in := in.(*CronJob) out := out.(*CronJob) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -72,8 +72,7 @@ func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversio { in := in.(*CronJobList) out := out.(*CronJobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CronJob, len(*in)) @@ -82,8 +81,6 @@ func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Items = nil } return nil } @@ -93,21 +90,16 @@ func DeepCopy_v2alpha1_CronJobSpec(in interface{}, out interface{}, c *conversio { in := in.(*CronJobSpec) out := out.(*CronJobSpec) - out.Schedule = in.Schedule + *out = *in if in.StartingDeadlineSeconds != nil { in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds *out = new(int64) **out = **in - } else { - out.StartingDeadlineSeconds = nil } - out.ConcurrencyPolicy = in.ConcurrencyPolicy if in.Suspend != nil { in, out := &in.Suspend, &out.Suspend *out = new(bool) **out = **in - } else { - out.Suspend = nil } if err := DeepCopy_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { return err @@ -120,21 +112,18 @@ func DeepCopy_v2alpha1_CronJobStatus(in interface{}, out interface{}, c *convers { in := in.(*CronJobStatus) out := out.(*CronJobStatus) + *out = *in if in.Active != nil { in, out := &in.Active, &out.Active *out = make([]v1.ObjectReference, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Active = nil } if in.LastScheduleTime != nil { in, out := &in.LastScheduleTime, &out.LastScheduleTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.LastScheduleTime = nil } return nil } @@ -144,7 +133,7 @@ func DeepCopy_v2alpha1_Job(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Job) out := out.(*Job) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -162,12 +151,9 @@ func DeepCopy_v2alpha1_JobCondition(in interface{}, out interface{}, c *conversi { in := in.(*JobCondition) out := out.(*JobCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -176,8 +162,7 @@ func DeepCopy_v2alpha1_JobList(in interface{}, out interface{}, c *conversion.Cl { in := in.(*JobList) out := out.(*JobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Job, len(*in)) @@ -186,8 +171,6 @@ func DeepCopy_v2alpha1_JobList(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.Items = nil } return nil } @@ -197,26 +180,21 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl { in := in.(*JobSpec) out := out.(*JobSpec) + *out = *in if in.Parallelism != nil { in, out := &in.Parallelism, &out.Parallelism *out = new(int32) **out = **in - } else { - out.Parallelism = nil } if in.Completions != nil { in, out := &in.Completions, &out.Completions *out = new(int32) **out = **in - } else { - out.Completions = nil } if in.ActiveDeadlineSeconds != nil { in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds *out = new(int64) **out = **in - } else { - out.ActiveDeadlineSeconds = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -224,15 +202,11 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if in.ManualSelector != nil { in, out := &in.ManualSelector, &out.ManualSelector *out = new(bool) **out = **in - } else { - out.ManualSelector = nil } if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -245,6 +219,7 @@ func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion. { in := in.(*JobStatus) out := out.(*JobStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]JobCondition, len(*in)) @@ -253,26 +228,17 @@ func DeepCopy_v2alpha1_JobStatus(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.Conditions = nil } if in.StartTime != nil { in, out := &in.StartTime, &out.StartTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.StartTime = nil } if in.CompletionTime != nil { in, out := &in.CompletionTime, &out.CompletionTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.CompletionTime = nil } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed return nil } } @@ -281,7 +247,7 @@ func DeepCopy_v2alpha1_JobTemplate(in interface{}, out interface{}, c *conversio { in := in.(*JobTemplate) out := out.(*JobTemplate) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -296,6 +262,7 @@ func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conve { in := in.(*JobTemplateSpec) out := out.(*JobTemplateSpec) + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } diff --git a/pkg/apis/batch/zz_generated.deepcopy.go b/pkg/apis/batch/zz_generated.deepcopy.go index 75ece91aa791d..8d7617a7e264a 100644 --- a/pkg/apis/batch/zz_generated.deepcopy.go +++ b/pkg/apis/batch/zz_generated.deepcopy.go @@ -54,7 +54,7 @@ func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Clone { in := in.(*CronJob) out := out.(*CronJob) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -72,8 +72,7 @@ func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.C { in := in.(*CronJobList) out := out.(*CronJobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CronJob, len(*in)) @@ -82,8 +81,6 @@ func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -93,21 +90,16 @@ func DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.C { in := in.(*CronJobSpec) out := out.(*CronJobSpec) - out.Schedule = in.Schedule + *out = *in if in.StartingDeadlineSeconds != nil { in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds *out = new(int64) **out = **in - } else { - out.StartingDeadlineSeconds = nil } - out.ConcurrencyPolicy = in.ConcurrencyPolicy if in.Suspend != nil { in, out := &in.Suspend, &out.Suspend *out = new(bool) **out = **in - } else { - out.Suspend = nil } if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil { return err @@ -120,21 +112,18 @@ func DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion { in := in.(*CronJobStatus) out := out.(*CronJobStatus) + *out = *in if in.Active != nil { in, out := &in.Active, &out.Active *out = make([]api.ObjectReference, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Active = nil } if in.LastScheduleTime != nil { in, out := &in.LastScheduleTime, &out.LastScheduleTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.LastScheduleTime = nil } return nil } @@ -144,7 +133,7 @@ func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Job) out := out.(*Job) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -162,12 +151,9 @@ func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion. { in := in.(*JobCondition) out := out.(*JobCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastProbeTime = in.LastProbeTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -176,8 +162,7 @@ func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Clone { in := in.(*JobList) out := out.(*JobList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Job, len(*in)) @@ -186,8 +171,6 @@ func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Items = nil } return nil } @@ -197,26 +180,21 @@ func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Clone { in := in.(*JobSpec) out := out.(*JobSpec) + *out = *in if in.Parallelism != nil { in, out := &in.Parallelism, &out.Parallelism *out = new(int32) **out = **in - } else { - out.Parallelism = nil } if in.Completions != nil { in, out := &in.Completions, &out.Completions *out = new(int32) **out = **in - } else { - out.Completions = nil } if in.ActiveDeadlineSeconds != nil { in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds *out = new(int64) **out = **in - } else { - out.ActiveDeadlineSeconds = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -224,15 +202,11 @@ func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Clone if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if in.ManualSelector != nil { in, out := &in.ManualSelector, &out.ManualSelector *out = new(bool) **out = **in - } else { - out.ManualSelector = nil } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -245,6 +219,7 @@ func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Clo { in := in.(*JobStatus) out := out.(*JobStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]JobCondition, len(*in)) @@ -253,26 +228,17 @@ func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.Conditions = nil } if in.StartTime != nil { in, out := &in.StartTime, &out.StartTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.StartTime = nil } if in.CompletionTime != nil { in, out := &in.CompletionTime, &out.CompletionTime *out = new(v1.Time) **out = (*in).DeepCopy() - } else { - out.CompletionTime = nil } - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed return nil } } @@ -281,7 +247,7 @@ func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.C { in := in.(*JobTemplate) out := out.(*JobTemplate) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -296,6 +262,7 @@ func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversi { in := in.(*JobTemplateSpec) out := out.(*JobTemplateSpec) + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } diff --git a/pkg/apis/certificates/v1alpha1/BUILD b/pkg/apis/certificates/v1alpha1/BUILD index 958ab35f1e6ef..1b009310c1356 100644 --- a/pkg/apis/certificates/v1alpha1/BUILD +++ b/pkg/apis/certificates/v1alpha1/BUILD @@ -19,6 +19,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go index ab681a98724be..51b280e733a9e 100644 --- a/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go @@ -47,7 +47,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequest(in interface{}, out interface{} { in := in.(*CertificateSigningRequest) out := out.(*CertificateSigningRequest) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,9 +65,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in interface{}, out in { in := in.(*CertificateSigningRequestCondition) out := out.(*CertificateSigningRequestCondition) - out.Type = in.Type - out.Reason = in.Reason - out.Message = in.Message + *out = *in out.LastUpdateTime = in.LastUpdateTime.DeepCopy() return nil } @@ -77,8 +75,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestList(in interface{}, out interfa { in := in.(*CertificateSigningRequestList) out := out.(*CertificateSigningRequestList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CertificateSigningRequest, len(*in)) @@ -87,8 +84,6 @@ func DeepCopy_v1alpha1_CertificateSigningRequestList(in interface{}, out interfa return err } } - } else { - out.Items = nil } return nil } @@ -98,21 +93,16 @@ func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in interface{}, out interfa { in := in.(*CertificateSigningRequestSpec) out := out.(*CertificateSigningRequestSpec) + *out = *in if in.Request != nil { in, out := &in.Request, &out.Request *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Request = nil } - out.Username = in.Username - out.UID = in.UID if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } return nil } @@ -122,6 +112,7 @@ func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in interface{}, out inter { in := in.(*CertificateSigningRequestStatus) out := out.(*CertificateSigningRequestStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]CertificateSigningRequestCondition, len(*in)) @@ -130,15 +121,11 @@ func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in interface{}, out inter return err } } - } else { - out.Conditions = nil } if in.Certificate != nil { in, out := &in.Certificate, &out.Certificate *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Certificate = nil } return nil } diff --git a/pkg/apis/certificates/v1alpha1/zz_generated.defaults.go b/pkg/apis/certificates/v1alpha1/zz_generated.defaults.go new file mode 100644 index 0000000000000..307983e2e45d5 --- /dev/null +++ b/pkg/apis/certificates/v1alpha1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1alpha1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/certificates/zz_generated.deepcopy.go b/pkg/apis/certificates/zz_generated.deepcopy.go index b8b7c2ce46ac8..ecd183415cd45 100644 --- a/pkg/apis/certificates/zz_generated.deepcopy.go +++ b/pkg/apis/certificates/zz_generated.deepcopy.go @@ -47,7 +47,7 @@ func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interfa { in := in.(*CertificateSigningRequest) out := out.(*CertificateSigningRequest) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,9 +65,7 @@ func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, ou { in := in.(*CertificateSigningRequestCondition) out := out.(*CertificateSigningRequestCondition) - out.Type = in.Type - out.Reason = in.Reason - out.Message = in.Message + *out = *in out.LastUpdateTime = in.LastUpdateTime.DeepCopy() return nil } @@ -77,8 +75,7 @@ func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out int { in := in.(*CertificateSigningRequestList) out := out.(*CertificateSigningRequestList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CertificateSigningRequest, len(*in)) @@ -87,8 +84,6 @@ func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out int return err } } - } else { - out.Items = nil } return nil } @@ -98,21 +93,16 @@ func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out int { in := in.(*CertificateSigningRequestSpec) out := out.(*CertificateSigningRequestSpec) + *out = *in if in.Request != nil { in, out := &in.Request, &out.Request *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Request = nil } - out.Username = in.Username - out.UID = in.UID if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Groups = nil } return nil } @@ -122,6 +112,7 @@ func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out i { in := in.(*CertificateSigningRequestStatus) out := out.(*CertificateSigningRequestStatus) + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]CertificateSigningRequestCondition, len(*in)) @@ -130,15 +121,11 @@ func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out i return err } } - } else { - out.Conditions = nil } if in.Certificate != nil { in, out := &in.Certificate, &out.Certificate *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Certificate = nil } return nil } diff --git a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go index e065bf0f90a39..bf893b58e63dd 100644 --- a/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go @@ -52,40 +52,17 @@ func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c { in := in.(*KubeProxyConfiguration) out := out.(*KubeProxyConfiguration) - out.TypeMeta = in.TypeMeta - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride + *out = *in if in.IPTablesMasqueradeBit != nil { in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit *out = new(int32) **out = **in - } else { - out.IPTablesMasqueradeBit = nil - } - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.IPTablesMinSyncPeriod = in.IPTablesMinSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master + } if in.OOMScoreAdj != nil { in, out := &in.OOMScoreAdj, &out.OOMScoreAdj *out = new(int32) **out = **in - } else { - out.OOMScoreAdj = nil - } - out.Mode = in.Mode - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackMaxPerCore = in.ConntrackMaxPerCore - out.ConntrackMin = in.ConntrackMin - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout + } return nil } } @@ -94,25 +71,12 @@ func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{ { in := in.(*KubeSchedulerConfiguration) out := out.(*KubeSchedulerConfiguration) - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile + *out = *in if in.EnableProfiling != nil { in, out := &in.EnableProfiling, &out.EnableProfiling *out = new(bool) **out = **in - } else { - out.EnableProfiling = nil - } - out.EnableContentionProfiling = in.EnableContentionProfiling - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains + } if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil { return err } @@ -124,12 +88,11 @@ func DeepCopy_v1alpha1_KubeletAnonymousAuthentication(in interface{}, out interf { in := in.(*KubeletAnonymousAuthentication) out := out.(*KubeletAnonymousAuthentication) + *out = *in if in.Enabled != nil { in, out := &in.Enabled, &out.Enabled *out = new(bool) **out = **in - } else { - out.Enabled = nil } return nil } @@ -139,7 +102,7 @@ func DeepCopy_v1alpha1_KubeletAuthentication(in interface{}, out interface{}, c { in := in.(*KubeletAuthentication) out := out.(*KubeletAuthentication) - out.X509 = in.X509 + *out = *in if err := DeepCopy_v1alpha1_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, c); err != nil { return err } @@ -154,8 +117,7 @@ func DeepCopy_v1alpha1_KubeletAuthorization(in interface{}, out interface{}, c * { in := in.(*KubeletAuthorization) out := out.(*KubeletAuthorization) - out.Mode = in.Mode - out.Webhook = in.Webhook + *out = *in return nil } } @@ -164,199 +126,99 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * { in := in.(*KubeletConfiguration) out := out.(*KubeletConfiguration) - out.TypeMeta = in.TypeMeta - out.PodManifestPath = in.PodManifestPath - out.SyncFrequency = in.SyncFrequency - out.FileCheckFrequency = in.FileCheckFrequency - out.HTTPCheckFrequency = in.HTTPCheckFrequency - out.ManifestURL = in.ManifestURL - out.ManifestURLHeader = in.ManifestURLHeader + *out = *in if in.EnableServer != nil { in, out := &in.EnableServer, &out.EnableServer *out = new(bool) **out = **in - } else { - out.EnableServer = nil - } - out.Address = in.Address - out.Port = in.Port - out.ReadOnlyPort = in.ReadOnlyPort - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.CertDirectory = in.CertDirectory + } if err := DeepCopy_v1alpha1_KubeletAuthentication(&in.Authentication, &out.Authentication, c); err != nil { return err } - out.Authorization = in.Authorization - out.HostnameOverride = in.HostnameOverride - out.PodInfraContainerImage = in.PodInfraContainerImage - out.DockerEndpoint = in.DockerEndpoint - out.RootDirectory = in.RootDirectory - out.SeccompProfileRoot = in.SeccompProfileRoot if in.AllowPrivileged != nil { in, out := &in.AllowPrivileged, &out.AllowPrivileged *out = new(bool) **out = **in - } else { - out.AllowPrivileged = nil } if in.HostNetworkSources != nil { in, out := &in.HostNetworkSources, &out.HostNetworkSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostNetworkSources = nil } if in.HostPIDSources != nil { in, out := &in.HostPIDSources, &out.HostPIDSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostPIDSources = nil } if in.HostIPCSources != nil { in, out := &in.HostIPCSources, &out.HostIPCSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostIPCSources = nil } if in.RegistryPullQPS != nil { in, out := &in.RegistryPullQPS, &out.RegistryPullQPS *out = new(int32) **out = **in - } else { - out.RegistryPullQPS = nil } - out.RegistryBurst = in.RegistryBurst if in.EventRecordQPS != nil { in, out := &in.EventRecordQPS, &out.EventRecordQPS *out = new(int32) **out = **in - } else { - out.EventRecordQPS = nil } - out.EventBurst = in.EventBurst if in.EnableDebuggingHandlers != nil { in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers *out = new(bool) **out = **in - } else { - out.EnableDebuggingHandlers = nil } - out.MinimumGCAge = in.MinimumGCAge - out.MaxPerPodContainerCount = in.MaxPerPodContainerCount if in.MaxContainerCount != nil { in, out := &in.MaxContainerCount, &out.MaxContainerCount *out = new(int32) **out = **in - } else { - out.MaxContainerCount = nil } - out.CAdvisorPort = in.CAdvisorPort - out.HealthzPort = in.HealthzPort - out.HealthzBindAddress = in.HealthzBindAddress if in.OOMScoreAdj != nil { in, out := &in.OOMScoreAdj, &out.OOMScoreAdj *out = new(int32) **out = **in - } else { - out.OOMScoreAdj = nil } if in.RegisterNode != nil { in, out := &in.RegisterNode, &out.RegisterNode *out = new(bool) **out = **in - } else { - out.RegisterNode = nil - } - out.ClusterDomain = in.ClusterDomain - out.MasterServiceNamespace = in.MasterServiceNamespace - out.ClusterDNS = in.ClusterDNS - out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout - out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency - out.ImageMinimumGCAge = in.ImageMinimumGCAge + } if in.ImageGCHighThresholdPercent != nil { in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent *out = new(int32) **out = **in - } else { - out.ImageGCHighThresholdPercent = nil } if in.ImageGCLowThresholdPercent != nil { in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent *out = new(int32) **out = **in - } else { - out.ImageGCLowThresholdPercent = nil - } - out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB - out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod - out.NetworkPluginName = in.NetworkPluginName - out.NetworkPluginDir = in.NetworkPluginDir - out.CNIConfDir = in.CNIConfDir - out.CNIBinDir = in.CNIBinDir - out.NetworkPluginMTU = in.NetworkPluginMTU - out.VolumePluginDir = in.VolumePluginDir - out.CloudProvider = in.CloudProvider - out.CloudConfigFile = in.CloudConfigFile - out.KubeletCgroups = in.KubeletCgroups - out.RuntimeCgroups = in.RuntimeCgroups - out.SystemCgroups = in.SystemCgroups - out.CgroupRoot = in.CgroupRoot + } if in.ExperimentalCgroupsPerQOS != nil { in, out := &in.ExperimentalCgroupsPerQOS, &out.ExperimentalCgroupsPerQOS *out = new(bool) **out = **in - } else { - out.ExperimentalCgroupsPerQOS = nil - } - out.CgroupDriver = in.CgroupDriver - out.ContainerRuntime = in.ContainerRuntime - out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint - out.RemoteImageEndpoint = in.RemoteImageEndpoint - out.RuntimeRequestTimeout = in.RuntimeRequestTimeout - out.ImagePullProgressDeadline = in.ImagePullProgressDeadline - out.RktPath = in.RktPath - out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.RktAPIEndpoint = in.RktAPIEndpoint - out.RktStage1Image = in.RktStage1Image + } if in.LockFilePath != nil { in, out := &in.LockFilePath, &out.LockFilePath *out = new(string) **out = **in - } else { - out.LockFilePath = nil - } - out.ExitOnLockContention = in.ExitOnLockContention - out.HairpinMode = in.HairpinMode - out.BabysitDaemons = in.BabysitDaemons - out.MaxPods = in.MaxPods - out.NvidiaGPUs = in.NvidiaGPUs - out.DockerExecHandlerName = in.DockerExecHandlerName - out.PodCIDR = in.PodCIDR - out.ResolverConfig = in.ResolverConfig + } if in.CPUCFSQuota != nil { in, out := &in.CPUCFSQuota, &out.CPUCFSQuota *out = new(bool) **out = **in - } else { - out.CPUCFSQuota = nil } if in.Containerized != nil { in, out := &in.Containerized, &out.Containerized *out = new(bool) **out = **in - } else { - out.Containerized = nil } - out.MaxOpenFiles = in.MaxOpenFiles if in.RegisterSchedulable != nil { in, out := &in.RegisterSchedulable, &out.RegisterSchedulable *out = new(bool) **out = **in - } else { - out.RegisterSchedulable = nil } if in.RegisterWithTaints != nil { in, out := &in.RegisterWithTaints, &out.RegisterWithTaints @@ -364,64 +226,38 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.RegisterWithTaints = nil } - out.ContentType = in.ContentType if in.KubeAPIQPS != nil { in, out := &in.KubeAPIQPS, &out.KubeAPIQPS *out = new(int32) **out = **in - } else { - out.KubeAPIQPS = nil } - out.KubeAPIBurst = in.KubeAPIBurst if in.SerializeImagePulls != nil { in, out := &in.SerializeImagePulls, &out.SerializeImagePulls *out = new(bool) **out = **in - } else { - out.SerializeImagePulls = nil } - out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency - out.NodeIP = in.NodeIP if in.NodeLabels != nil { in, out := &in.NodeLabels, &out.NodeLabels *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.NodeLabels = nil } - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - out.EnableCustomMetrics = in.EnableCustomMetrics if in.EvictionHard != nil { in, out := &in.EvictionHard, &out.EvictionHard *out = new(string) **out = **in - } else { - out.EvictionHard = nil - } - out.EvictionSoft = in.EvictionSoft - out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod - out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod - out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod - out.EvictionMinimumReclaim = in.EvictionMinimumReclaim + } if in.ExperimentalKernelMemcgNotification != nil { in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification *out = new(bool) **out = **in - } else { - out.ExperimentalKernelMemcgNotification = nil } - out.PodsPerCore = in.PodsPerCore if in.EnableControllerAttachDetach != nil { in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach *out = new(bool) **out = **in - } else { - out.EnableControllerAttachDetach = nil } if in.SystemReserved != nil { in, out := &in.SystemReserved, &out.SystemReserved @@ -429,8 +265,6 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * for key, val := range *in { (*out)[key] = val } - } else { - out.SystemReserved = nil } if in.KubeReserved != nil { in, out := &in.KubeReserved, &out.KubeReserved @@ -438,42 +272,27 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * for key, val := range *in { (*out)[key] = val } - } else { - out.KubeReserved = nil } - out.ProtectKernelDefaults = in.ProtectKernelDefaults if in.MakeIPTablesUtilChains != nil { in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains *out = new(bool) **out = **in - } else { - out.MakeIPTablesUtilChains = nil } if in.IPTablesMasqueradeBit != nil { in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit *out = new(int32) **out = **in - } else { - out.IPTablesMasqueradeBit = nil } if in.IPTablesDropBit != nil { in, out := &in.IPTablesDropBit, &out.IPTablesDropBit *out = new(int32) **out = **in - } else { - out.IPTablesDropBit = nil } if in.AllowedUnsafeSysctls != nil { in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.AllowedUnsafeSysctls = nil } - out.FeatureGates = in.FeatureGates - out.EnableCRI = in.EnableCRI - out.ExperimentalFailSwapOn = in.ExperimentalFailSwapOn - out.ExperimentalCheckNodeCapabilitiesBeforeMount = in.ExperimentalCheckNodeCapabilitiesBeforeMount return nil } } @@ -482,14 +301,12 @@ func DeepCopy_v1alpha1_KubeletWebhookAuthentication(in interface{}, out interfac { in := in.(*KubeletWebhookAuthentication) out := out.(*KubeletWebhookAuthentication) + *out = *in if in.Enabled != nil { in, out := &in.Enabled, &out.Enabled *out = new(bool) **out = **in - } else { - out.Enabled = nil } - out.CacheTTL = in.CacheTTL return nil } } @@ -498,8 +315,7 @@ func DeepCopy_v1alpha1_KubeletWebhookAuthorization(in interface{}, out interface { in := in.(*KubeletWebhookAuthorization) out := out.(*KubeletWebhookAuthorization) - out.CacheAuthorizedTTL = in.CacheAuthorizedTTL - out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL + *out = *in return nil } } @@ -508,7 +324,7 @@ func DeepCopy_v1alpha1_KubeletX509Authentication(in interface{}, out interface{} { in := in.(*KubeletX509Authentication) out := out.(*KubeletX509Authentication) - out.ClientCAFile = in.ClientCAFile + *out = *in return nil } } @@ -517,16 +333,12 @@ func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface { in := in.(*LeaderElectionConfiguration) out := out.(*LeaderElectionConfiguration) + *out = *in if in.LeaderElect != nil { in, out := &in.LeaderElect, &out.LeaderElect *out = new(bool) **out = **in - } else { - out.LeaderElect = nil } - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod return nil } } diff --git a/pkg/apis/componentconfig/zz_generated.deepcopy.go b/pkg/apis/componentconfig/zz_generated.deepcopy.go index 5402ccfa500a8..1d10cd21094e4 100644 --- a/pkg/apis/componentconfig/zz_generated.deepcopy.go +++ b/pkg/apis/componentconfig/zz_generated.deepcopy.go @@ -58,12 +58,11 @@ func DeepCopy_componentconfig_IPVar(in interface{}, out interface{}, c *conversi { in := in.(*IPVar) out := out.(*IPVar) + *out = *in if in.Val != nil { in, out := &in.Val, &out.Val *out = new(string) **out = **in - } else { - out.Val = nil } return nil } @@ -73,66 +72,7 @@ func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, { in := in.(*KubeControllerManagerConfiguration) out := out.(*KubeControllerManagerConfiguration) - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.UseServiceAccountCredentials = in.UseServiceAccountCredentials - out.CloudProvider = in.CloudProvider - out.CloudConfigFile = in.CloudConfigFile - out.ConcurrentEndpointSyncs = in.ConcurrentEndpointSyncs - out.ConcurrentRSSyncs = in.ConcurrentRSSyncs - out.ConcurrentRCSyncs = in.ConcurrentRCSyncs - out.ConcurrentServiceSyncs = in.ConcurrentServiceSyncs - out.ConcurrentResourceQuotaSyncs = in.ConcurrentResourceQuotaSyncs - out.ConcurrentDeploymentSyncs = in.ConcurrentDeploymentSyncs - out.ConcurrentDaemonSetSyncs = in.ConcurrentDaemonSetSyncs - out.ConcurrentJobSyncs = in.ConcurrentJobSyncs - out.ConcurrentNamespaceSyncs = in.ConcurrentNamespaceSyncs - out.ConcurrentSATokenSyncs = in.ConcurrentSATokenSyncs - out.LookupCacheSizeForRC = in.LookupCacheSizeForRC - out.LookupCacheSizeForRS = in.LookupCacheSizeForRS - out.LookupCacheSizeForDaemonSet = in.LookupCacheSizeForDaemonSet - out.ServiceSyncPeriod = in.ServiceSyncPeriod - out.NodeSyncPeriod = in.NodeSyncPeriod - out.RouteReconciliationPeriod = in.RouteReconciliationPeriod - out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod - out.NamespaceSyncPeriod = in.NamespaceSyncPeriod - out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod - out.MinResyncPeriod = in.MinResyncPeriod - out.TerminatedPodGCThreshold = in.TerminatedPodGCThreshold - out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod - out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod - out.PodEvictionTimeout = in.PodEvictionTimeout - out.DeletingPodsQps = in.DeletingPodsQps - out.DeletingPodsBurst = in.DeletingPodsBurst - out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod - out.RegisterRetryCount = in.RegisterRetryCount - out.NodeStartupGracePeriod = in.NodeStartupGracePeriod - out.NodeMonitorPeriod = in.NodeMonitorPeriod - out.ServiceAccountKeyFile = in.ServiceAccountKeyFile - out.ClusterSigningCertFile = in.ClusterSigningCertFile - out.ClusterSigningKeyFile = in.ClusterSigningKeyFile - out.ApproveAllKubeletCSRsForGroup = in.ApproveAllKubeletCSRsForGroup - out.EnableProfiling = in.EnableProfiling - out.ClusterName = in.ClusterName - out.ClusterCIDR = in.ClusterCIDR - out.ServiceCIDR = in.ServiceCIDR - out.NodeCIDRMaskSize = in.NodeCIDRMaskSize - out.AllocateNodeCIDRs = in.AllocateNodeCIDRs - out.ConfigureCloudRoutes = in.ConfigureCloudRoutes - out.RootCAFile = in.RootCAFile - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.LeaderElection = in.LeaderElection - out.VolumeConfiguration = in.VolumeConfiguration - out.ControllerStartInterval = in.ControllerStartInterval - out.EnableGarbageCollector = in.EnableGarbageCollector - out.ConcurrentGCSyncs = in.ConcurrentGCSyncs - out.NodeEvictionRate = in.NodeEvictionRate - out.SecondaryNodeEvictionRate = in.SecondaryNodeEvictionRate - out.LargeClusterSizeThreshold = in.LargeClusterSizeThreshold - out.UnhealthyZoneThreshold = in.UnhealthyZoneThreshold + *out = *in return nil } } @@ -141,40 +81,17 @@ func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interfa { in := in.(*KubeProxyConfiguration) out := out.(*KubeProxyConfiguration) - out.TypeMeta = in.TypeMeta - out.BindAddress = in.BindAddress - out.ClusterCIDR = in.ClusterCIDR - out.HealthzBindAddress = in.HealthzBindAddress - out.HealthzPort = in.HealthzPort - out.HostnameOverride = in.HostnameOverride + *out = *in if in.IPTablesMasqueradeBit != nil { in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit *out = new(int32) **out = **in - } else { - out.IPTablesMasqueradeBit = nil } - out.IPTablesSyncPeriod = in.IPTablesSyncPeriod - out.IPTablesMinSyncPeriod = in.IPTablesMinSyncPeriod - out.KubeconfigPath = in.KubeconfigPath - out.MasqueradeAll = in.MasqueradeAll - out.Master = in.Master if in.OOMScoreAdj != nil { in, out := &in.OOMScoreAdj, &out.OOMScoreAdj *out = new(int32) **out = **in - } else { - out.OOMScoreAdj = nil } - out.Mode = in.Mode - out.PortRange = in.PortRange - out.ResourceContainer = in.ResourceContainer - out.UDPIdleTimeout = in.UDPIdleTimeout - out.ConntrackMax = in.ConntrackMax - out.ConntrackMaxPerCore = in.ConntrackMaxPerCore - out.ConntrackMin = in.ConntrackMin - out.ConntrackTCPEstablishedTimeout = in.ConntrackTCPEstablishedTimeout - out.ConntrackTCPCloseWaitTimeout = in.ConntrackTCPCloseWaitTimeout return nil } } @@ -183,20 +100,7 @@ func DeepCopy_componentconfig_KubeSchedulerConfiguration(in interface{}, out int { in := in.(*KubeSchedulerConfiguration) out := out.(*KubeSchedulerConfiguration) - out.TypeMeta = in.TypeMeta - out.Port = in.Port - out.Address = in.Address - out.AlgorithmProvider = in.AlgorithmProvider - out.PolicyConfigFile = in.PolicyConfigFile - out.EnableProfiling = in.EnableProfiling - out.EnableContentionProfiling = in.EnableContentionProfiling - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SchedulerName = in.SchedulerName - out.HardPodAffinitySymmetricWeight = in.HardPodAffinitySymmetricWeight - out.FailureDomains = in.FailureDomains - out.LeaderElection = in.LeaderElection + *out = *in return nil } } @@ -205,7 +109,7 @@ func DeepCopy_componentconfig_KubeletAnonymousAuthentication(in interface{}, out { in := in.(*KubeletAnonymousAuthentication) out := out.(*KubeletAnonymousAuthentication) - out.Enabled = in.Enabled + *out = *in return nil } } @@ -214,9 +118,7 @@ func DeepCopy_componentconfig_KubeletAuthentication(in interface{}, out interfac { in := in.(*KubeletAuthentication) out := out.(*KubeletAuthentication) - out.X509 = in.X509 - out.Webhook = in.Webhook - out.Anonymous = in.Anonymous + *out = *in return nil } } @@ -225,8 +127,7 @@ func DeepCopy_componentconfig_KubeletAuthorization(in interface{}, out interface { in := in.(*KubeletAuthorization) out := out.(*KubeletAuthorization) - out.Mode = in.Mode - out.Webhook = in.Webhook + *out = *in return nil } } @@ -235,151 +136,42 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface { in := in.(*KubeletConfiguration) out := out.(*KubeletConfiguration) - out.TypeMeta = in.TypeMeta - out.PodManifestPath = in.PodManifestPath - out.SyncFrequency = in.SyncFrequency - out.FileCheckFrequency = in.FileCheckFrequency - out.HTTPCheckFrequency = in.HTTPCheckFrequency - out.ManifestURL = in.ManifestURL - out.ManifestURLHeader = in.ManifestURLHeader - out.EnableServer = in.EnableServer - out.Address = in.Address - out.Port = in.Port - out.ReadOnlyPort = in.ReadOnlyPort - out.TLSCertFile = in.TLSCertFile - out.TLSPrivateKeyFile = in.TLSPrivateKeyFile - out.CertDirectory = in.CertDirectory - out.Authentication = in.Authentication - out.Authorization = in.Authorization - out.HostnameOverride = in.HostnameOverride - out.PodInfraContainerImage = in.PodInfraContainerImage - out.DockerEndpoint = in.DockerEndpoint - out.RootDirectory = in.RootDirectory - out.SeccompProfileRoot = in.SeccompProfileRoot - out.AllowPrivileged = in.AllowPrivileged + *out = *in if in.HostNetworkSources != nil { in, out := &in.HostNetworkSources, &out.HostNetworkSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostNetworkSources = nil } if in.HostPIDSources != nil { in, out := &in.HostPIDSources, &out.HostPIDSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostPIDSources = nil } if in.HostIPCSources != nil { in, out := &in.HostIPCSources, &out.HostIPCSources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.HostIPCSources = nil } - out.RegistryPullQPS = in.RegistryPullQPS - out.RegistryBurst = in.RegistryBurst - out.EventRecordQPS = in.EventRecordQPS - out.EventBurst = in.EventBurst - out.EnableDebuggingHandlers = in.EnableDebuggingHandlers - out.MinimumGCAge = in.MinimumGCAge - out.MaxPerPodContainerCount = in.MaxPerPodContainerCount - out.MaxContainerCount = in.MaxContainerCount - out.CAdvisorPort = in.CAdvisorPort - out.HealthzPort = in.HealthzPort - out.HealthzBindAddress = in.HealthzBindAddress - out.OOMScoreAdj = in.OOMScoreAdj - out.RegisterNode = in.RegisterNode - out.ClusterDomain = in.ClusterDomain - out.MasterServiceNamespace = in.MasterServiceNamespace - out.ClusterDNS = in.ClusterDNS - out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout - out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency - out.ImageMinimumGCAge = in.ImageMinimumGCAge - out.ImageGCHighThresholdPercent = in.ImageGCHighThresholdPercent - out.ImageGCLowThresholdPercent = in.ImageGCLowThresholdPercent - out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB - out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod - out.NetworkPluginName = in.NetworkPluginName - out.NetworkPluginMTU = in.NetworkPluginMTU - out.NetworkPluginDir = in.NetworkPluginDir - out.CNIConfDir = in.CNIConfDir - out.CNIBinDir = in.CNIBinDir - out.VolumePluginDir = in.VolumePluginDir - out.CloudProvider = in.CloudProvider - out.CloudConfigFile = in.CloudConfigFile - out.KubeletCgroups = in.KubeletCgroups - out.ExperimentalCgroupsPerQOS = in.ExperimentalCgroupsPerQOS - out.CgroupDriver = in.CgroupDriver - out.RuntimeCgroups = in.RuntimeCgroups - out.SystemCgroups = in.SystemCgroups - out.CgroupRoot = in.CgroupRoot - out.ContainerRuntime = in.ContainerRuntime - out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint - out.RemoteImageEndpoint = in.RemoteImageEndpoint - out.RuntimeRequestTimeout = in.RuntimeRequestTimeout - out.ImagePullProgressDeadline = in.ImagePullProgressDeadline - out.RktPath = in.RktPath - out.ExperimentalMounterPath = in.ExperimentalMounterPath - out.RktAPIEndpoint = in.RktAPIEndpoint - out.RktStage1Image = in.RktStage1Image - out.LockFilePath = in.LockFilePath - out.ExitOnLockContention = in.ExitOnLockContention - out.HairpinMode = in.HairpinMode - out.BabysitDaemons = in.BabysitDaemons - out.MaxPods = in.MaxPods - out.NvidiaGPUs = in.NvidiaGPUs - out.DockerExecHandlerName = in.DockerExecHandlerName - out.PodCIDR = in.PodCIDR - out.ResolverConfig = in.ResolverConfig - out.CPUCFSQuota = in.CPUCFSQuota - out.Containerized = in.Containerized - out.MaxOpenFiles = in.MaxOpenFiles - out.RegisterSchedulable = in.RegisterSchedulable if in.RegisterWithTaints != nil { in, out := &in.RegisterWithTaints, &out.RegisterWithTaints *out = make([]api.Taint, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.RegisterWithTaints = nil } - out.ContentType = in.ContentType - out.KubeAPIQPS = in.KubeAPIQPS - out.KubeAPIBurst = in.KubeAPIBurst - out.SerializeImagePulls = in.SerializeImagePulls - out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency - out.NodeIP = in.NodeIP if in.NodeLabels != nil { in, out := &in.NodeLabels, &out.NodeLabels *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.NodeLabels = nil } - out.NonMasqueradeCIDR = in.NonMasqueradeCIDR - out.EnableCustomMetrics = in.EnableCustomMetrics - out.EvictionHard = in.EvictionHard - out.EvictionSoft = in.EvictionSoft - out.EvictionSoftGracePeriod = in.EvictionSoftGracePeriod - out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod - out.EvictionMaxPodGracePeriod = in.EvictionMaxPodGracePeriod - out.EvictionMinimumReclaim = in.EvictionMinimumReclaim - out.ExperimentalKernelMemcgNotification = in.ExperimentalKernelMemcgNotification - out.PodsPerCore = in.PodsPerCore - out.EnableControllerAttachDetach = in.EnableControllerAttachDetach if in.SystemReserved != nil { in, out := &in.SystemReserved, &out.SystemReserved *out = make(config.ConfigurationMap) for key, val := range *in { (*out)[key] = val } - } else { - out.SystemReserved = nil } if in.KubeReserved != nil { in, out := &in.KubeReserved, &out.KubeReserved @@ -387,24 +179,12 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface for key, val := range *in { (*out)[key] = val } - } else { - out.KubeReserved = nil } - out.ProtectKernelDefaults = in.ProtectKernelDefaults - out.MakeIPTablesUtilChains = in.MakeIPTablesUtilChains - out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit - out.IPTablesDropBit = in.IPTablesDropBit if in.AllowedUnsafeSysctls != nil { in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.AllowedUnsafeSysctls = nil } - out.FeatureGates = in.FeatureGates - out.EnableCRI = in.EnableCRI - out.ExperimentalFailSwapOn = in.ExperimentalFailSwapOn - out.ExperimentalCheckNodeCapabilitiesBeforeMount = in.ExperimentalCheckNodeCapabilitiesBeforeMount return nil } } @@ -413,8 +193,7 @@ func DeepCopy_componentconfig_KubeletWebhookAuthentication(in interface{}, out i { in := in.(*KubeletWebhookAuthentication) out := out.(*KubeletWebhookAuthentication) - out.Enabled = in.Enabled - out.CacheTTL = in.CacheTTL + *out = *in return nil } } @@ -423,8 +202,7 @@ func DeepCopy_componentconfig_KubeletWebhookAuthorization(in interface{}, out in { in := in.(*KubeletWebhookAuthorization) out := out.(*KubeletWebhookAuthorization) - out.CacheAuthorizedTTL = in.CacheAuthorizedTTL - out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL + *out = *in return nil } } @@ -433,7 +211,7 @@ func DeepCopy_componentconfig_KubeletX509Authentication(in interface{}, out inte { in := in.(*KubeletX509Authentication) out := out.(*KubeletX509Authentication) - out.ClientCAFile = in.ClientCAFile + *out = *in return nil } } @@ -442,10 +220,7 @@ func DeepCopy_componentconfig_LeaderElectionConfiguration(in interface{}, out in { in := in.(*LeaderElectionConfiguration) out := out.(*LeaderElectionConfiguration) - out.LeaderElect = in.LeaderElect - out.LeaseDuration = in.LeaseDuration - out.RenewDeadline = in.RenewDeadline - out.RetryPeriod = in.RetryPeriod + *out = *in return nil } } @@ -454,13 +229,7 @@ func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in interface { in := in.(*PersistentVolumeRecyclerConfiguration) out := out.(*PersistentVolumeRecyclerConfiguration) - out.MaximumRetry = in.MaximumRetry - out.MinimumTimeoutNFS = in.MinimumTimeoutNFS - out.PodTemplateFilePathNFS = in.PodTemplateFilePathNFS - out.IncrementTimeoutNFS = in.IncrementTimeoutNFS - out.PodTemplateFilePathHostPath = in.PodTemplateFilePathHostPath - out.MinimumTimeoutHostPath = in.MinimumTimeoutHostPath - out.IncrementTimeoutHostPath = in.IncrementTimeoutHostPath + *out = *in return nil } } @@ -469,12 +238,11 @@ func DeepCopy_componentconfig_PortRangeVar(in interface{}, out interface{}, c *c { in := in.(*PortRangeVar) out := out.(*PortRangeVar) + *out = *in if in.Val != nil { in, out := &in.Val, &out.Val *out = new(string) **out = **in - } else { - out.Val = nil } return nil } @@ -484,10 +252,7 @@ func DeepCopy_componentconfig_VolumeConfiguration(in interface{}, out interface{ { in := in.(*VolumeConfiguration) out := out.(*VolumeConfiguration) - out.EnableHostPathProvisioning = in.EnableHostPathProvisioning - out.EnableDynamicProvisioning = in.EnableDynamicProvisioning - out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration - out.FlexVolumePluginDir = in.FlexVolumePluginDir + *out = *in return nil } } diff --git a/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go b/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go index 2aee0d742f829..68dd0ab2b75c2 100644 --- a/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go @@ -106,7 +106,7 @@ func DeepCopy_v1beta1_APIVersion(in interface{}, out interface{}, c *conversion. { in := in.(*APIVersion) out := out.(*APIVersion) - out.Name = in.Name + *out = *in return nil } } @@ -115,7 +115,7 @@ func DeepCopy_v1beta1_CPUTargetUtilization(in interface{}, out interface{}, c *c { in := in.(*CPUTargetUtilization) out := out.(*CPUTargetUtilization) - out.TargetPercentage = in.TargetPercentage + *out = *in return nil } } @@ -124,7 +124,7 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatus(in interface{}, out interface{}, { in := in.(*CustomMetricCurrentStatus) out := out.(*CustomMetricCurrentStatus) - out.Name = in.Name + *out = *in out.CurrentValue = in.CurrentValue.DeepCopy() return nil } @@ -134,6 +134,7 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in interface{}, out interfac { in := in.(*CustomMetricCurrentStatusList) out := out.(*CustomMetricCurrentStatusList) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CustomMetricCurrentStatus, len(*in)) @@ -142,8 +143,6 @@ func DeepCopy_v1beta1_CustomMetricCurrentStatusList(in interface{}, out interfac return err } } - } else { - out.Items = nil } return nil } @@ -153,7 +152,7 @@ func DeepCopy_v1beta1_CustomMetricTarget(in interface{}, out interface{}, c *con { in := in.(*CustomMetricTarget) out := out.(*CustomMetricTarget) - out.Name = in.Name + *out = *in out.TargetValue = in.TargetValue.DeepCopy() return nil } @@ -163,6 +162,7 @@ func DeepCopy_v1beta1_CustomMetricTargetList(in interface{}, out interface{}, c { in := in.(*CustomMetricTargetList) out := out.(*CustomMetricTargetList) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CustomMetricTarget, len(*in)) @@ -171,8 +171,6 @@ func DeepCopy_v1beta1_CustomMetricTargetList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -182,14 +180,13 @@ func DeepCopy_v1beta1_DaemonSet(in interface{}, out interface{}, c *conversion.C { in := in.(*DaemonSet) out := out.(*DaemonSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1beta1_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -198,8 +195,7 @@ func DeepCopy_v1beta1_DaemonSetList(in interface{}, out interface{}, c *conversi { in := in.(*DaemonSetList) out := out.(*DaemonSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DaemonSet, len(*in)) @@ -208,8 +204,6 @@ func DeepCopy_v1beta1_DaemonSetList(in interface{}, out interface{}, c *conversi return err } } - } else { - out.Items = nil } return nil } @@ -219,14 +213,13 @@ func DeepCopy_v1beta1_DaemonSetSpec(in interface{}, out interface{}, c *conversi { in := in.(*DaemonSetSpec) out := out.(*DaemonSetSpec) + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(meta_v1.LabelSelector) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -239,11 +232,7 @@ func DeepCopy_v1beta1_DaemonSetStatus(in interface{}, out interface{}, c *conver { in := in.(*DaemonSetStatus) out := out.(*DaemonSetStatus) - out.CurrentNumberScheduled = in.CurrentNumberScheduled - out.NumberMisscheduled = in.NumberMisscheduled - out.DesiredNumberScheduled = in.DesiredNumberScheduled - out.NumberReady = in.NumberReady - out.ObservedGeneration = in.ObservedGeneration + *out = *in return nil } } @@ -252,7 +241,7 @@ func DeepCopy_v1beta1_Deployment(in interface{}, out interface{}, c *conversion. { in := in.(*Deployment) out := out.(*Deployment) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -270,12 +259,9 @@ func DeepCopy_v1beta1_DeploymentCondition(in interface{}, out interface{}, c *co { in := in.(*DeploymentCondition) out := out.(*DeploymentCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -284,8 +270,7 @@ func DeepCopy_v1beta1_DeploymentList(in interface{}, out interface{}, c *convers { in := in.(*DeploymentList) out := out.(*DeploymentList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Deployment, len(*in)) @@ -294,8 +279,6 @@ func DeepCopy_v1beta1_DeploymentList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -305,18 +288,14 @@ func DeepCopy_v1beta1_DeploymentRollback(in interface{}, out interface{}, c *con { in := in.(*DeploymentRollback) out := out.(*DeploymentRollback) - out.TypeMeta = in.TypeMeta - out.Name = in.Name + *out = *in if in.UpdatedAnnotations != nil { in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.UpdatedAnnotations = nil } - out.RollbackTo = in.RollbackTo return nil } } @@ -325,12 +304,11 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers { in := in.(*DeploymentSpec) out := out.(*DeploymentSpec) + *out = *in if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas *out = new(int32) **out = **in - } else { - out.Replicas = nil } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -338,8 +316,6 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -347,28 +323,20 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers if err := DeepCopy_v1beta1_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { return err } - out.MinReadySeconds = in.MinReadySeconds if in.RevisionHistoryLimit != nil { in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit *out = new(int32) **out = **in - } else { - out.RevisionHistoryLimit = nil } - out.Paused = in.Paused if in.RollbackTo != nil { in, out := &in.RollbackTo, &out.RollbackTo *out = new(RollbackConfig) **out = **in - } else { - out.RollbackTo = nil } if in.ProgressDeadlineSeconds != nil { in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds *out = new(int32) **out = **in - } else { - out.ProgressDeadlineSeconds = nil } return nil } @@ -378,12 +346,7 @@ func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conve { in := in.(*DeploymentStatus) out := out.(*DeploymentStatus) - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = in.Replicas - out.UpdatedReplicas = in.UpdatedReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.UnavailableReplicas = in.UnavailableReplicas + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]DeploymentCondition, len(*in)) @@ -392,8 +355,6 @@ func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conve return err } } - } else { - out.Conditions = nil } return nil } @@ -403,15 +364,13 @@ func DeepCopy_v1beta1_DeploymentStrategy(in interface{}, out interface{}, c *con { in := in.(*DeploymentStrategy) out := out.(*DeploymentStrategy) - out.Type = in.Type + *out = *in if in.RollingUpdate != nil { in, out := &in.RollingUpdate, &out.RollingUpdate *out = new(RollingUpdateDeployment) if err := DeepCopy_v1beta1_RollingUpdateDeployment(*in, *out, c); err != nil { return err } - } else { - out.RollingUpdate = nil } return nil } @@ -421,15 +380,13 @@ func DeepCopy_v1beta1_FSGroupStrategyOptions(in interface{}, out interface{}, c { in := in.(*FSGroupStrategyOptions) out := out.(*FSGroupStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -439,8 +396,7 @@ func DeepCopy_v1beta1_HTTPIngressPath(in interface{}, out interface{}, c *conver { in := in.(*HTTPIngressPath) out := out.(*HTTPIngressPath) - out.Path = in.Path - out.Backend = in.Backend + *out = *in return nil } } @@ -449,14 +405,13 @@ func DeepCopy_v1beta1_HTTPIngressRuleValue(in interface{}, out interface{}, c *c { in := in.(*HTTPIngressRuleValue) out := out.(*HTTPIngressRuleValue) + *out = *in if in.Paths != nil { in, out := &in.Paths, &out.Paths *out = make([]HTTPIngressPath, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Paths = nil } return nil } @@ -466,7 +421,7 @@ func DeepCopy_v1beta1_HorizontalPodAutoscaler(in interface{}, out interface{}, c { in := in.(*HorizontalPodAutoscaler) out := out.(*HorizontalPodAutoscaler) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -484,8 +439,7 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in interface{}, out interface{ { in := in.(*HorizontalPodAutoscalerList) out := out.(*HorizontalPodAutoscalerList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]HorizontalPodAutoscaler, len(*in)) @@ -494,8 +448,6 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerList(in interface{}, out interface{ return err } } - } else { - out.Items = nil } return nil } @@ -505,21 +457,16 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerSpec(in interface{}, out interface{ { in := in.(*HorizontalPodAutoscalerSpec) out := out.(*HorizontalPodAutoscalerSpec) - out.ScaleRef = in.ScaleRef + *out = *in if in.MinReplicas != nil { in, out := &in.MinReplicas, &out.MinReplicas *out = new(int32) **out = **in - } else { - out.MinReplicas = nil } - out.MaxReplicas = in.MaxReplicas if in.CPUUtilization != nil { in, out := &in.CPUUtilization, &out.CPUUtilization *out = new(CPUTargetUtilization) **out = **in - } else { - out.CPUUtilization = nil } return nil } @@ -529,28 +476,21 @@ func DeepCopy_v1beta1_HorizontalPodAutoscalerStatus(in interface{}, out interfac { in := in.(*HorizontalPodAutoscalerStatus) out := out.(*HorizontalPodAutoscalerStatus) + *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in - } else { - out.ObservedGeneration = nil } if in.LastScaleTime != nil { in, out := &in.LastScaleTime, &out.LastScaleTime *out = new(meta_v1.Time) **out = (*in).DeepCopy() - } else { - out.LastScaleTime = nil } - out.CurrentReplicas = in.CurrentReplicas - out.DesiredReplicas = in.DesiredReplicas if in.CurrentCPUUtilizationPercentage != nil { in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage *out = new(int32) **out = **in - } else { - out.CurrentCPUUtilizationPercentage = nil } return nil } @@ -560,8 +500,7 @@ func DeepCopy_v1beta1_HostPortRange(in interface{}, out interface{}, c *conversi { in := in.(*HostPortRange) out := out.(*HostPortRange) - out.Min = in.Min - out.Max = in.Max + *out = *in return nil } } @@ -570,8 +509,7 @@ func DeepCopy_v1beta1_IDRange(in interface{}, out interface{}, c *conversion.Clo { in := in.(*IDRange) out := out.(*IDRange) - out.Min = in.Min - out.Max = in.Max + *out = *in return nil } } @@ -580,7 +518,7 @@ func DeepCopy_v1beta1_Ingress(in interface{}, out interface{}, c *conversion.Clo { in := in.(*Ingress) out := out.(*Ingress) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -598,8 +536,7 @@ func DeepCopy_v1beta1_IngressBackend(in interface{}, out interface{}, c *convers { in := in.(*IngressBackend) out := out.(*IngressBackend) - out.ServiceName = in.ServiceName - out.ServicePort = in.ServicePort + *out = *in return nil } } @@ -608,8 +545,7 @@ func DeepCopy_v1beta1_IngressList(in interface{}, out interface{}, c *conversion { in := in.(*IngressList) out := out.(*IngressList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Ingress, len(*in)) @@ -618,8 +554,6 @@ func DeepCopy_v1beta1_IngressList(in interface{}, out interface{}, c *conversion return err } } - } else { - out.Items = nil } return nil } @@ -629,7 +563,7 @@ func DeepCopy_v1beta1_IngressRule(in interface{}, out interface{}, c *conversion { in := in.(*IngressRule) out := out.(*IngressRule) - out.Host = in.Host + *out = *in if err := DeepCopy_v1beta1_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { return err } @@ -641,14 +575,13 @@ func DeepCopy_v1beta1_IngressRuleValue(in interface{}, out interface{}, c *conve { in := in.(*IngressRuleValue) out := out.(*IngressRuleValue) + *out = *in if in.HTTP != nil { in, out := &in.HTTP, &out.HTTP *out = new(HTTPIngressRuleValue) if err := DeepCopy_v1beta1_HTTPIngressRuleValue(*in, *out, c); err != nil { return err } - } else { - out.HTTP = nil } return nil } @@ -658,12 +591,11 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion { in := in.(*IngressSpec) out := out.(*IngressSpec) + *out = *in if in.Backend != nil { in, out := &in.Backend, &out.Backend *out = new(IngressBackend) **out = **in - } else { - out.Backend = nil } if in.TLS != nil { in, out := &in.TLS, &out.TLS @@ -673,8 +605,6 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion return err } } - } else { - out.TLS = nil } if in.Rules != nil { in, out := &in.Rules, &out.Rules @@ -684,8 +614,6 @@ func DeepCopy_v1beta1_IngressSpec(in interface{}, out interface{}, c *conversion return err } } - } else { - out.Rules = nil } return nil } @@ -695,6 +623,7 @@ func DeepCopy_v1beta1_IngressStatus(in interface{}, out interface{}, c *conversi { in := in.(*IngressStatus) out := out.(*IngressStatus) + *out = *in if err := v1.DeepCopy_v1_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { return err } @@ -706,14 +635,12 @@ func DeepCopy_v1beta1_IngressTLS(in interface{}, out interface{}, c *conversion. { in := in.(*IngressTLS) out := out.(*IngressTLS) + *out = *in if in.Hosts != nil { in, out := &in.Hosts, &out.Hosts *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Hosts = nil } - out.SecretName = in.SecretName return nil } } @@ -722,7 +649,7 @@ func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversi { in := in.(*NetworkPolicy) out := out.(*NetworkPolicy) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -737,6 +664,7 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{}, { in := in.(*NetworkPolicyIngressRule) out := out.(*NetworkPolicyIngressRule) + *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]NetworkPolicyPort, len(*in)) @@ -745,8 +673,6 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{}, return err } } - } else { - out.Ports = nil } if in.From != nil { in, out := &in.From, &out.From @@ -756,8 +682,6 @@ func DeepCopy_v1beta1_NetworkPolicyIngressRule(in interface{}, out interface{}, return err } } - } else { - out.From = nil } return nil } @@ -767,8 +691,7 @@ func DeepCopy_v1beta1_NetworkPolicyList(in interface{}, out interface{}, c *conv { in := in.(*NetworkPolicyList) out := out.(*NetworkPolicyList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]NetworkPolicy, len(*in)) @@ -777,8 +700,6 @@ func DeepCopy_v1beta1_NetworkPolicyList(in interface{}, out interface{}, c *conv return err } } - } else { - out.Items = nil } return nil } @@ -788,14 +709,13 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv { in := in.(*NetworkPolicyPeer) out := out.(*NetworkPolicyPeer) + *out = *in if in.PodSelector != nil { in, out := &in.PodSelector, &out.PodSelector *out = new(meta_v1.LabelSelector) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.PodSelector = nil } if in.NamespaceSelector != nil { in, out := &in.NamespaceSelector, &out.NamespaceSelector @@ -803,8 +723,6 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.NamespaceSelector = nil } return nil } @@ -814,19 +732,16 @@ func DeepCopy_v1beta1_NetworkPolicyPort(in interface{}, out interface{}, c *conv { in := in.(*NetworkPolicyPort) out := out.(*NetworkPolicyPort) + *out = *in if in.Protocol != nil { in, out := &in.Protocol, &out.Protocol *out = new(v1.Protocol) **out = **in - } else { - out.Protocol = nil } if in.Port != nil { in, out := &in.Port, &out.Port *out = new(intstr.IntOrString) **out = **in - } else { - out.Port = nil } return nil } @@ -836,6 +751,7 @@ func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conv { in := in.(*NetworkPolicySpec) out := out.(*NetworkPolicySpec) + *out = *in if err := meta_v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { return err } @@ -847,8 +763,6 @@ func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conv return err } } - } else { - out.Ingress = nil } return nil } @@ -858,7 +772,7 @@ func DeepCopy_v1beta1_PodSecurityPolicy(in interface{}, out interface{}, c *conv { in := in.(*PodSecurityPolicy) out := out.(*PodSecurityPolicy) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -873,8 +787,7 @@ func DeepCopy_v1beta1_PodSecurityPolicyList(in interface{}, out interface{}, c * { in := in.(*PodSecurityPolicyList) out := out.(*PodSecurityPolicyList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodSecurityPolicy, len(*in)) @@ -883,8 +796,6 @@ func DeepCopy_v1beta1_PodSecurityPolicyList(in interface{}, out interface{}, c * return err } } - } else { - out.Items = nil } return nil } @@ -894,15 +805,13 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c * { in := in.(*PodSecurityPolicySpec) out := out.(*PodSecurityPolicySpec) - out.Privileged = in.Privileged + *out = *in if in.DefaultAddCapabilities != nil { in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities *out = make([]v1.Capability, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.DefaultAddCapabilities = nil } if in.RequiredDropCapabilities != nil { in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities @@ -910,8 +819,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c * for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.RequiredDropCapabilities = nil } if in.AllowedCapabilities != nil { in, out := &in.AllowedCapabilities, &out.AllowedCapabilities @@ -919,8 +826,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c * for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AllowedCapabilities = nil } if in.Volumes != nil { in, out := &in.Volumes, &out.Volumes @@ -928,21 +833,14 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c * for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Volumes = nil } - out.HostNetwork = in.HostNetwork if in.HostPorts != nil { in, out := &in.HostPorts, &out.HostPorts *out = make([]HostPortRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.HostPorts = nil } - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC if err := DeepCopy_v1beta1_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { return err } @@ -955,7 +853,6 @@ func DeepCopy_v1beta1_PodSecurityPolicySpec(in interface{}, out interface{}, c * if err := DeepCopy_v1beta1_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { return err } - out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem return nil } } @@ -964,7 +861,7 @@ func DeepCopy_v1beta1_ReplicaSet(in interface{}, out interface{}, c *conversion. { in := in.(*ReplicaSet) out := out.(*ReplicaSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -982,11 +879,8 @@ func DeepCopy_v1beta1_ReplicaSetCondition(in interface{}, out interface{}, c *co { in := in.(*ReplicaSetCondition) out := out.(*ReplicaSetCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -995,8 +889,7 @@ func DeepCopy_v1beta1_ReplicaSetList(in interface{}, out interface{}, c *convers { in := in.(*ReplicaSetList) out := out.(*ReplicaSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicaSet, len(*in)) @@ -1005,8 +898,6 @@ func DeepCopy_v1beta1_ReplicaSetList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -1016,22 +907,18 @@ func DeepCopy_v1beta1_ReplicaSetSpec(in interface{}, out interface{}, c *convers { in := in.(*ReplicaSetSpec) out := out.(*ReplicaSetSpec) + *out = *in if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas *out = new(int32) **out = **in - } else { - out.Replicas = nil } - out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(meta_v1.LabelSelector) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -1044,11 +931,7 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve { in := in.(*ReplicaSetStatus) out := out.(*ReplicaSetStatus) - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ReplicaSetCondition, len(*in)) @@ -1057,8 +940,6 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve return err } } - } else { - out.Conditions = nil } return nil } @@ -1068,7 +949,7 @@ func DeepCopy_v1beta1_ReplicationControllerDummy(in interface{}, out interface{} { in := in.(*ReplicationControllerDummy) out := out.(*ReplicationControllerDummy) - out.TypeMeta = in.TypeMeta + *out = *in return nil } } @@ -1077,7 +958,7 @@ func DeepCopy_v1beta1_RollbackConfig(in interface{}, out interface{}, c *convers { in := in.(*RollbackConfig) out := out.(*RollbackConfig) - out.Revision = in.Revision + *out = *in return nil } } @@ -1086,19 +967,16 @@ func DeepCopy_v1beta1_RollingUpdateDeployment(in interface{}, out interface{}, c { in := in.(*RollingUpdateDeployment) out := out.(*RollingUpdateDeployment) + *out = *in if in.MaxUnavailable != nil { in, out := &in.MaxUnavailable, &out.MaxUnavailable *out = new(intstr.IntOrString) **out = **in - } else { - out.MaxUnavailable = nil } if in.MaxSurge != nil { in, out := &in.MaxSurge, &out.MaxSurge *out = new(intstr.IntOrString) **out = **in - } else { - out.MaxSurge = nil } return nil } @@ -1108,15 +986,13 @@ func DeepCopy_v1beta1_RunAsUserStrategyOptions(in interface{}, out interface{}, { in := in.(*RunAsUserStrategyOptions) out := out.(*RunAsUserStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -1126,13 +1002,11 @@ func DeepCopy_v1beta1_SELinuxStrategyOptions(in interface{}, out interface{}, c { in := in.(*SELinuxStrategyOptions) out := out.(*SELinuxStrategyOptions) - out.Rule = in.Rule + *out = *in if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(v1.SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } return nil } @@ -1142,11 +1016,10 @@ func DeepCopy_v1beta1_Scale(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Scale) out := out.(*Scale) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_v1beta1_ScaleStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -1158,7 +1031,7 @@ func DeepCopy_v1beta1_ScaleSpec(in interface{}, out interface{}, c *conversion.C { in := in.(*ScaleSpec) out := out.(*ScaleSpec) - out.Replicas = in.Replicas + *out = *in return nil } } @@ -1167,17 +1040,14 @@ func DeepCopy_v1beta1_ScaleStatus(in interface{}, out interface{}, c *conversion { in := in.(*ScaleStatus) out := out.(*ScaleStatus) - out.Replicas = in.Replicas + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Selector = nil } - out.TargetSelector = in.TargetSelector return nil } } @@ -1186,10 +1056,7 @@ func DeepCopy_v1beta1_SubresourceReference(in interface{}, out interface{}, c *c { in := in.(*SubresourceReference) out := out.(*SubresourceReference) - out.Kind = in.Kind - out.Name = in.Name - out.APIVersion = in.APIVersion - out.Subresource = in.Subresource + *out = *in return nil } } @@ -1198,15 +1065,13 @@ func DeepCopy_v1beta1_SupplementalGroupsStrategyOptions(in interface{}, out inte { in := in.(*SupplementalGroupsStrategyOptions) out := out.(*SupplementalGroupsStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -1216,19 +1081,16 @@ func DeepCopy_v1beta1_ThirdPartyResource(in interface{}, out interface{}, c *con { in := in.(*ThirdPartyResource) out := out.(*ThirdPartyResource) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Description = in.Description if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]APIVersion, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Versions = nil } return nil } @@ -1238,7 +1100,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceData(in interface{}, out interface{}, c { in := in.(*ThirdPartyResourceData) out := out.(*ThirdPartyResourceData) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -1246,8 +1108,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceData(in interface{}, out interface{}, c in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Data = nil } return nil } @@ -1257,8 +1117,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceDataList(in interface{}, out interface{} { in := in.(*ThirdPartyResourceDataList) out := out.(*ThirdPartyResourceDataList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ThirdPartyResourceData, len(*in)) @@ -1267,8 +1126,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceDataList(in interface{}, out interface{} return err } } - } else { - out.Items = nil } return nil } @@ -1278,8 +1135,7 @@ func DeepCopy_v1beta1_ThirdPartyResourceList(in interface{}, out interface{}, c { in := in.(*ThirdPartyResourceList) out := out.(*ThirdPartyResourceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ThirdPartyResource, len(*in)) @@ -1288,8 +1144,6 @@ func DeepCopy_v1beta1_ThirdPartyResourceList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } diff --git a/pkg/apis/extensions/zz_generated.deepcopy.go b/pkg/apis/extensions/zz_generated.deepcopy.go index 2d99a24ebbeb4..6713b7a7c6019 100644 --- a/pkg/apis/extensions/zz_generated.deepcopy.go +++ b/pkg/apis/extensions/zz_generated.deepcopy.go @@ -100,7 +100,7 @@ func DeepCopy_extensions_APIVersion(in interface{}, out interface{}, c *conversi { in := in.(*APIVersion) out := out.(*APIVersion) - out.Name = in.Name + *out = *in return nil } } @@ -109,7 +109,7 @@ func DeepCopy_extensions_CustomMetricCurrentStatus(in interface{}, out interface { in := in.(*CustomMetricCurrentStatus) out := out.(*CustomMetricCurrentStatus) - out.Name = in.Name + *out = *in out.CurrentValue = in.CurrentValue.DeepCopy() return nil } @@ -119,6 +119,7 @@ func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out inter { in := in.(*CustomMetricCurrentStatusList) out := out.(*CustomMetricCurrentStatusList) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CustomMetricCurrentStatus, len(*in)) @@ -127,8 +128,6 @@ func DeepCopy_extensions_CustomMetricCurrentStatusList(in interface{}, out inter return err } } - } else { - out.Items = nil } return nil } @@ -138,7 +137,7 @@ func DeepCopy_extensions_CustomMetricTarget(in interface{}, out interface{}, c * { in := in.(*CustomMetricTarget) out := out.(*CustomMetricTarget) - out.Name = in.Name + *out = *in out.TargetValue = in.TargetValue.DeepCopy() return nil } @@ -148,6 +147,7 @@ func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{}, { in := in.(*CustomMetricTargetList) out := out.(*CustomMetricTargetList) + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]CustomMetricTarget, len(*in)) @@ -156,8 +156,6 @@ func DeepCopy_extensions_CustomMetricTargetList(in interface{}, out interface{}, return err } } - } else { - out.Items = nil } return nil } @@ -167,14 +165,13 @@ func DeepCopy_extensions_DaemonSet(in interface{}, out interface{}, c *conversio { in := in.(*DaemonSet) out := out.(*DaemonSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_extensions_DaemonSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -183,8 +180,7 @@ func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conve { in := in.(*DaemonSetList) out := out.(*DaemonSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DaemonSet, len(*in)) @@ -193,8 +189,6 @@ func DeepCopy_extensions_DaemonSetList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } @@ -204,14 +198,13 @@ func DeepCopy_extensions_DaemonSetSpec(in interface{}, out interface{}, c *conve { in := in.(*DaemonSetSpec) out := out.(*DaemonSetSpec) + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -224,11 +217,7 @@ func DeepCopy_extensions_DaemonSetStatus(in interface{}, out interface{}, c *con { in := in.(*DaemonSetStatus) out := out.(*DaemonSetStatus) - out.CurrentNumberScheduled = in.CurrentNumberScheduled - out.NumberMisscheduled = in.NumberMisscheduled - out.DesiredNumberScheduled = in.DesiredNumberScheduled - out.NumberReady = in.NumberReady - out.ObservedGeneration = in.ObservedGeneration + *out = *in return nil } } @@ -237,7 +226,7 @@ func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversi { in := in.(*Deployment) out := out.(*Deployment) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -255,12 +244,9 @@ func DeepCopy_extensions_DeploymentCondition(in interface{}, out interface{}, c { in := in.(*DeploymentCondition) out := out.(*DeploymentCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastUpdateTime = in.LastUpdateTime.DeepCopy() out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -269,8 +255,7 @@ func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conv { in := in.(*DeploymentList) out := out.(*DeploymentList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Deployment, len(*in)) @@ -279,8 +264,6 @@ func DeepCopy_extensions_DeploymentList(in interface{}, out interface{}, c *conv return err } } - } else { - out.Items = nil } return nil } @@ -290,18 +273,14 @@ func DeepCopy_extensions_DeploymentRollback(in interface{}, out interface{}, c * { in := in.(*DeploymentRollback) out := out.(*DeploymentRollback) - out.TypeMeta = in.TypeMeta - out.Name = in.Name + *out = *in if in.UpdatedAnnotations != nil { in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.UpdatedAnnotations = nil } - out.RollbackTo = in.RollbackTo return nil } } @@ -310,15 +289,13 @@ func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conv { in := in.(*DeploymentSpec) out := out.(*DeploymentSpec) - out.Replicas = in.Replicas + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -326,28 +303,20 @@ func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conv if err := DeepCopy_extensions_DeploymentStrategy(&in.Strategy, &out.Strategy, c); err != nil { return err } - out.MinReadySeconds = in.MinReadySeconds if in.RevisionHistoryLimit != nil { in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit *out = new(int32) **out = **in - } else { - out.RevisionHistoryLimit = nil } - out.Paused = in.Paused if in.RollbackTo != nil { in, out := &in.RollbackTo, &out.RollbackTo *out = new(RollbackConfig) **out = **in - } else { - out.RollbackTo = nil } if in.ProgressDeadlineSeconds != nil { in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds *out = new(int32) **out = **in - } else { - out.ProgressDeadlineSeconds = nil } return nil } @@ -357,12 +326,7 @@ func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *co { in := in.(*DeploymentStatus) out := out.(*DeploymentStatus) - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = in.Replicas - out.UpdatedReplicas = in.UpdatedReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.UnavailableReplicas = in.UnavailableReplicas + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]DeploymentCondition, len(*in)) @@ -371,8 +335,6 @@ func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *co return err } } - } else { - out.Conditions = nil } return nil } @@ -382,13 +344,11 @@ func DeepCopy_extensions_DeploymentStrategy(in interface{}, out interface{}, c * { in := in.(*DeploymentStrategy) out := out.(*DeploymentStrategy) - out.Type = in.Type + *out = *in if in.RollingUpdate != nil { in, out := &in.RollingUpdate, &out.RollingUpdate *out = new(RollingUpdateDeployment) **out = **in - } else { - out.RollingUpdate = nil } return nil } @@ -398,15 +358,13 @@ func DeepCopy_extensions_FSGroupStrategyOptions(in interface{}, out interface{}, { in := in.(*FSGroupStrategyOptions) out := out.(*FSGroupStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -416,8 +374,7 @@ func DeepCopy_extensions_HTTPIngressPath(in interface{}, out interface{}, c *con { in := in.(*HTTPIngressPath) out := out.(*HTTPIngressPath) - out.Path = in.Path - out.Backend = in.Backend + *out = *in return nil } } @@ -426,14 +383,13 @@ func DeepCopy_extensions_HTTPIngressRuleValue(in interface{}, out interface{}, c { in := in.(*HTTPIngressRuleValue) out := out.(*HTTPIngressRuleValue) + *out = *in if in.Paths != nil { in, out := &in.Paths, &out.Paths *out = make([]HTTPIngressPath, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Paths = nil } return nil } @@ -443,8 +399,7 @@ func DeepCopy_extensions_HostPortRange(in interface{}, out interface{}, c *conve { in := in.(*HostPortRange) out := out.(*HostPortRange) - out.Min = in.Min - out.Max = in.Max + *out = *in return nil } } @@ -453,8 +408,7 @@ func DeepCopy_extensions_IDRange(in interface{}, out interface{}, c *conversion. { in := in.(*IDRange) out := out.(*IDRange) - out.Min = in.Min - out.Max = in.Max + *out = *in return nil } } @@ -463,7 +417,7 @@ func DeepCopy_extensions_Ingress(in interface{}, out interface{}, c *conversion. { in := in.(*Ingress) out := out.(*Ingress) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -481,8 +435,7 @@ func DeepCopy_extensions_IngressBackend(in interface{}, out interface{}, c *conv { in := in.(*IngressBackend) out := out.(*IngressBackend) - out.ServiceName = in.ServiceName - out.ServicePort = in.ServicePort + *out = *in return nil } } @@ -491,8 +444,7 @@ func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *convers { in := in.(*IngressList) out := out.(*IngressList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Ingress, len(*in)) @@ -501,8 +453,6 @@ func DeepCopy_extensions_IngressList(in interface{}, out interface{}, c *convers return err } } - } else { - out.Items = nil } return nil } @@ -512,7 +462,7 @@ func DeepCopy_extensions_IngressRule(in interface{}, out interface{}, c *convers { in := in.(*IngressRule) out := out.(*IngressRule) - out.Host = in.Host + *out = *in if err := DeepCopy_extensions_IngressRuleValue(&in.IngressRuleValue, &out.IngressRuleValue, c); err != nil { return err } @@ -524,14 +474,13 @@ func DeepCopy_extensions_IngressRuleValue(in interface{}, out interface{}, c *co { in := in.(*IngressRuleValue) out := out.(*IngressRuleValue) + *out = *in if in.HTTP != nil { in, out := &in.HTTP, &out.HTTP *out = new(HTTPIngressRuleValue) if err := DeepCopy_extensions_HTTPIngressRuleValue(*in, *out, c); err != nil { return err } - } else { - out.HTTP = nil } return nil } @@ -541,12 +490,11 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers { in := in.(*IngressSpec) out := out.(*IngressSpec) + *out = *in if in.Backend != nil { in, out := &in.Backend, &out.Backend *out = new(IngressBackend) **out = **in - } else { - out.Backend = nil } if in.TLS != nil { in, out := &in.TLS, &out.TLS @@ -556,8 +504,6 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers return err } } - } else { - out.TLS = nil } if in.Rules != nil { in, out := &in.Rules, &out.Rules @@ -567,8 +513,6 @@ func DeepCopy_extensions_IngressSpec(in interface{}, out interface{}, c *convers return err } } - } else { - out.Rules = nil } return nil } @@ -578,6 +522,7 @@ func DeepCopy_extensions_IngressStatus(in interface{}, out interface{}, c *conve { in := in.(*IngressStatus) out := out.(*IngressStatus) + *out = *in if err := api.DeepCopy_api_LoadBalancerStatus(&in.LoadBalancer, &out.LoadBalancer, c); err != nil { return err } @@ -589,14 +534,12 @@ func DeepCopy_extensions_IngressTLS(in interface{}, out interface{}, c *conversi { in := in.(*IngressTLS) out := out.(*IngressTLS) + *out = *in if in.Hosts != nil { in, out := &in.Hosts, &out.Hosts *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Hosts = nil } - out.SecretName = in.SecretName return nil } } @@ -605,7 +548,7 @@ func DeepCopy_extensions_NetworkPolicy(in interface{}, out interface{}, c *conve { in := in.(*NetworkPolicy) out := out.(*NetworkPolicy) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -620,6 +563,7 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{ { in := in.(*NetworkPolicyIngressRule) out := out.(*NetworkPolicyIngressRule) + *out = *in if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]NetworkPolicyPort, len(*in)) @@ -628,8 +572,6 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{ return err } } - } else { - out.Ports = nil } if in.From != nil { in, out := &in.From, &out.From @@ -639,8 +581,6 @@ func DeepCopy_extensions_NetworkPolicyIngressRule(in interface{}, out interface{ return err } } - } else { - out.From = nil } return nil } @@ -650,8 +590,7 @@ func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *c { in := in.(*NetworkPolicyList) out := out.(*NetworkPolicyList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]NetworkPolicy, len(*in)) @@ -660,8 +599,6 @@ func DeepCopy_extensions_NetworkPolicyList(in interface{}, out interface{}, c *c return err } } - } else { - out.Items = nil } return nil } @@ -671,14 +608,13 @@ func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *c { in := in.(*NetworkPolicyPeer) out := out.(*NetworkPolicyPeer) + *out = *in if in.PodSelector != nil { in, out := &in.PodSelector, &out.PodSelector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.PodSelector = nil } if in.NamespaceSelector != nil { in, out := &in.NamespaceSelector, &out.NamespaceSelector @@ -686,8 +622,6 @@ func DeepCopy_extensions_NetworkPolicyPeer(in interface{}, out interface{}, c *c if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.NamespaceSelector = nil } return nil } @@ -697,19 +631,16 @@ func DeepCopy_extensions_NetworkPolicyPort(in interface{}, out interface{}, c *c { in := in.(*NetworkPolicyPort) out := out.(*NetworkPolicyPort) + *out = *in if in.Protocol != nil { in, out := &in.Protocol, &out.Protocol *out = new(api.Protocol) **out = **in - } else { - out.Protocol = nil } if in.Port != nil { in, out := &in.Port, &out.Port *out = new(intstr.IntOrString) **out = **in - } else { - out.Port = nil } return nil } @@ -719,6 +650,7 @@ func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *c { in := in.(*NetworkPolicySpec) out := out.(*NetworkPolicySpec) + *out = *in if err := v1.DeepCopy_v1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { return err } @@ -730,8 +662,6 @@ func DeepCopy_extensions_NetworkPolicySpec(in interface{}, out interface{}, c *c return err } } - } else { - out.Ingress = nil } return nil } @@ -741,7 +671,7 @@ func DeepCopy_extensions_PodSecurityPolicy(in interface{}, out interface{}, c *c { in := in.(*PodSecurityPolicy) out := out.(*PodSecurityPolicy) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -756,8 +686,7 @@ func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{}, { in := in.(*PodSecurityPolicyList) out := out.(*PodSecurityPolicyList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodSecurityPolicy, len(*in)) @@ -766,8 +695,6 @@ func DeepCopy_extensions_PodSecurityPolicyList(in interface{}, out interface{}, return err } } - } else { - out.Items = nil } return nil } @@ -777,15 +704,13 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, { in := in.(*PodSecurityPolicySpec) out := out.(*PodSecurityPolicySpec) - out.Privileged = in.Privileged + *out = *in if in.DefaultAddCapabilities != nil { in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities *out = make([]api.Capability, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.DefaultAddCapabilities = nil } if in.RequiredDropCapabilities != nil { in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities @@ -793,8 +718,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.RequiredDropCapabilities = nil } if in.AllowedCapabilities != nil { in, out := &in.AllowedCapabilities, &out.AllowedCapabilities @@ -802,8 +725,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.AllowedCapabilities = nil } if in.Volumes != nil { in, out := &in.Volumes, &out.Volumes @@ -811,21 +732,14 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Volumes = nil } - out.HostNetwork = in.HostNetwork if in.HostPorts != nil { in, out := &in.HostPorts, &out.HostPorts *out = make([]HostPortRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.HostPorts = nil } - out.HostPID = in.HostPID - out.HostIPC = in.HostIPC if err := DeepCopy_extensions_SELinuxStrategyOptions(&in.SELinux, &out.SELinux, c); err != nil { return err } @@ -838,7 +752,6 @@ func DeepCopy_extensions_PodSecurityPolicySpec(in interface{}, out interface{}, if err := DeepCopy_extensions_FSGroupStrategyOptions(&in.FSGroup, &out.FSGroup, c); err != nil { return err } - out.ReadOnlyRootFilesystem = in.ReadOnlyRootFilesystem return nil } } @@ -847,7 +760,7 @@ func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversi { in := in.(*ReplicaSet) out := out.(*ReplicaSet) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -865,11 +778,8 @@ func DeepCopy_extensions_ReplicaSetCondition(in interface{}, out interface{}, c { in := in.(*ReplicaSetCondition) out := out.(*ReplicaSetCondition) - out.Type = in.Type - out.Status = in.Status + *out = *in out.LastTransitionTime = in.LastTransitionTime.DeepCopy() - out.Reason = in.Reason - out.Message = in.Message return nil } } @@ -878,8 +788,7 @@ func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conv { in := in.(*ReplicaSetList) out := out.(*ReplicaSetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicaSet, len(*in)) @@ -888,8 +797,6 @@ func DeepCopy_extensions_ReplicaSetList(in interface{}, out interface{}, c *conv return err } } - } else { - out.Items = nil } return nil } @@ -899,16 +806,13 @@ func DeepCopy_extensions_ReplicaSetSpec(in interface{}, out interface{}, c *conv { in := in.(*ReplicaSetSpec) out := out.(*ReplicaSetSpec) - out.Replicas = in.Replicas - out.MinReadySeconds = in.MinReadySeconds + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err @@ -921,11 +825,7 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co { in := in.(*ReplicaSetStatus) out := out.(*ReplicaSetStatus) - out.Replicas = in.Replicas - out.FullyLabeledReplicas = in.FullyLabeledReplicas - out.ReadyReplicas = in.ReadyReplicas - out.AvailableReplicas = in.AvailableReplicas - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]ReplicaSetCondition, len(*in)) @@ -934,8 +834,6 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co return err } } - } else { - out.Conditions = nil } return nil } @@ -945,7 +843,7 @@ func DeepCopy_extensions_ReplicationControllerDummy(in interface{}, out interfac { in := in.(*ReplicationControllerDummy) out := out.(*ReplicationControllerDummy) - out.TypeMeta = in.TypeMeta + *out = *in return nil } } @@ -954,7 +852,7 @@ func DeepCopy_extensions_RollbackConfig(in interface{}, out interface{}, c *conv { in := in.(*RollbackConfig) out := out.(*RollbackConfig) - out.Revision = in.Revision + *out = *in return nil } } @@ -963,8 +861,7 @@ func DeepCopy_extensions_RollingUpdateDeployment(in interface{}, out interface{} { in := in.(*RollingUpdateDeployment) out := out.(*RollingUpdateDeployment) - out.MaxUnavailable = in.MaxUnavailable - out.MaxSurge = in.MaxSurge + *out = *in return nil } } @@ -973,15 +870,13 @@ func DeepCopy_extensions_RunAsUserStrategyOptions(in interface{}, out interface{ { in := in.(*RunAsUserStrategyOptions) out := out.(*RunAsUserStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -991,13 +886,11 @@ func DeepCopy_extensions_SELinuxStrategyOptions(in interface{}, out interface{}, { in := in.(*SELinuxStrategyOptions) out := out.(*SELinuxStrategyOptions) - out.Rule = in.Rule + *out = *in if in.SELinuxOptions != nil { in, out := &in.SELinuxOptions, &out.SELinuxOptions *out = new(api.SELinuxOptions) **out = **in - } else { - out.SELinuxOptions = nil } return nil } @@ -1007,11 +900,10 @@ func DeepCopy_extensions_Scale(in interface{}, out interface{}, c *conversion.Cl { in := in.(*Scale) out := out.(*Scale) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Spec = in.Spec if err := DeepCopy_extensions_ScaleStatus(&in.Status, &out.Status, c); err != nil { return err } @@ -1023,7 +915,7 @@ func DeepCopy_extensions_ScaleSpec(in interface{}, out interface{}, c *conversio { in := in.(*ScaleSpec) out := out.(*ScaleSpec) - out.Replicas = in.Replicas + *out = *in return nil } } @@ -1032,15 +924,13 @@ func DeepCopy_extensions_ScaleStatus(in interface{}, out interface{}, c *convers { in := in.(*ScaleStatus) out := out.(*ScaleStatus) - out.Replicas = in.Replicas + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } return nil } @@ -1050,15 +940,13 @@ func DeepCopy_extensions_SupplementalGroupsStrategyOptions(in interface{}, out i { in := in.(*SupplementalGroupsStrategyOptions) out := out.(*SupplementalGroupsStrategyOptions) - out.Rule = in.Rule + *out = *in if in.Ranges != nil { in, out := &in.Ranges, &out.Ranges *out = make([]IDRange, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Ranges = nil } return nil } @@ -1068,19 +956,16 @@ func DeepCopy_extensions_ThirdPartyResource(in interface{}, out interface{}, c * { in := in.(*ThirdPartyResource) out := out.(*ThirdPartyResource) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Description = in.Description if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]APIVersion, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Versions = nil } return nil } @@ -1090,7 +975,7 @@ func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{}, { in := in.(*ThirdPartyResourceData) out := out.(*ThirdPartyResourceData) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -1098,8 +983,6 @@ func DeepCopy_extensions_ThirdPartyResourceData(in interface{}, out interface{}, in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Data = nil } return nil } @@ -1109,8 +992,7 @@ func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interfac { in := in.(*ThirdPartyResourceDataList) out := out.(*ThirdPartyResourceDataList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ThirdPartyResourceData, len(*in)) @@ -1119,8 +1001,6 @@ func DeepCopy_extensions_ThirdPartyResourceDataList(in interface{}, out interfac return err } } - } else { - out.Items = nil } return nil } @@ -1130,8 +1010,7 @@ func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{}, { in := in.(*ThirdPartyResourceList) out := out.(*ThirdPartyResourceList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ThirdPartyResource, len(*in)) @@ -1140,8 +1019,6 @@ func DeepCopy_extensions_ThirdPartyResourceList(in interface{}, out interface{}, return err } } - } else { - out.Items = nil } return nil } diff --git a/pkg/apis/imagepolicy/v1alpha1/BUILD b/pkg/apis/imagepolicy/v1alpha1/BUILD index 98b0687703cb6..5b0dd6bc0bbca 100644 --- a/pkg/apis/imagepolicy/v1alpha1/BUILD +++ b/pkg/apis/imagepolicy/v1alpha1/BUILD @@ -18,6 +18,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go index 9053264fda565..5872cd6f3fad7 100644 --- a/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go @@ -46,14 +46,13 @@ func DeepCopy_v1alpha1_ImageReview(in interface{}, out interface{}, c *conversio { in := in.(*ImageReview) out := out.(*ImageReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -62,7 +61,7 @@ func DeepCopy_v1alpha1_ImageReviewContainerSpec(in interface{}, out interface{}, { in := in.(*ImageReviewContainerSpec) out := out.(*ImageReviewContainerSpec) - out.Image = in.Image + *out = *in return nil } } @@ -71,14 +70,13 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve { in := in.(*ImageReviewSpec) out := out.(*ImageReviewSpec) + *out = *in if in.Containers != nil { in, out := &in.Containers, &out.Containers *out = make([]ImageReviewContainerSpec, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Containers = nil } if in.Annotations != nil { in, out := &in.Annotations, &out.Annotations @@ -86,10 +84,7 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve for key, val := range *in { (*out)[key] = val } - } else { - out.Annotations = nil } - out.Namespace = in.Namespace return nil } } @@ -98,8 +93,7 @@ func DeepCopy_v1alpha1_ImageReviewStatus(in interface{}, out interface{}, c *con { in := in.(*ImageReviewStatus) out := out.(*ImageReviewStatus) - out.Allowed = in.Allowed - out.Reason = in.Reason + *out = *in return nil } } diff --git a/pkg/apis/imagepolicy/v1alpha1/zz_generated.defaults.go b/pkg/apis/imagepolicy/v1alpha1/zz_generated.defaults.go new file mode 100644 index 0000000000000..307983e2e45d5 --- /dev/null +++ b/pkg/apis/imagepolicy/v1alpha1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1alpha1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/imagepolicy/zz_generated.deepcopy.go b/pkg/apis/imagepolicy/zz_generated.deepcopy.go index 1bae1a867f32d..7c5661f6e2810 100644 --- a/pkg/apis/imagepolicy/zz_generated.deepcopy.go +++ b/pkg/apis/imagepolicy/zz_generated.deepcopy.go @@ -46,14 +46,13 @@ func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conver { in := in.(*ImageReview) out := out.(*ImageReview) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status return nil } } @@ -62,7 +61,7 @@ func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface { in := in.(*ImageReviewContainerSpec) out := out.(*ImageReviewContainerSpec) - out.Image = in.Image + *out = *in return nil } } @@ -71,14 +70,13 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co { in := in.(*ImageReviewSpec) out := out.(*ImageReviewSpec) + *out = *in if in.Containers != nil { in, out := &in.Containers, &out.Containers *out = make([]ImageReviewContainerSpec, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Containers = nil } if in.Annotations != nil { in, out := &in.Annotations, &out.Annotations @@ -86,10 +84,7 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co for key, val := range *in { (*out)[key] = val } - } else { - out.Annotations = nil } - out.Namespace = in.Namespace return nil } } @@ -98,8 +93,7 @@ func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c * { in := in.(*ImageReviewStatus) out := out.(*ImageReviewStatus) - out.Allowed = in.Allowed - out.Reason = in.Reason + *out = *in return nil } } diff --git a/pkg/apis/meta/v1/BUILD b/pkg/apis/meta/v1/BUILD index 25f326190c307..7c81487144b9c 100644 --- a/pkg/apis/meta/v1/BUILD +++ b/pkg/apis/meta/v1/BUILD @@ -24,12 +24,14 @@ go_library( "types_swagger_doc_generated.go", "well_known_labels.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ "//pkg/conversion:go_default_library", "//pkg/genericapiserver/openapi/common:go_default_library", "//pkg/labels:go_default_library", + "//pkg/runtime:go_default_library", "//pkg/runtime/schema:go_default_library", "//pkg/selection:go_default_library", "//pkg/types:go_default_library", diff --git a/pkg/apis/meta/v1/zz_generated.deepcopy.go b/pkg/apis/meta/v1/zz_generated.deepcopy.go index a616862e2f043..60b984013cd18 100644 --- a/pkg/apis/meta/v1/zz_generated.deepcopy.go +++ b/pkg/apis/meta/v1/zz_generated.deepcopy.go @@ -22,33 +22,60 @@ package v1 import ( conversion "k8s.io/kubernetes/pkg/conversion" - time "time" + reflect "reflect" ) +// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. +func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { + return []conversion.GeneratedDeepCopyFunc{ + {Fn: DeepCopy_v1_APIGroup, InType: reflect.TypeOf(&APIGroup{})}, + {Fn: DeepCopy_v1_APIGroupList, InType: reflect.TypeOf(&APIGroupList{})}, + {Fn: DeepCopy_v1_APIResource, InType: reflect.TypeOf(&APIResource{})}, + {Fn: DeepCopy_v1_APIResourceList, InType: reflect.TypeOf(&APIResourceList{})}, + {Fn: DeepCopy_v1_APIVersions, InType: reflect.TypeOf(&APIVersions{})}, + {Fn: DeepCopy_v1_Duration, InType: reflect.TypeOf(&Duration{})}, + {Fn: DeepCopy_v1_ExportOptions, InType: reflect.TypeOf(&ExportOptions{})}, + {Fn: DeepCopy_v1_GetOptions, InType: reflect.TypeOf(&GetOptions{})}, + {Fn: DeepCopy_v1_GroupKind, InType: reflect.TypeOf(&GroupKind{})}, + {Fn: DeepCopy_v1_GroupResource, InType: reflect.TypeOf(&GroupResource{})}, + {Fn: DeepCopy_v1_GroupVersion, InType: reflect.TypeOf(&GroupVersion{})}, + {Fn: DeepCopy_v1_GroupVersionForDiscovery, InType: reflect.TypeOf(&GroupVersionForDiscovery{})}, + {Fn: DeepCopy_v1_GroupVersionKind, InType: reflect.TypeOf(&GroupVersionKind{})}, + {Fn: DeepCopy_v1_GroupVersionResource, InType: reflect.TypeOf(&GroupVersionResource{})}, + {Fn: DeepCopy_v1_LabelSelector, InType: reflect.TypeOf(&LabelSelector{})}, + {Fn: DeepCopy_v1_LabelSelectorRequirement, InType: reflect.TypeOf(&LabelSelectorRequirement{})}, + {Fn: DeepCopy_v1_ListMeta, InType: reflect.TypeOf(&ListMeta{})}, + {Fn: DeepCopy_v1_OwnerReference, InType: reflect.TypeOf(&OwnerReference{})}, + {Fn: DeepCopy_v1_Patch, InType: reflect.TypeOf(&Patch{})}, + {Fn: DeepCopy_v1_RootPaths, InType: reflect.TypeOf(&RootPaths{})}, + {Fn: DeepCopy_v1_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, + {Fn: DeepCopy_v1_Status, InType: reflect.TypeOf(&Status{})}, + {Fn: DeepCopy_v1_StatusCause, InType: reflect.TypeOf(&StatusCause{})}, + {Fn: DeepCopy_v1_StatusDetails, InType: reflect.TypeOf(&StatusDetails{})}, + {Fn: DeepCopy_v1_Time, InType: reflect.TypeOf(&Time{})}, + {Fn: DeepCopy_v1_Timestamp, InType: reflect.TypeOf(&Timestamp{})}, + {Fn: DeepCopy_v1_TypeMeta, InType: reflect.TypeOf(&TypeMeta{})}, + } +} + func DeepCopy_v1_APIGroup(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*APIGroup) out := out.(*APIGroup) - out.TypeMeta = in.TypeMeta - out.Name = in.Name + *out = *in if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]GroupVersionForDiscovery, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Versions = nil } - out.PreferredVersion = in.PreferredVersion if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs *out = make([]ServerAddressByClientCIDR, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ServerAddressByClientCIDRs = nil } return nil } @@ -58,7 +85,7 @@ func DeepCopy_v1_APIGroupList(in interface{}, out interface{}, c *conversion.Clo { in := in.(*APIGroupList) out := out.(*APIGroupList) - out.TypeMeta = in.TypeMeta + *out = *in if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]APIGroup, len(*in)) @@ -67,8 +94,6 @@ func DeepCopy_v1_APIGroupList(in interface{}, out interface{}, c *conversion.Clo return err } } - } else { - out.Groups = nil } return nil } @@ -78,15 +103,11 @@ func DeepCopy_v1_APIResource(in interface{}, out interface{}, c *conversion.Clon { in := in.(*APIResource) out := out.(*APIResource) - out.Name = in.Name - out.Namespaced = in.Namespaced - out.Kind = in.Kind + *out = *in if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *out = make(Verbs, len(*in)) copy(*out, *in) - } else { - out.Verbs = nil } return nil } @@ -96,8 +117,7 @@ func DeepCopy_v1_APIResourceList(in interface{}, out interface{}, c *conversion. { in := in.(*APIResourceList) out := out.(*APIResourceList) - out.TypeMeta = in.TypeMeta - out.GroupVersion = in.GroupVersion + *out = *in if in.APIResources != nil { in, out := &in.APIResources, &out.APIResources *out = make([]APIResource, len(*in)) @@ -106,8 +126,6 @@ func DeepCopy_v1_APIResourceList(in interface{}, out interface{}, c *conversion. return err } } - } else { - out.APIResources = nil } return nil } @@ -117,13 +135,11 @@ func DeepCopy_v1_APIVersions(in interface{}, out interface{}, c *conversion.Clon { in := in.(*APIVersions) out := out.(*APIVersions) - out.TypeMeta = in.TypeMeta + *out = *in if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Versions = nil } if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs @@ -131,8 +147,6 @@ func DeepCopy_v1_APIVersions(in interface{}, out interface{}, c *conversion.Clon for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.ServerAddressByClientCIDRs = nil } return nil } @@ -142,7 +156,7 @@ func DeepCopy_v1_Duration(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*Duration) out := out.(*Duration) - out.Duration = in.Duration + *out = *in return nil } } @@ -151,9 +165,7 @@ func DeepCopy_v1_ExportOptions(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ExportOptions) out := out.(*ExportOptions) - out.TypeMeta = in.TypeMeta - out.Export = in.Export - out.Exact = in.Exact + *out = *in return nil } } @@ -162,8 +174,7 @@ func DeepCopy_v1_GetOptions(in interface{}, out interface{}, c *conversion.Clone { in := in.(*GetOptions) out := out.(*GetOptions) - out.TypeMeta = in.TypeMeta - out.ResourceVersion = in.ResourceVersion + *out = *in return nil } } @@ -172,8 +183,7 @@ func DeepCopy_v1_GroupKind(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*GroupKind) out := out.(*GroupKind) - out.Group = in.Group - out.Kind = in.Kind + *out = *in return nil } } @@ -182,8 +192,7 @@ func DeepCopy_v1_GroupResource(in interface{}, out interface{}, c *conversion.Cl { in := in.(*GroupResource) out := out.(*GroupResource) - out.Group = in.Group - out.Resource = in.Resource + *out = *in return nil } } @@ -192,8 +201,7 @@ func DeepCopy_v1_GroupVersion(in interface{}, out interface{}, c *conversion.Clo { in := in.(*GroupVersion) out := out.(*GroupVersion) - out.Group = in.Group - out.Version = in.Version + *out = *in return nil } } @@ -202,8 +210,7 @@ func DeepCopy_v1_GroupVersionForDiscovery(in interface{}, out interface{}, c *co { in := in.(*GroupVersionForDiscovery) out := out.(*GroupVersionForDiscovery) - out.GroupVersion = in.GroupVersion - out.Version = in.Version + *out = *in return nil } } @@ -212,9 +219,7 @@ func DeepCopy_v1_GroupVersionKind(in interface{}, out interface{}, c *conversion { in := in.(*GroupVersionKind) out := out.(*GroupVersionKind) - out.Group = in.Group - out.Version = in.Version - out.Kind = in.Kind + *out = *in return nil } } @@ -223,9 +228,7 @@ func DeepCopy_v1_GroupVersionResource(in interface{}, out interface{}, c *conver { in := in.(*GroupVersionResource) out := out.(*GroupVersionResource) - out.Group = in.Group - out.Version = in.Version - out.Resource = in.Resource + *out = *in return nil } } @@ -234,14 +237,13 @@ func DeepCopy_v1_LabelSelector(in interface{}, out interface{}, c *conversion.Cl { in := in.(*LabelSelector) out := out.(*LabelSelector) + *out = *in if in.MatchLabels != nil { in, out := &in.MatchLabels, &out.MatchLabels *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.MatchLabels = nil } if in.MatchExpressions != nil { in, out := &in.MatchExpressions, &out.MatchExpressions @@ -251,8 +253,6 @@ func DeepCopy_v1_LabelSelector(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.MatchExpressions = nil } return nil } @@ -262,14 +262,11 @@ func DeepCopy_v1_LabelSelectorRequirement(in interface{}, out interface{}, c *co { in := in.(*LabelSelectorRequirement) out := out.(*LabelSelectorRequirement) - out.Key = in.Key - out.Operator = in.Operator + *out = *in if in.Values != nil { in, out := &in.Values, &out.Values *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Values = nil } return nil } @@ -279,8 +276,7 @@ func DeepCopy_v1_ListMeta(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*ListMeta) out := out.(*ListMeta) - out.SelfLink = in.SelfLink - out.ResourceVersion = in.ResourceVersion + *out = *in return nil } } @@ -289,16 +285,11 @@ func DeepCopy_v1_OwnerReference(in interface{}, out interface{}, c *conversion.C { in := in.(*OwnerReference) out := out.(*OwnerReference) - out.APIVersion = in.APIVersion - out.Kind = in.Kind - out.Name = in.Name - out.UID = in.UID + *out = *in if in.Controller != nil { in, out := &in.Controller, &out.Controller *out = new(bool) **out = **in - } else { - out.Controller = nil } return nil } @@ -308,8 +299,7 @@ func DeepCopy_v1_Patch(in interface{}, out interface{}, c *conversion.Cloner) er { in := in.(*Patch) out := out.(*Patch) - _ = in - _ = out + *out = *in return nil } } @@ -318,12 +308,11 @@ func DeepCopy_v1_RootPaths(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*RootPaths) out := out.(*RootPaths) + *out = *in if in.Paths != nil { in, out := &in.Paths, &out.Paths *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Paths = nil } return nil } @@ -333,8 +322,7 @@ func DeepCopy_v1_ServerAddressByClientCIDR(in interface{}, out interface{}, c *c { in := in.(*ServerAddressByClientCIDR) out := out.(*ServerAddressByClientCIDR) - out.ClientCIDR = in.ClientCIDR - out.ServerAddress = in.ServerAddress + *out = *in return nil } } @@ -343,21 +331,14 @@ func DeepCopy_v1_Status(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Status) out := out.(*Status) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - out.Status = in.Status - out.Message = in.Message - out.Reason = in.Reason + *out = *in if in.Details != nil { in, out := &in.Details, &out.Details *out = new(StatusDetails) if err := DeepCopy_v1_StatusDetails(*in, *out, c); err != nil { return err } - } else { - out.Details = nil } - out.Code = in.Code return nil } } @@ -366,9 +347,7 @@ func DeepCopy_v1_StatusCause(in interface{}, out interface{}, c *conversion.Clon { in := in.(*StatusCause) out := out.(*StatusCause) - out.Type = in.Type - out.Message = in.Message - out.Field = in.Field + *out = *in return nil } } @@ -377,19 +356,14 @@ func DeepCopy_v1_StatusDetails(in interface{}, out interface{}, c *conversion.Cl { in := in.(*StatusDetails) out := out.(*StatusDetails) - out.Name = in.Name - out.Group = in.Group - out.Kind = in.Kind + *out = *in if in.Causes != nil { in, out := &in.Causes, &out.Causes *out = make([]StatusCause, len(*in)) for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Causes = nil } - out.RetryAfterSeconds = in.RetryAfterSeconds return nil } } @@ -398,11 +372,7 @@ func DeepCopy_v1_Time(in interface{}, out interface{}, c *conversion.Cloner) err { in := in.(*Time) out := out.(*Time) - if newVal, err := c.DeepCopy(&in.Time); err != nil { - return err - } else { - out.Time = *newVal.(*time.Time) - } + *out = in.DeepCopy() return nil } } @@ -411,8 +381,7 @@ func DeepCopy_v1_Timestamp(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Timestamp) out := out.(*Timestamp) - out.Seconds = in.Seconds - out.Nanos = in.Nanos + *out = *in return nil } } @@ -421,8 +390,7 @@ func DeepCopy_v1_TypeMeta(in interface{}, out interface{}, c *conversion.Cloner) { in := in.(*TypeMeta) out := out.(*TypeMeta) - out.Kind = in.Kind - out.APIVersion = in.APIVersion + *out = *in return nil } } diff --git a/pkg/apis/meta/v1/zz_generated.defaults.go b/pkg/apis/meta/v1/zz_generated.defaults.go new file mode 100644 index 0000000000000..bb5da13a862b0 --- /dev/null +++ b/pkg/apis/meta/v1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go b/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go index 24e60df5996f8..9a6b712eb85ba 100644 --- a/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go @@ -48,7 +48,7 @@ func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cl { in := in.(*Eviction) out := out.(*Eviction) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -58,8 +58,6 @@ func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cl if err := v1.DeepCopy_v1_DeleteOptions(*in, *out, c); err != nil { return err } - } else { - out.DeleteOptions = nil } return nil } @@ -69,7 +67,7 @@ func DeepCopy_v1beta1_PodDisruptionBudget(in interface{}, out interface{}, c *co { in := in.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -87,8 +85,7 @@ func DeepCopy_v1beta1_PodDisruptionBudgetList(in interface{}, out interface{}, c { in := in.(*PodDisruptionBudgetList) out := out.(*PodDisruptionBudgetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodDisruptionBudget, len(*in)) @@ -97,8 +94,6 @@ func DeepCopy_v1beta1_PodDisruptionBudgetList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -108,15 +103,13 @@ func DeepCopy_v1beta1_PodDisruptionBudgetSpec(in interface{}, out interface{}, c { in := in.(*PodDisruptionBudgetSpec) out := out.(*PodDisruptionBudgetSpec) - out.MinAvailable = in.MinAvailable + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(meta_v1.LabelSelector) if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } return nil } @@ -126,20 +119,14 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{}, { in := in.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus) - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.DisruptedPods != nil { in, out := &in.DisruptedPods, &out.DisruptedPods *out = make(map[string]meta_v1.Time) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.DisruptedPods = nil } - out.PodDisruptionsAllowed = in.PodDisruptionsAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods return nil } } diff --git a/pkg/apis/policy/zz_generated.deepcopy.go b/pkg/apis/policy/zz_generated.deepcopy.go index 34c2bc8fdc8a7..452d23e8d7ded 100644 --- a/pkg/apis/policy/zz_generated.deepcopy.go +++ b/pkg/apis/policy/zz_generated.deepcopy.go @@ -48,7 +48,7 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo { in := in.(*Eviction) out := out.(*Eviction) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -58,8 +58,6 @@ func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Clo if err := api.DeepCopy_api_DeleteOptions(*in, *out, c); err != nil { return err } - } else { - out.DeleteOptions = nil } return nil } @@ -69,7 +67,7 @@ func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *con { in := in.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -87,8 +85,7 @@ func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c { in := in.(*PodDisruptionBudgetList) out := out.(*PodDisruptionBudgetList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodDisruptionBudget, len(*in)) @@ -97,8 +94,6 @@ func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -108,15 +103,13 @@ func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c { in := in.(*PodDisruptionBudgetSpec) out := out.(*PodDisruptionBudgetSpec) - out.MinAvailable = in.MinAvailable + *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(v1.LabelSelector) if err := v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { return err } - } else { - out.Selector = nil } return nil } @@ -126,20 +119,14 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, { in := in.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus) - out.ObservedGeneration = in.ObservedGeneration + *out = *in if in.DisruptedPods != nil { in, out := &in.DisruptedPods, &out.DisruptedPods *out = make(map[string]v1.Time) for key, val := range *in { (*out)[key] = val.DeepCopy() } - } else { - out.DisruptedPods = nil } - out.PodDisruptionsAllowed = in.PodDisruptionsAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods return nil } } diff --git a/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go index 98bb07efa2ecf..2c6dbee6773f4 100644 --- a/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go @@ -53,7 +53,7 @@ func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversio { in := in.(*ClusterRole) out := out.(*ClusterRole) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,8 +65,6 @@ func DeepCopy_v1alpha1_ClusterRole(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Rules = nil } return nil } @@ -76,7 +74,7 @@ func DeepCopy_v1alpha1_ClusterRoleBinding(in interface{}, out interface{}, c *co { in := in.(*ClusterRoleBinding) out := out.(*ClusterRoleBinding) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -86,10 +84,7 @@ func DeepCopy_v1alpha1_ClusterRoleBinding(in interface{}, out interface{}, c *co for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Subjects = nil } - out.RoleRef = in.RoleRef return nil } } @@ -98,8 +93,7 @@ func DeepCopy_v1alpha1_ClusterRoleBindingList(in interface{}, out interface{}, c { in := in.(*ClusterRoleBindingList) out := out.(*ClusterRoleBindingList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterRoleBinding, len(*in)) @@ -108,8 +102,6 @@ func DeepCopy_v1alpha1_ClusterRoleBindingList(in interface{}, out interface{}, c return err } } - } else { - out.Items = nil } return nil } @@ -119,8 +111,7 @@ func DeepCopy_v1alpha1_ClusterRoleList(in interface{}, out interface{}, c *conve { in := in.(*ClusterRoleList) out := out.(*ClusterRoleList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterRole, len(*in)) @@ -129,8 +120,6 @@ func DeepCopy_v1alpha1_ClusterRoleList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } @@ -140,12 +129,11 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion { in := in.(*PolicyRule) out := out.(*PolicyRule) + *out = *in if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Verbs = nil } if err := runtime.DeepCopy_runtime_RawExtension(&in.AttributeRestrictions, &out.AttributeRestrictions, c); err != nil { return err @@ -154,29 +142,21 @@ func DeepCopy_v1alpha1_PolicyRule(in interface{}, out interface{}, c *conversion in, out := &in.APIGroups, &out.APIGroups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.APIGroups = nil } if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Resources = nil } if in.ResourceNames != nil { in, out := &in.ResourceNames, &out.ResourceNames *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.ResourceNames = nil } if in.NonResourceURLs != nil { in, out := &in.NonResourceURLs, &out.NonResourceURLs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.NonResourceURLs = nil } return nil } @@ -186,7 +166,7 @@ func DeepCopy_v1alpha1_Role(in interface{}, out interface{}, c *conversion.Clone { in := in.(*Role) out := out.(*Role) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -198,8 +178,6 @@ func DeepCopy_v1alpha1_Role(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Rules = nil } return nil } @@ -209,7 +187,7 @@ func DeepCopy_v1alpha1_RoleBinding(in interface{}, out interface{}, c *conversio { in := in.(*RoleBinding) out := out.(*RoleBinding) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -219,10 +197,7 @@ func DeepCopy_v1alpha1_RoleBinding(in interface{}, out interface{}, c *conversio for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Subjects = nil } - out.RoleRef = in.RoleRef return nil } } @@ -231,8 +206,7 @@ func DeepCopy_v1alpha1_RoleBindingList(in interface{}, out interface{}, c *conve { in := in.(*RoleBindingList) out := out.(*RoleBindingList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]RoleBinding, len(*in)) @@ -241,8 +215,6 @@ func DeepCopy_v1alpha1_RoleBindingList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } @@ -252,8 +224,7 @@ func DeepCopy_v1alpha1_RoleList(in interface{}, out interface{}, c *conversion.C { in := in.(*RoleList) out := out.(*RoleList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Role, len(*in)) @@ -262,8 +233,6 @@ func DeepCopy_v1alpha1_RoleList(in interface{}, out interface{}, c *conversion.C return err } } - } else { - out.Items = nil } return nil } @@ -273,9 +242,7 @@ func DeepCopy_v1alpha1_RoleRef(in interface{}, out interface{}, c *conversion.Cl { in := in.(*RoleRef) out := out.(*RoleRef) - out.APIGroup = in.APIGroup - out.Kind = in.Kind - out.Name = in.Name + *out = *in return nil } } @@ -284,10 +251,7 @@ func DeepCopy_v1alpha1_Subject(in interface{}, out interface{}, c *conversion.Cl { in := in.(*Subject) out := out.(*Subject) - out.Kind = in.Kind - out.APIVersion = in.APIVersion - out.Name = in.Name - out.Namespace = in.Namespace + *out = *in return nil } } diff --git a/pkg/apis/rbac/zz_generated.deepcopy.go b/pkg/apis/rbac/zz_generated.deepcopy.go index a4c747e16ff3a..0eb28d6ad6308 100644 --- a/pkg/apis/rbac/zz_generated.deepcopy.go +++ b/pkg/apis/rbac/zz_generated.deepcopy.go @@ -53,7 +53,7 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl { in := in.(*ClusterRole) out := out.(*ClusterRole) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -65,8 +65,6 @@ func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cl return err } } - } else { - out.Rules = nil } return nil } @@ -76,7 +74,7 @@ func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conver { in := in.(*ClusterRoleBinding) out := out.(*ClusterRoleBinding) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -86,10 +84,7 @@ func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conver for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Subjects = nil } - out.RoleRef = in.RoleRef return nil } } @@ -98,8 +93,7 @@ func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *co { in := in.(*ClusterRoleBindingList) out := out.(*ClusterRoleBindingList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterRoleBinding, len(*in)) @@ -108,8 +102,6 @@ func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *co return err } } - } else { - out.Items = nil } return nil } @@ -119,8 +111,7 @@ func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversio { in := in.(*ClusterRoleList) out := out.(*ClusterRoleList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterRole, len(*in)) @@ -129,8 +120,6 @@ func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Items = nil } return nil } @@ -140,47 +129,39 @@ func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Clo { in := in.(*PolicyRule) out := out.(*PolicyRule) + *out = *in if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Verbs = nil } - if in.AttributeRestrictions == nil { - out.AttributeRestrictions = nil - } else if newVal, err := c.DeepCopy(&in.AttributeRestrictions); err != nil { - return err - } else { - out.AttributeRestrictions = *newVal.(*runtime.Object) + // in.AttributeRestrictions is kind 'Interface' + if in.AttributeRestrictions != nil { + if newVal, err := c.DeepCopy(&in.AttributeRestrictions); err != nil { + return err + } else { + out.AttributeRestrictions = *newVal.(*runtime.Object) + } } if in.APIGroups != nil { in, out := &in.APIGroups, &out.APIGroups *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.APIGroups = nil } if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.Resources = nil } if in.ResourceNames != nil { in, out := &in.ResourceNames, &out.ResourceNames *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.ResourceNames = nil } if in.NonResourceURLs != nil { in, out := &in.NonResourceURLs, &out.NonResourceURLs *out = make([]string, len(*in)) copy(*out, *in) - } else { - out.NonResourceURLs = nil } return nil } @@ -190,7 +171,7 @@ func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) e { in := in.(*Role) out := out.(*Role) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -202,8 +183,6 @@ func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) e return err } } - } else { - out.Rules = nil } return nil } @@ -213,7 +192,7 @@ func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cl { in := in.(*RoleBinding) out := out.(*RoleBinding) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } @@ -223,10 +202,7 @@ func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cl for i := range *in { (*out)[i] = (*in)[i] } - } else { - out.Subjects = nil } - out.RoleRef = in.RoleRef return nil } } @@ -235,8 +211,7 @@ func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversio { in := in.(*RoleBindingList) out := out.(*RoleBindingList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]RoleBinding, len(*in)) @@ -245,8 +220,6 @@ func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversio return err } } - } else { - out.Items = nil } return nil } @@ -256,8 +229,7 @@ func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Clone { in := in.(*RoleList) out := out.(*RoleList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Role, len(*in)) @@ -266,8 +238,6 @@ func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Clone return err } } - } else { - out.Items = nil } return nil } @@ -277,9 +247,7 @@ func DeepCopy_rbac_RoleRef(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*RoleRef) out := out.(*RoleRef) - out.APIGroup = in.APIGroup - out.Kind = in.Kind - out.Name = in.Name + *out = *in return nil } } @@ -288,10 +256,7 @@ func DeepCopy_rbac_Subject(in interface{}, out interface{}, c *conversion.Cloner { in := in.(*Subject) out := out.(*Subject) - out.Kind = in.Kind - out.APIVersion = in.APIVersion - out.Name = in.Name - out.Namespace = in.Namespace + *out = *in return nil } } diff --git a/pkg/apis/storage/v1beta1/BUILD b/pkg/apis/storage/v1beta1/BUILD index fb07229ca8195..5b61a8a3850bc 100644 --- a/pkg/apis/storage/v1beta1/BUILD +++ b/pkg/apis/storage/v1beta1/BUILD @@ -18,6 +18,7 @@ go_library( "types_swagger_doc_generated.go", "zz_generated.conversion.go", "zz_generated.deepcopy.go", + "zz_generated.defaults.go", ], tags = ["automanaged"], deps = [ diff --git a/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go b/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go index a0540414d6425..62caaa2b96e31 100644 --- a/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go @@ -44,19 +44,16 @@ func DeepCopy_v1beta1_StorageClass(in interface{}, out interface{}, c *conversio { in := in.(*StorageClass) out := out.(*StorageClass) - out.TypeMeta = in.TypeMeta + *out = *in if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Provisioner = in.Provisioner if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Parameters = nil } return nil } @@ -66,8 +63,7 @@ func DeepCopy_v1beta1_StorageClassList(in interface{}, out interface{}, c *conve { in := in.(*StorageClassList) out := out.(*StorageClassList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StorageClass, len(*in)) @@ -76,8 +72,6 @@ func DeepCopy_v1beta1_StorageClassList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } diff --git a/pkg/apis/storage/v1beta1/zz_generated.defaults.go b/pkg/apis/storage/v1beta1/zz_generated.defaults.go new file mode 100644 index 0000000000000..7cd6967ccf10a --- /dev/null +++ b/pkg/apis/storage/v1beta1/zz_generated.defaults.go @@ -0,0 +1,32 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + runtime "k8s.io/kubernetes/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/storage/zz_generated.deepcopy.go b/pkg/apis/storage/zz_generated.deepcopy.go index 0451db7795b0d..d7cea6b64479f 100644 --- a/pkg/apis/storage/zz_generated.deepcopy.go +++ b/pkg/apis/storage/zz_generated.deepcopy.go @@ -44,19 +44,16 @@ func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversio { in := in.(*StorageClass) out := out.(*StorageClass) - out.TypeMeta = in.TypeMeta + *out = *in if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { return err } - out.Provisioner = in.Provisioner if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = make(map[string]string) for key, val := range *in { (*out)[key] = val } - } else { - out.Parameters = nil } return nil } @@ -66,8 +63,7 @@ func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conve { in := in.(*StorageClassList) out := out.(*StorageClassList) - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StorageClass, len(*in)) @@ -76,8 +72,6 @@ func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conve return err } } - } else { - out.Items = nil } return nil } diff --git a/pkg/runtime/zz_generated.deepcopy.go b/pkg/runtime/zz_generated.deepcopy.go index 8ba61db1daf7f..3b04fd00e2631 100644 --- a/pkg/runtime/zz_generated.deepcopy.go +++ b/pkg/runtime/zz_generated.deepcopy.go @@ -22,25 +22,35 @@ package runtime import ( conversion "k8s.io/kubernetes/pkg/conversion" + reflect "reflect" ) +// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them. +func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc { + return []conversion.GeneratedDeepCopyFunc{ + {Fn: DeepCopy_runtime_RawExtension, InType: reflect.TypeOf(&RawExtension{})}, + {Fn: DeepCopy_runtime_TypeMeta, InType: reflect.TypeOf(&TypeMeta{})}, + {Fn: DeepCopy_runtime_Unknown, InType: reflect.TypeOf(&Unknown{})}, + } +} + func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*RawExtension) out := out.(*RawExtension) + *out = *in if in.Raw != nil { in, out := &in.Raw, &out.Raw *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Raw = nil } - if in.Object == nil { - out.Object = nil - } else if newVal, err := c.DeepCopy(&in.Object); err != nil { - return err - } else { - out.Object = *newVal.(*Object) + // in.Object is kind 'Interface' + if in.Object != nil { + if newVal, err := c.DeepCopy(&in.Object); err != nil { + return err + } else { + out.Object = *newVal.(*Object) + } } return nil } @@ -50,8 +60,7 @@ func DeepCopy_runtime_TypeMeta(in interface{}, out interface{}, c *conversion.Cl { in := in.(*TypeMeta) out := out.(*TypeMeta) - out.APIVersion = in.APIVersion - out.Kind = in.Kind + *out = *in return nil } } @@ -60,16 +69,12 @@ func DeepCopy_runtime_Unknown(in interface{}, out interface{}, c *conversion.Clo { in := in.(*Unknown) out := out.(*Unknown) - out.TypeMeta = in.TypeMeta + *out = *in if in.Raw != nil { in, out := &in.Raw, &out.Raw *out = make([]byte, len(*in)) copy(*out, *in) - } else { - out.Raw = nil } - out.ContentEncoding = in.ContentEncoding - out.ContentType = in.ContentType return nil } }