From 0374af06329ca538caa03a3f439ba4a3d8df630a Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Sun, 22 Sep 2024 21:59:57 -0700 Subject: [PATCH] fix: rollback codegen script (#2079) --- hack/update-codegen.sh | 6 +- .../v1alpha1/zz_generated.deepcopy.go | 62 +++++++++++++++++++ 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 1137a938cc..3ab861b73b 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -17,13 +17,15 @@ cd "${FAKE_REPOPATH}" CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${FAKE_REPOPATH}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)} +chmod +x ${CODEGEN_PKG}/*.sh + subheader "running codegen" -bash -x ${CODEGEN_PKG}/kube_codegen.sh "deepcopy" \ +bash -x ${CODEGEN_PKG}/generate-groups.sh "deepcopy" \ github.com/numaproj/numaflow/pkg/client github.com/numaproj/numaflow/pkg/apis \ "numaflow:v1alpha1" \ --go-header-file hack/boilerplate/boilerplate.go.txt -bash -x ${CODEGEN_PKG}/kube_codegen.sh "client,informer,lister" \ +bash -x ${CODEGEN_PKG}/generate-groups.sh "client,informer,lister" \ github.com/numaproj/numaflow/pkg/client github.com/numaproj/numaflow/pkg/apis \ "numaflow:v1alpha1" \ --plural-exceptions="Vertex:Vertices,MonoVertex:MonoVertices" \ diff --git a/pkg/apis/numaflow/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/numaflow/v1alpha1/zz_generated.deepcopy.go index b6325ce920..49b93292ff 100644 --- a/pkg/apis/numaflow/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/numaflow/v1alpha1/zz_generated.deepcopy.go @@ -212,6 +212,7 @@ func (in *AbstractVertex) DeepCopyInto(out *AbstractVertex) { *out = new(ContainerTemplate) (*in).DeepCopyInto(*out) } + in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) return } @@ -422,6 +423,16 @@ func (in *Container) DeepCopyInto(out *Container) { *out = new(v1.PullPolicy) **out = **in } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + (*in).DeepCopyInto(*out) + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + (*in).DeepCopyInto(*out) + } return } @@ -458,6 +469,16 @@ func (in *ContainerTemplate) DeepCopyInto(out *ContainerTemplate) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(Probe) + (*in).DeepCopyInto(*out) + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(Probe) + (*in).DeepCopyInto(*out) + } return } @@ -1917,6 +1938,47 @@ func (in *PipelineStatus) DeepCopy() *PipelineStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Probe) DeepCopyInto(out *Probe) { + *out = *in + if in.InitialDelaySeconds != nil { + in, out := &in.InitialDelaySeconds, &out.InitialDelaySeconds + *out = new(int32) + **out = **in + } + if in.TimeoutSeconds != nil { + in, out := &in.TimeoutSeconds, &out.TimeoutSeconds + *out = new(int32) + **out = **in + } + if in.PeriodSeconds != nil { + in, out := &in.PeriodSeconds, &out.PeriodSeconds + *out = new(int32) + **out = **in + } + if in.SuccessThreshold != nil { + in, out := &in.SuccessThreshold, &out.SuccessThreshold + *out = new(int32) + **out = **in + } + if in.FailureThreshold != nil { + in, out := &in.FailureThreshold, &out.FailureThreshold + *out = new(int32) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe. +func (in *Probe) DeepCopy() *Probe { + if in == nil { + return nil + } + out := new(Probe) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RedisBufferService) DeepCopyInto(out *RedisBufferService) { *out = *in