-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug scripts are not mounted to steps with no scripts #4613
Comments
/cc @waveywaves |
Hi! I am interested in this issue and want to take this one. If I need any help I will mention it here. |
/assign yuzp1996 |
I have reproduced the same error in my local environment and I will check the code and find out how this happened |
Fix bug for issue tektoncd#4613 When script is empty then the logic which mount the debug script will skip for container and the signal of placeScripts is the default value false. Then no debug script volume will be mount. But now will check breakpoint first and add volumeMount for container if breakpoint is not null. And if breakpoint is not null then will set the signal placeScripts to be true Signed-off-by: yuzhipeng <[email protected]>
Fix bug for issue tektoncd#4613 When script is empty then the logic which mount the debug script will skip for container and the signal of placeScripts is the default value false. Then no debug script volume will be mount. But now will check breakpoint first and add volumeMount for container if breakpoint is not null. And if breakpoint is not null then will set the signal placeScripts to be true Signed-off-by: yuzhipeng <[email protected]>
Fix bug for issue tektoncd#4613 When script is empty then the logic which mount the debug script will skip for container and the signal of placeScripts is the default value false. Then no debug script volume will be mount. But now will check breakpoint first and add volumeMount for container if breakpoint is not null. And if breakpoint is not null then will set the signal placeScripts to be true Signed-off-by: yuzhipeng <[email protected]>
When the step script is empty then the logic which mounts the debug script will skip for the container and the signal of placeScripts will be the default value false which causes no debug script volume will be mounted. Now it will check the breakpoint first, if the breakpoint is not null then will add volume Mount for container no matter weather the script is empty or not. And if the breakpoint is not null then will set the signal placeScripts to be true while it used to be true only when the script is not empty. related issue: tektoncd#4613 Signed-off-by: yuzhipeng <[email protected]>
When the step script is empty then the logic which mounts the debug script will skip for the container and the signal of placeScripts will be the default value false which causes no debug script volume will be mounted. Now it will check the breakpoint first, if the breakpoint is not null then will add volume Mount for container no matter weather the script is empty or not. And if the breakpoint is not null then will set the signal placeScripts to be true while it used to be true only when the script is not empty. related issue: tektoncd#4613 Signed-off-by: yuzhipeng <[email protected]>
When the step script is empty then the logic which mounts the debug script will skip for the container and the signal of placeScripts will be the default value false which causes no debug script volume will be mounted. Now it will check the breakpoint first, if the breakpoint is not null then will add volume Mount for container no matter weather the script is empty or not. And if the breakpoint is not null then will set the signal placeScripts to be true while it used to be true only when the script is not empty. related issue: #4613 Signed-off-by: yuzhipeng <[email protected]>
/close closed in #4776 |
@lbernick: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Expected Behavior
Adding breakpoint to a TaskRun running any task will cause debug scripts volume to be mounted on each step
Actual Behavior
If a step in Task doesn't define script but specify command and args the debug scripts volume is not mounted
Steps to Reproduce the Problem
kubectl exec -it kn-pod -- /bin/sh
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: