From 14964f98ad5285aa269984e018d990471d20be17 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Fri, 27 Sep 2024 17:52:06 +0800 Subject: [PATCH] fix make test bug --- .../v1alpha1/zz_generated.deepcopy.go | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/apis/operations/v1alpha1/zz_generated.deepcopy.go b/apis/operations/v1alpha1/zz_generated.deepcopy.go index b4683da1b3b..dde565a2e53 100644 --- a/apis/operations/v1alpha1/zz_generated.deepcopy.go +++ b/apis/operations/v1alpha1/zz_generated.deepcopy.go @@ -208,7 +208,9 @@ func (in *CustomOpsComponent) DeepCopyInto(out *CustomOpsComponent) { if in.Parameters != nil { in, out := &in.Parameters, &out.Parameters *out = make([]Parameter, len(*in)) - copy(*out, *in) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } @@ -985,6 +987,11 @@ func (in *OpsWorkloadAction) DeepCopy() *OpsWorkloadAction { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Parameter) DeepCopyInto(out *Parameter) { *out = *in + if in.ValueFrom != nil { + in, out := &in.ValueFrom, &out.ValueFrom + *out = new(ParameterSource) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameter. @@ -1039,6 +1046,31 @@ func (in *ParameterPair) DeepCopy() *ParameterPair { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ParameterSource) DeepCopyInto(out *ParameterSource) { + *out = *in + if in.ConfigMapKeyRef != nil { + in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef + *out = new(v1.ConfigMapKeySelector) + (*in).DeepCopyInto(*out) + } + if in.SecretKeyRef != nil { + in, out := &in.SecretKeyRef, &out.SecretKeyRef + *out = new(v1.SecretKeySelector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterSource. +func (in *ParameterSource) DeepCopy() *ParameterSource { + if in == nil { + return nil + } + out := new(ParameterSource) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ParametersSchema) DeepCopyInto(out *ParametersSchema) { *out = *in