From a112f53927319c734dcc24cdba8d21144b698bff Mon Sep 17 00:00:00 2001 From: Hao Hao Date: Mon, 20 May 2024 11:29:06 -0700 Subject: [PATCH] use kube_codegen.sh instead in codegen Signed-off-by: Hao Hao --- hack/update-codegen.sh | 2 +- pkg/apis/numaplane/v1alpha1/zz_generated.deepcopy.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 19bd2bbc..c7af96ae 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -17,7 +17,7 @@ cd "${FAKE_REPOPATH}" CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${FAKE_REPOPATH}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)} -bash -x ${CODEGEN_PKG}/generate-groups.sh "client" \ +bash -x ${CODEGEN_PKG}/kube_codegen.sh "client" \ github.com/numaproj-labs/numaplane/pkg/client github.com/numaproj-labs/numaplane/pkg/apis \ "numaplane:v1alpha1" \ --go-header-file hack/boilerplate.go.txt diff --git a/pkg/apis/numaplane/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/numaplane/v1alpha1/zz_generated.deepcopy.go index 47c58625..eb0597a5 100644 --- a/pkg/apis/numaplane/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/numaplane/v1alpha1/zz_generated.deepcopy.go @@ -22,7 +22,7 @@ package v1alpha1 import ( "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -374,7 +374,7 @@ func (in *PipelineRollout) DeepCopyInto(out *PipelineRollout) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status } @@ -431,6 +431,7 @@ func (in *PipelineRolloutList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PipelineRolloutSpec) DeepCopyInto(out *PipelineRolloutSpec) { *out = *in + in.Pipeline.DeepCopyInto(&out.Pipeline) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRolloutSpec.