Skip to content

Commit 6c8346e

Browse files
committed
feat: enable step actions by default
1 parent aec465e commit 6c8346e

9 files changed

+15
-9
lines changed

config/config-feature-flags.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ data:
124124
keep-pod-on-cancel: "false"
125125
# Setting this flag to "true" will enable the CEL evaluation in WhenExpression
126126
enable-cel-in-whenexpression: "false"
127-
# Setting this flag to "true" will enable the use of StepActions in Steps
128-
# This feature is in preview mode and not implemented yet. Please check #7259 for updates.
129-
enable-step-actions: "false"
127+
# Setting this flag to "true" will enable the use of StepActions in Steps.
128+
enable-step-actions: "true"
130129
# Setting this flag to "true" will enable the use of Artifacts in Steps
131130
# This feature is in preview mode and not implemented yet. Please check #7693 for updates.
132131
enable-artifacts: "false"

docs/stepactions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ weight: 201
2222

2323
## Overview
2424
> :seedling: **`StepActions` is an [beta](additional-configs.md#beta-features) feature.**
25-
> The `enable-step-actions` feature flag must be set to `"true"` to specify a `StepAction` in a `Step`.
25+
> Step actions are enabled by default. You can disable them by setting the `enable-step-actions` feature flag to `"false"`.
2626
2727
A `StepAction` is the reusable and scriptable unit of work that is performed by a `Step`.
2828

pkg/apis/config/feature_flags.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ var (
158158
// DefaultEnableStepActions is the default PerFeatureFlag value for EnableStepActions
159159
DefaultEnableStepActions = PerFeatureFlag{
160160
Name: EnableStepActions,
161-
Stability: BetaAPIFields,
162-
Enabled: DefaultBetaFeatureEnabled,
161+
Stability: StableAPIFields,
162+
Enabled: DefaultStableFeatureEnabled,
163163
}
164164

165165
// DefaultEnableArtifacts is the default PerFeatureFlag value for EnableArtifacts

pkg/apis/config/feature_flags_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func TestNewFeatureFlagsFromConfigMap(t *testing.T) {
132132
SetSecurityContext: config.DefaultSetSecurityContext,
133133
Coschedule: config.DefaultCoschedule,
134134
EnableParamEnum: config.DefaultEnableParamEnum.Enabled,
135+
EnableStepActions: config.DefaultEnableStepActions.Enabled,
135136
DisableInlineSpec: config.DefaultDisableInlineSpec,
136137
},
137138
fileName: "feature-flags-bundles-and-custom-tasks",
@@ -153,6 +154,7 @@ func TestNewFeatureFlagsFromConfigMap(t *testing.T) {
153154
SetSecurityContext: config.DefaultSetSecurityContext,
154155
Coschedule: config.DefaultCoschedule,
155156
EnableParamEnum: config.DefaultEnableParamEnum.Enabled,
157+
EnableStepActions: config.DefaultEnableStepActions.Enabled,
156158
DisableInlineSpec: config.DefaultDisableInlineSpec,
157159
},
158160
fileName: "feature-flags-beta-api-fields",

pkg/apis/config/testdata/feature-flags-beta-api-fields.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ metadata:
44
name: feature-flags
55
namespace: tekton-pipelines
66
data:
7-
enable-api-fields: "beta"
7+
enable-api-fields: "beta"
8+
enable-step-actions: "true"

pkg/apis/config/testdata/feature-flags-bundles-and-custom-tasks.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ data:
77
enable-tekton-oci-bundles: "true"
88
enable-custom-tasks: "true"
99
enable-api-fields: "stable"
10+
enable-step-actions: "true"

pkg/reconciler/taskrun/taskrun_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,7 @@ status:
17341734
MaxResultSize: 4096
17351735
Coschedule: "workspaces"
17361736
DisableInlineSpec: ""
1737+
EnableStepActions: true
17371738
provenance:
17381739
featureFlags:
17391740
RunningInEnvWithInjectedSidecars: true
@@ -1746,6 +1747,7 @@ status:
17461747
MaxResultSize: 4096
17471748
Coschedule: "workspaces"
17481749
DisableInlineSpec: ""
1750+
EnableStepActions: true
17491751
`, pipelineErrors.UserErrorLabel, pipelineErrors.UserErrorLabel))
17501752
reconciliatonError = errors.New("1 error occurred:\n\t* Provided results don't match declared results; may be invalid JSON or missing result declaration: \"aResult\": task result is expected to be \"array\" type but was initialized to a different type \"string\"")
17511753
toBeRetriedTaskRun = parse.MustParseV1TaskRun(t, `
@@ -1800,6 +1802,7 @@ status:
18001802
MaxResultSize: 4096
18011803
Coschedule: "workspaces"
18021804
DisableInlineSpec: ""
1805+
EnableStepActions: true
18031806
`)
18041807
toBeRetriedWithResultsTaskRun = parse.MustParseV1TaskRun(t, `
18051808
metadata:

test/e2e-tests-kind-prow-feature-flags.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN_YAML_TESTS=false
55
KO_DOCKER_REPO=registry.local:5000
66
RUN_FEATUREFLAG_TESTS=true
77
E2E_GO_TEST_TIMEOUT=60m
8-
ENABLE_STEP_ACTIONS=false
8+
ENABLE_STEP_ACTIONS=true
99
ENABLE_CEL_IN_WHENEXPRESSION=false
1010
ENABLE_PARAM_ENUM=false
1111
KEEP_POD_ON_CANCEL=false

test/e2e-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SKIP_GO_E2E_TESTS=${SKIP_GO_E2E_TESTS:="false"}
2828
E2E_GO_TEST_TIMEOUT=${E2E_GO_TEST_TIMEOUT:="20m"}
2929
RUN_FEATUREFLAG_TESTS=${RUN_FEATUREFLAG_TESTS:="false"}
3030
RESULTS_FROM=${RESULTS_FROM:-termination-message}
31-
ENABLE_STEP_ACTIONS=${ENABLE_STEP_ACTIONS:="false"}
31+
ENABLE_STEP_ACTIONS=${ENABLE_STEP_ACTIONS:="true"}
3232
ENABLE_CEL_IN_WHENEXPRESSION=${ENABLE_CEL_IN_WHENEXPRESSION:="false"}
3333
ENABLE_PARAM_ENUM=${ENABLE_PARAM_ENUM:="false"}
3434
ENABLE_ARTIFACTS=${ENABLE_ARTIFACTS:="false"}

0 commit comments

Comments
 (0)