Open jvmdc opened 2 weeks ago
Fixing it should be quite simple. The aforementioned lines should be changed to something like:
"PipelineRun %s/%s parameters is missing some parameters required by Pipeline %s/%s's parameters: %s",
pr.Namespace, pr.Name, pr.Namespace, pipelineMeta.Name, err)
I do not have the time available at the moment to read the contribution guidelines and set up tools etc., so hoping someone else has :)
@jvmdc so one "challenge" to this is, there might not be a named Pipeline
in the namespace, as one could use inline spec, or resolvers.
Isn't that also an issue in the other errors in the file then?
Isn't that also an issue in the other errors in the file then?
Well, for example, this PipelineRun
does not refer any Pipeline
as everything is inlined.
Isn't that also an issue in the other errors in the file then?
Well, for example, this
PipelineRun
does not refer anyPipeline
as everything is inlined.
Sure, I get that - But shouldn't that also be a challenge for the other errors in the file linked such as https://github.com/tektoncd/pipeline/blob/main/pkg/reconciler/pipelinerun/pipelinerun.go#L502-L503?
/assign @samagana
Expected Behavior
When not providing the required parameters, an error message occurs:
PipelineRun <namespace name>/<pipeline run name> parameters is missing some parameters required by Pipeline <namespace name>/<pipeline name>'s parameters: pipelineRun missing parameters
This would align the error message with other error messages in the same file.
Actual Behavior
When not providing the required parameters, an error message occurs:
PipelineRun<namespace name> parameters is missing some parameters required by Pipeline <pipeline run name>'s parameters: pipelineRun missing parameters
Steps to Reproduce the Problem
Additional Info
https://github.com/tektoncd/pipeline/blob/main/pkg/reconciler/pipelinerun/pipelinerun.go#L492-L493 <- Source of the nonsensical message.