You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reconciliation error is preventing the pipeline from executing.
Steps to Reproduce the Problem
Create a pipeline with tasks that use a dynamic matrix
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: matrix-test-
spec:
params:
- name: users
value:
- john
- pete
pipelineSpec:
tasks:
- name: generate-array
taskSpec:
results:
- name: some-array
type: array
steps:
- image: bash
script: |
echo -n "[\"john\", \"pete\"]" | tee $(results.some-array.path)
- name: dynamic-matrix
matrix:
params:
- name: user
#value: $(params.users) # This works
value: $(tasks.generate-array.results.some-array[*]) # This does not work
taskSpec:
params:
- name: user
results:
- name: email
steps:
- image: bash
script: |
echo -n "$(params.user)@example.com" | tee $(results.email.path)
- name: echo-matrix # echo results
runAfter: ['dynamic-matrix']
taskSpec:
params:
- name: emails
type: array
steps:
- image: bash
script: |
echo "testing"
params:
- name: emails
value: $(tasks.dynamic-matrix.results.email[*])
EOF
See error in tekton pipeline controller
{"severity":"error","timestamp":"2024-04-29T16:56:14.456Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/pipelinerun.go:696","message":"Failed to resolve task result reference for \"matrix-test-9g
2bz\" with error invalid result reference in pipeline task \"echo-matrix\": unable to validate result referencing pipeline task \"dynamic-matrix\": task spec not found","commit":"34d8c0f"
...
Additional Info
Kubernetes version:
Output of kubectl version:
Client Version: v1.28.4
Server Version: v1.28.3
Tekton Pipeline version:
Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
v0.59.0
The text was updated successfully, but these errors were encountered:
Expected Behavior
Expect validation to pass and tasks to run.
Actual Behavior
Reconciliation error is preventing the pipeline from executing.
Steps to Reproduce the Problem
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 text was updated successfully, but these errors were encountered: