-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
CI: switch to unprivileged Kaniko to build pipeline images #11292
Conversation
Hi! Afaik if the container running the current CI is privileged it doesn't need to be, buildkit is running in rootless mode so 🤷♂️ |
/ok-to-test |
@MrFreezeex when I tried to desactivate it, the job failed. |
the failed job: https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/7046293555
it worked after enabling privileged again 🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the failed job: https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/7046293555
$ buildctl-daemonless.sh build \ # collapsed multi-line command could not connect to unix:///run/user/1000/buildkit/buildkitd.sock after 10 trials ========== log ========== [rootlesskit:child ] error: failed to share mount point: /: permission denied [rootlesskit:parent] error: child exited: exit status 1 sh: can't kill pid 38: No such process
it worked after enabling privileged again 🤷♂️
Indeed, found this: moby/buildkit#2441 (comment) but not sure we can easily switch. So kaniko might be a good fit indeed 👍. It seems to support the mount type cache as well so looks good, thanks! 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ant31, MrFreezeex The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks for searching the issue. missing the /lgtm 🙇♂️ |
AFAIK usually we wait for two reviewers even if submitted by an approver but this should be fine let's go with it. /lgtm |
/cherrypick release-2.25 |
@tico88612: new pull request created: #11375 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-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The CI is using privileged containers, and one of the jobs requiring it is the pipeline-image-build.
This PR replaces the container build tool with Kaniko.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: