-
Notifications
You must be signed in to change notification settings - Fork 577
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
git-clone permissions issues when workspace uses volumeClaimTemplate #1154
Comments
This issue mostly depends upon the type of volume mount. I have recently faced this issue while mounting PVC created through Azure file storage CSI where Azure file share doesn't allow you to change permission after its creation. You can specify your volume claim to help more on this. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Expected Behavior
When I create a
Pipeline
andPipelineRun
object referencing the git-clone resolver, I expect to be able to configure thePipelineRun
to use a volumeClaimTemplate to back the "git-source" workspace, so I can pass the cloned Git repository to later tasks.Actual Behavior
During execution of the git-clone task, I get a permissions error because the task is running as the
git
user and the PVC mounted to /workspace/output/ is owned byroot
.This is the full error:
Steps to Reproduce the Problem
Pipeline
:PipelineRun
:Additional Info
If you switch the above pipeline from 0.9 to 0.7, it successfully lists the files. I believe this is because 0.7 and earlier versions ran as root, whereas 0.9 runs as the non-root
git
user.The text was updated successfully, but these errors were encountered: