improve error message when indexing into an array is used with stable api #6102
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Expected Behavior
Indexing into array is an alpha feature. Creating a
pipelineRun
with embedded task specifications with a param value set to an element of an array returns a clear validation failure:Actual Behavior
We have an opportunity to be more specific while reporting an error. The pipelineRun status is lacking details:
The taskRun status is ambiguous:
Steps to Reproduce the Problem
stable
.Check the pipelineRun and taskRun:
Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
The error is reported while handling a pod creation issue at https://github.com/tektoncd/pipeline/blob/main/pkg/reconciler/taskrun/taskrun.go#L649.
The text was updated successfully, but these errors were encountered: