From bdaa3ed2d765466a61738c3041b3d15793f1c545 Mon Sep 17 00:00:00 2001 From: Jeeva Kandasamy Date: Fri, 1 Nov 2024 08:12:22 +0530 Subject: [PATCH] accept featureFlags.EnableTektonOCIBundles to fix unknown field error Signed-off-by: Jeeva Kandasamy --- pkg/apis/config/feature_flags.go | 2 +- pkg/apis/config/zz_generated.deepcopy.go | 5 +++++ pkg/apis/pipeline/v1/zz_generated.deepcopy.go | 2 +- pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/apis/config/feature_flags.go b/pkg/apis/config/feature_flags.go index d0db62052cf..7344c3247c0 100644 --- a/pkg/apis/config/feature_flags.go +++ b/pkg/apis/config/feature_flags.go @@ -188,7 +188,7 @@ type FeatureFlags struct { DisableCredsInit bool RunningInEnvWithInjectedSidecars bool RequireGitSSHSecretKnownHosts bool - // EnableTektonOCIBundles bool // Deprecated: this is now ignored + EnableTektonOCIBundles *bool // Deprecated: this is now ignored, keeping here as bool pointer to fix GH issue: 8359 // ScopeWhenExpressionsToTask bool // Deprecated: this is now ignored EnableAPIFields string SendCloudEventsForRuns bool diff --git a/pkg/apis/config/zz_generated.deepcopy.go b/pkg/apis/config/zz_generated.deepcopy.go index b670e28058d..fec791895fa 100644 --- a/pkg/apis/config/zz_generated.deepcopy.go +++ b/pkg/apis/config/zz_generated.deepcopy.go @@ -90,6 +90,11 @@ func (in *Events) DeepCopy() *Events { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FeatureFlags) DeepCopyInto(out *FeatureFlags) { *out = *in + if in.EnableTektonOCIBundles != nil { + in, out := &in.EnableTektonOCIBundles, &out.EnableTektonOCIBundles + *out = new(bool) + **out = **in + } return } diff --git a/pkg/apis/pipeline/v1/zz_generated.deepcopy.go b/pkg/apis/pipeline/v1/zz_generated.deepcopy.go index c3057d33561..861b7b5538f 100644 --- a/pkg/apis/pipeline/v1/zz_generated.deepcopy.go +++ b/pkg/apis/pipeline/v1/zz_generated.deepcopy.go @@ -1074,7 +1074,7 @@ func (in *Provenance) DeepCopyInto(out *Provenance) { if in.FeatureFlags != nil { in, out := &in.FeatureFlags, &out.FeatureFlags *out = new(config.FeatureFlags) - **out = **in + (*in).DeepCopyInto(*out) } return } diff --git a/pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go b/pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go index 8c2afe35a6f..d9c1490e28e 100644 --- a/pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go @@ -1522,7 +1522,7 @@ func (in *Provenance) DeepCopyInto(out *Provenance) { if in.FeatureFlags != nil { in, out := &in.FeatureFlags, &out.FeatureFlags *out = new(config.FeatureFlags) - **out = **in + (*in).DeepCopyInto(*out) } return }