tektoncd / pipeline

A cloud-native Pipeline resource.

Home Page:https://tekton.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When debug is not turned on correctly, redundant volumes appear

cugykw opened this issue · comments

Actual Behavior

I turned on debug mode on our platform, but did not fill in the specific fields,
resulting in debug.breakpoints.onFailure being empty. At this time, the debug
mode is not actually turned on correctly. I noticed some issues.

image

  1. When debug is not turned on correctly, volumes related to debug mode appear.
  2. Tips can be added to prevent incorrect setting of debug mode.

Steps to Reproduce the Problem

  1. The following is the simplest example.
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
  name: debug-example
spec:
  debug:
    breakpoints:
      onFailure: ""
  taskSpec:
    steps:
    - image: centos7:release
      imagePullPolicy: Always
      name: start-debug
      script: |
        echo "hello"

Additional Info

tekton: 0.53.0

/assign