Allow modify the spec of a PipelineRun when it is in the PipelineRunPending
state
#8150
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Feature request
Allow modify the spec of a PipelineRun when it is in the
PipelineRunPending
state.(Feature flag control can be applied)
In this Issue #8148, I propose that once a
TaskRun
orPipelineRun
is created, many fields in the spec should not be allowed to be modified.The purpose is to avoid impacting tasks that are already in execution. In the vast majority of scenarios, the fields of the spec should not be modified.
However, there are some exceptions.
For instance, if the PipelineRun has not started executing any tasks and is still in the
PipelineRunPending
state, modifying the fields of the spec at this time will not result in unstable execution outcomes.Use case
The existing webhook mechanism cannot complete the modifications.
I customized a controller to specifically watch for PipelineRuns with
pipelineascode.tekton.dev/started-by: "other-components"
in their labels and are in a Pending state.In my controller, I can modify the PipelineRun’s spec as needed. I can even request time-consuming third-party services to complete the modifications without worrying about webhook timeout issues.
I can predefine multiple controllers to modify the PipelineRun’s spec in sequence orderly. This is something that webhooks cannot achieve.
The text was updated successfully, but these errors were encountered: