-
Story
-
Resolution: Unresolved
-
Major
-
Pipelines 1.18.0
-
8
-
False
-
None
-
False
-
KONFLUX-134 - Cancel PipelineRuns on PR update
-
-
-
Description: Building on the existing pipelinesascode.tekton.dev/cancel-in-progress: "true" annotation functionality, this feature introduces a cluster-wide configuration option for cancel-in-progress. Administrators can now configure the cancel-in-progress behavior globally through the Pipelines-as-Code ConfigMap.
Proposed Functionality:
- Global Configuration: Add a field in the Pipelines-as-Code ConfigMap to enable cancel-in-progress globally across all PipelineRuns by default.
- Annotation Override: Allow individual PipelineRuns to override the global setting by explicitly setting the pipelinesascode.tekton.dev/cancel-in-progress annotation to "false" or "true".
- Backward Compatibility: Ensure that existing behavior is preserved for clusters that do not enable this global configuration.
Benefits:
- Provides administrators with centralized control over cancel-in-progress settings.
- Reduces the need for individual developers to manually add the annotation.
- Ensures consistent resource management policies across the cluster.
Acceptance Criteria:
- A new field in the Pipelines-as-Code ConfigMap allows enabling global cancel-in-progress by default.
- Users can disable the global setting on specific PipelineRuns using annotations.
- Comprehensive testing to validate both global and local behaviors.
- Backward compatibility is maintained for clusters without global configuration.
Dependencies:
- Pipelines-as-Code ConfigMap.
- Existing cancel-in-progress annotation functionality.