From dc727f45d71586ae857b565e15f98fb32ed33c1d Mon Sep 17 00:00:00 2001 From: Jakub Al-Khalili Date: Fri, 2 Aug 2019 09:38:17 +0200 Subject: [PATCH] Deepcopy fix --- .../jenkins/v1alpha2/zz_generated.deepcopy.go | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/pkg/apis/jenkins/v1alpha2/zz_generated.deepcopy.go b/pkg/apis/jenkins/v1alpha2/zz_generated.deepcopy.go index 96caca6f..ce270cab 100644 --- a/pkg/apis/jenkins/v1alpha2/zz_generated.deepcopy.go +++ b/pkg/apis/jenkins/v1alpha2/zz_generated.deepcopy.go @@ -260,6 +260,23 @@ func (in *Jenkins) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *JenkinsAgent) DeepCopyInto(out *JenkinsAgent) { + *out = *in + in.Container.DeepCopyInto(&out.Container) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsAgent. +func (in *JenkinsAgent) DeepCopy() *JenkinsAgent { + if in == nil { + return nil + } + out := new(JenkinsAgent) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *JenkinsList) DeepCopyInto(out *JenkinsList) { *out = *in @@ -366,11 +383,7 @@ func (in *JenkinsSpec) DeepCopyInto(out *JenkinsSpec) { *out = make([]SeedJob, len(*in)) copy(*out, *in) } - if in.Notification != nil { - in, out := &in.Notification, &out.Notification - *out = make([]Notification, len(*in)) - copy(*out, *in) - } + out.Notification = in.Notification in.Service.DeepCopyInto(&out.Service) in.SlaveService.DeepCopyInto(&out.SlaveService) in.Backup.DeepCopyInto(&out.Backup) @@ -438,6 +451,7 @@ func (in *JenkinsStatus) DeepCopy() *JenkinsStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Mailgun) DeepCopyInto(out *Mailgun) { *out = *in + out.APIKeySecretKeySelector = in.APIKeySecretKeySelector return }