func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PetSetSpec) out := out.(*PetSetSpec) out.Replicas = in.Replicas if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) if err := unversioned.DeepCopy_unversioned_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 } if in.VolumeClaimTemplates != nil { in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates *out = make([]api.PersistentVolumeClaim, len(*in)) for i := range *in { if err := api.DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { return err } } } else { out.VolumeClaimTemplates = nil } out.ServiceName = in.ServiceName return nil } }
func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*JobSpec) out := out.(*JobSpec) 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 *out = new(unversioned.LabelSelector) if err := unversioned.DeepCopy_unversioned_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 } return nil } }
func DeepCopy_extensions_DaemonSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*DaemonSetSpec) out := out.(*DaemonSetSpec) if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) if err := unversioned.DeepCopy_unversioned_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 } return nil } }
func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*DeploymentSpec) out := out.(*DeploymentSpec) out.Replicas = in.Replicas if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) if err := unversioned.DeepCopy_unversioned_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 } 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 } return nil } }