Skip to content

Commit 2559a5d

Browse files
committed
chore: copy paste error and test
1 parent 295db6b commit 2559a5d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pkg/apis/config/feature_flags.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ const (
103103

104104
// EnableArtifacts is the flag to enable the use of Artifacts in Steps
105105
EnableArtifacts = "enable-artifacts"
106-
// DefaultEnableArtifacts is the default value for EnableStepActions
107-
DefaultEnableArtifacts = false
106+
108107
// EnableParamEnum is the flag to enabled enum in params
109108
EnableParamEnum = "enable-param-enum"
110109

@@ -149,6 +148,12 @@ var (
149148
Stability: AlphaAPIFields,
150149
Enabled: DefaultAlphaFeatureEnabled}
151150

151+
// DefaultEnableArtifacts is the default PerFeatureFlag value for EnableStepActions
152+
DefaultEnableArtifacts = PerFeatureFlag{
153+
Name: EnableStepActions,
154+
Stability: AlphaAPIFields,
155+
Enabled: DefaultAlphaFeatureEnabled}
156+
152157
// DefaultEnableParamEnum is the default PerFeatureFlag value for EnableParamEnum
153158
DefaultEnableParamEnum = PerFeatureFlag{
154159
Name: EnableParamEnum,
@@ -283,7 +288,7 @@ func NewFeatureFlagsFromMap(cfgMap map[string]string) (*FeatureFlags, error) {
283288
return nil, err
284289
}
285290

286-
if err := setFeature(EnableStepActions, DefaultEnableArtifacts, &tc.EnableArtifacts); err != nil {
291+
if err := setPerFeatureFlag(EnableArtifacts, DefaultEnableArtifacts, &tc.EnableArtifacts); err != nil {
287292
return nil, err
288293
}
289294
// Given that they are alpha features, Tekton Bundles and Custom Tasks should be switched on if

0 commit comments

Comments
 (0)