Skip to content

Commit

Permalink
Do not require enable-api-fields: alpha for entrypoint cancellation
Browse files Browse the repository at this point in the history
This commit removes the need for `enable-api-fields: alpha` to enable
the entrypoint cancellation. This feature should only behind the
`keep-pod-on-cancel: true` feature-flag.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 28, 2023
1 parent 36cd0a1 commit d55ca66
Show file tree
Hide file tree
Showing 3 changed files with 1,189 additions and 1,139 deletions.
2 changes: 1 addition & 1 deletion pkg/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (b *Builder) Build(ctx context.Context, taskRun *v1.TaskRun, taskSpec v1.Ta
defaultForbiddenEnv := config.FromContextOrDefaults(ctx).Defaults.DefaultForbiddenEnv
alphaAPIEnabled := featureFlags.EnableAPIFields == config.AlphaAPIFields
sidecarLogsResultsEnabled := config.FromContextOrDefaults(ctx).FeatureFlags.ResultExtractionMethod == config.ResultExtractionMethodSidecarLogs
enableKeepPodOnCancel := alphaAPIEnabled && featureFlags.EnableKeepPodOnCancel
enableKeepPodOnCancel := featureFlags.EnableKeepPodOnCancel
setSecurityContext := config.FromContextOrDefaults(ctx).FeatureFlags.SetSecurityContext

// Add our implicit volumes first, so they can be overridden by the user if they prefer.
Expand Down
Loading

0 comments on commit d55ca66

Please sign in to comment.