-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused workspaces in PipelineRun #6856
Comments
There is no such validation which restricts adding unused workspaces in isExist(): pipeline/pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go Lines 450 to 465 in 7b23f93
Unique: pipeline/pkg/apis/pipeline/v1/pipelinerun_validation.go Lines 98 to 107 in 7b23f93
It might be accidental to allow extra workspaces but I do not foresee restricting such specification. @tektoncd/core-collaborators shall we document this behavior and allow specifying any number of workspaces in |
This seems like a bug to me. I'm not sure there's a good reason to support specifying extra workspaces in the pipelinerun, and I would expect most pipelinerun authors to prefer fail-fast behavior, i.e. rejecting pipelineruns with extra workspaces since they're most likely misconfigured. |
It seems supporting extra
While I see the value of fail-fast as @lbernick suggested, I think we should keep and document this behavior as @pritidesai mentioned because some users could be depending on it for the above use case. Here is the documentation for extra Lines 269 to 272 in 21828f3
|
Fixed in #6917 |
If I create a PipelineRun containing a workspace that is unused by the Pipeline, there are no errors and it completes successfully. I can't find this behaviour documented.
I've got a fairly generic process that creates PipelineRuns, but depending on the Pipeline chosen, some of the workspaces may be unused. It is safe to rely on this behaviour?
Example:
The text was updated successfully, but these errors were encountered: