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
cat <<'EOF' | kubectl apply -f -apiVersion: tekton.dev/v1beta1kind: Pipelinemetadata:
name: build-appnamespace: defaultspec:
workspaces:
- name: sourceoptional: trueparams:
- name: steptype: stringtasks:
- name: step-1workspaces:
- name: sourceworkspace: sourceparams:
- name: stepvalue: $(params.step)taskSpec:
results:
- name: outputValuedescription: the sum of the first and second operandworkspaces:
- name: sourceoptional: trueparams:
- name: steptype: stringsteps:
- name: echoimage: ubuntuimagePullPolicy: IfNotPresentworkingDir: $(workspaces.source.path)script: | $(params.step) echo -n "`date`: $(context.taskRun.name)" | tee $(results.outputValue.path)
---
apiVersion: tekton.dev/v1kind: PipelineRunmetadata:
name: build-appsspec:
workspaces:
- name: sourcevolumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnceresources:
requests:
storage: 1GipipelineSpec:
workspaces:
- name: sourcedescription: Workspace for shared code sourceoptional: true # <- This configuration will trigger a panic.tasks:
- name: build-app-1taskRef:
apiVersion: tekton.dev/v1beta1kind: Pipelinename: build-appparams:
- name: stepvalue: | #!/usr/bin/env bash ls -artlworkspaces:
- name: sourceworkspace: sourceEOF
Additional Info
Kubernetes version:
Output of kubectl version:
Client Version: v1.32.1
Kustomize Version: v5.5.0
Server Version: v1.28.8
WARNING: version difference between client (1.32) and server (1.28) exceeds the supported minor version skew of +/-1
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}'
Client version: 0.39.1
Pipeline version: v0.68.0
The text was updated successfully, but these errors were encountered:
fixtektoncd#8561
When validating the optional workspace of the pipeline, encountering a CustomRun
should not cause a panic, as this configuration will be validated again during
the creation of the CustomRun.
fixtektoncd#8561
When validating the optional workspace of the pipeline, encountering a CustomRun
should not cause a panic, as this configuration will be validated again during
the creation of the CustomRun.
Expected Behavior
PipelineRun can execute normally, and the controller does not panic.
Actual Behavior
The controller has panicked.
Steps to Reproduce the Problem
# Ref: https://github.com/tektoncd/experimental/tree/main/pipelines-in-pipelines kubectl apply --filename https://storage.googleapis.com/tekton-releases-nightly/pipelines-in-pipelines/latest/release.yaml
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: