in apis/flinkcluster/v1beta1/zz_generated.deepcopy.go [702:866]
func (in *JobSpec) DeepCopyInto(out *JobSpec) {
*out = *in
if in.ClassPath != nil {
in, out := &in.ClassPath, &out.ClassPath
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.JarFile != nil {
in, out := &in.JarFile, &out.JarFile
*out = new(string)
**out = **in
}
if in.ClassName != nil {
in, out := &in.ClassName, &out.ClassName
*out = new(string)
**out = **in
}
if in.PyFile != nil {
in, out := &in.PyFile, &out.PyFile
*out = new(string)
**out = **in
}
if in.PyFiles != nil {
in, out := &in.PyFiles, &out.PyFiles
*out = new(string)
**out = **in
}
if in.PyModule != nil {
in, out := &in.PyModule, &out.PyModule
*out = new(string)
**out = **in
}
if in.Args != nil {
in, out := &in.Args, &out.Args
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.FromSavepoint != nil {
in, out := &in.FromSavepoint, &out.FromSavepoint
*out = new(string)
**out = **in
}
if in.AllowNonRestoredState != nil {
in, out := &in.AllowNonRestoredState, &out.AllowNonRestoredState
*out = new(bool)
**out = **in
}
if in.SavepointsDir != nil {
in, out := &in.SavepointsDir, &out.SavepointsDir
*out = new(string)
**out = **in
}
if in.TakeSavepointOnUpdate != nil {
in, out := &in.TakeSavepointOnUpdate, &out.TakeSavepointOnUpdate
*out = new(bool)
**out = **in
}
if in.MaxStateAgeToRestoreSeconds != nil {
in, out := &in.MaxStateAgeToRestoreSeconds, &out.MaxStateAgeToRestoreSeconds
*out = new(int32)
**out = **in
}
if in.AutoSavepointSeconds != nil {
in, out := &in.AutoSavepointSeconds, &out.AutoSavepointSeconds
*out = new(int32)
**out = **in
}
if in.Parallelism != nil {
in, out := &in.Parallelism, &out.Parallelism
*out = new(int32)
**out = **in
}
if in.NoLoggingToStdout != nil {
in, out := &in.NoLoggingToStdout, &out.NoLoggingToStdout
*out = new(bool)
**out = **in
}
if in.Volumes != nil {
in, out := &in.Volumes, &out.Volumes
*out = make([]v1.Volume, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.VolumeMounts != nil {
in, out := &in.VolumeMounts, &out.VolumeMounts
*out = make([]v1.VolumeMount, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.InitContainers != nil {
in, out := &in.InitContainers, &out.InitContainers
*out = make([]v1.Container, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Affinity != nil {
in, out := &in.Affinity, &out.Affinity
*out = new(v1.Affinity)
(*in).DeepCopyInto(*out)
}
if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Tolerations != nil {
in, out := &in.Tolerations, &out.Tolerations
*out = make([]v1.Toleration, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.RestartPolicy != nil {
in, out := &in.RestartPolicy, &out.RestartPolicy
*out = new(JobRestartPolicy)
**out = **in
}
if in.CleanupPolicy != nil {
in, out := &in.CleanupPolicy, &out.CleanupPolicy
*out = new(CleanupPolicy)
**out = **in
}
if in.CancelRequested != nil {
in, out := &in.CancelRequested, &out.CancelRequested
*out = new(bool)
**out = **in
}
if in.PodAnnotations != nil {
in, out := &in.PodAnnotations, &out.PodAnnotations
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.PodLabels != nil {
in, out := &in.PodLabels, &out.PodLabels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
in.Resources.DeepCopyInto(&out.Resources)
if in.SecurityContext != nil {
in, out := &in.SecurityContext, &out.SecurityContext
*out = new(v1.PodSecurityContext)
(*in).DeepCopyInto(*out)
}
if in.HostAliases != nil {
in, out := &in.HostAliases, &out.HostAliases
*out = make([]v1.HostAlias, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Mode != nil {
in, out := &in.Mode, &out.Mode
*out = new(JobMode)
**out = **in
}
}