Skip to content

Commit 8f5df0e

Browse files
committed
accept featureFlags.EnableTektonOCIBundles to fix unknown field error
1 parent 8669ca1 commit 8f5df0e

File tree

6 files changed

+39
-10
lines changed

6 files changed

+39
-10
lines changed

config/300-crds/300-pipelinerun.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,8 @@ spec:
22052205
enableStepActions:
22062206
description: EnableStepActions is a no-op flag since StepActions are stable
22072207
type: boolean
2208+
enableTektonOCIBundles:
2209+
type: boolean
22082210
enableWaitExponentialBackoff:
22092211
type: boolean
22102212
enforceNonfalsifiability:
@@ -2620,6 +2622,8 @@ spec:
26202622
enableStepActions:
26212623
description: EnableStepActions is a no-op flag since StepActions are stable
26222624
type: boolean
2625+
enableTektonOCIBundles:
2626+
type: boolean
26232627
enableWaitExponentialBackoff:
26242628
type: boolean
26252629
enforceNonfalsifiability:
@@ -2909,6 +2913,8 @@ spec:
29092913
enableStepActions:
29102914
description: EnableStepActions is a no-op flag since StepActions are stable
29112915
type: boolean
2916+
enableTektonOCIBundles:
2917+
type: boolean
29122918
enableWaitExponentialBackoff:
29132919
type: boolean
29142920
enforceNonfalsifiability:
@@ -5138,6 +5144,8 @@ spec:
51385144
enableStepActions:
51395145
description: EnableStepActions is a no-op flag since StepActions are stable
51405146
type: boolean
5147+
enableTektonOCIBundles:
5148+
type: boolean
51415149
enableWaitExponentialBackoff:
51425150
type: boolean
51435151
enforceNonfalsifiability:

config/300-crds/300-taskrun.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,8 @@ spec:
17761776
enableStepActions:
17771777
description: EnableStepActions is a no-op flag since StepActions are stable
17781778
type: boolean
1779+
enableTektonOCIBundles:
1780+
type: boolean
17791781
enableWaitExponentialBackoff:
17801782
type: boolean
17811783
enforceNonfalsifiability:
@@ -2065,6 +2067,8 @@ spec:
20652067
enableStepActions:
20662068
description: EnableStepActions is a no-op flag since StepActions are stable
20672069
type: boolean
2070+
enableTektonOCIBundles:
2071+
type: boolean
20682072
enableWaitExponentialBackoff:
20692073
type: boolean
20702074
enforceNonfalsifiability:
@@ -3771,6 +3775,8 @@ spec:
37713775
enableStepActions:
37723776
description: EnableStepActions is a no-op flag since StepActions are stable
37733777
type: boolean
3778+
enableTektonOCIBundles:
3779+
type: boolean
37743780
enableWaitExponentialBackoff:
37753781
type: boolean
37763782
enforceNonfalsifiability:
@@ -4026,6 +4032,8 @@ spec:
40264032
enableStepActions:
40274033
description: EnableStepActions is a no-op flag since StepActions are stable
40284034
type: boolean
4035+
enableTektonOCIBundles:
4036+
type: boolean
40294037
enableWaitExponentialBackoff:
40304038
type: boolean
40314039
enforceNonfalsifiability:

pkg/apis/config/feature_flags.go

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const (
123123
runningInEnvWithInjectedSidecarsKey = "running-in-environment-with-injected-sidecars"
124124
awaitSidecarReadinessKey = "await-sidecar-readiness"
125125
requireGitSSHSecretKnownHostsKey = "require-git-ssh-secret-known-hosts" //nolint:gosec
126-
// enableTektonOCIBundles = "enable-tekton-oci-bundles"
126+
EnableTektonOCIBundles = "enable-tekton-oci-bundles"
127127

128128
enableAPIFields = "enable-api-fields"
129129
sendCloudEventsForRuns = "send-cloudevents-for-runs"
@@ -175,6 +175,13 @@ var (
175175
Stability: AlphaAPIFields,
176176
Enabled: DefaultAlphaFeatureEnabled,
177177
}
178+
179+
DefaultEnableTektonOCIBundles = PerFeatureFlag{
180+
Name: EnableTektonOCIBundles,
181+
Stability: AlphaAPIFields,
182+
Enabled: DefaultAlphaFeatureEnabled,
183+
Deprecated: true,
184+
}
178185
)
179186

180187
// FeatureFlags holds the features configurations
@@ -203,13 +210,14 @@ type FeatureFlags struct {
203210
Coschedule string `json:"coschedule,omitempty"`
204211
EnableCELInWhenExpression bool `json:"enableCELInWhenExpression,omitempty"`
205212
// EnableStepActions is a no-op flag since StepActions are stable
206-
EnableStepActions bool `json:"enableStepActions,omitempty"`
207-
EnableParamEnum bool `json:"enableParamEnum,omitempty"`
208-
EnableArtifacts bool `json:"enableArtifacts,omitempty"`
209-
DisableInlineSpec string `json:"disableInlineSpec,omitempty"`
210-
EnableConciseResolverSyntax bool `json:"enableConciseResolverSyntax,omitempty"`
211-
EnableKubernetesSidecar bool `json:"enableKubernetesSidecar,omitempty"`
212-
EnableWaitExponentialBackoff bool `json:"enableWaitExponentialBackoff,omitempty"`
213+
EnableStepActions bool `json:"enableStepActions,omitempty"`
214+
EnableParamEnum bool `json:"enableParamEnum,omitempty"`
215+
EnableArtifacts bool `json:"enableArtifacts,omitempty"`
216+
DisableInlineSpec string `json:"disableInlineSpec,omitempty"`
217+
EnableConciseResolverSyntax bool `json:"enableConciseResolverSyntax,omitempty"`
218+
EnableKubernetesSidecar bool `json:"enableKubernetesSidecar,omitempty"`
219+
EnableWaitExponentialBackoff bool `json:"enableWaitExponentialBackoff,omitempty"`
220+
DeprecatedEnableTektonOCIBundles *bool `json:"enableTektonOCIBundles,omitempty" yaml:"EnableTektonOCIBundles,omitempty"`
213221
}
214222

215223
// GetFeatureFlagsConfigName returns the name of the configmap containing all

pkg/apis/config/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/pipeline/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)