-
Notifications
You must be signed in to change notification settings - Fork 113
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
Run buildah steps without privileged containers #1370
Run buildah steps without privileged containers #1370
Conversation
/assign @adambkaplan @coreydaley |
@apoorvajagtap please set the release note in your PR description. |
samples/buildstrategy/buildah/buildstrategy_buildah_shipwright_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
@adambkaplan @coreydaley the buildah_shipwright_managed_push buildstrategy needs an additional capability (along with the one provided with pipelines-scc by default). So, how one should tackle with the SCC alignment with such buildrun pods? |
samples/buildstrategy/buildah/buildstrategy_buildah_shipwright_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
0c6d2f4
to
e702979
Compare
samples/buildstrategy/buildah/buildstrategy_buildah_shipwright_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
samples/buildstrategy/buildah/buildstrategy_buildah_strategy_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
samples/buildstrategy/buildah/buildstrategy_buildah_strategy_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
samples/buildstrategy/buildah/buildstrategy_buildah_shipwright_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
samples/buildstrategy/buildah/buildstrategy_buildah_strategy_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
e702979
to
3667eea
Compare
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 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 |
@apoorvajagtap I think you just need to add
Like you did in the other yamls |
3667eea
to
68853d9
Compare
samples/buildstrategy/buildah/buildstrategy_buildah_shipwright_managed_push_cr.yaml
Outdated
Show resolved
Hide resolved
68853d9
to
07a9eee
Compare
07a9eee
to
ee374aa
Compare
ee374aa
to
07ffbbf
Compare
@apoorvajagtap I suggest to remove the change to MinimalBuildahBuildStrategy and leave it like it was. The idea of this build strategy is to be simple. In particular the unit test expects it to have no parameters. |
aaa9d86
to
f636a0d
Compare
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.
/lgtm
@SaschaSchwarze0 I just want to highlight that the buildstrategy_buildah_shipwright_managed_push will still need the privileged permissions for the container, as it requires
|
f636a0d
to
45e7f5d
Compare
45e7f5d
to
aa094ac
Compare
aa094ac
to
a1092d1
Compare
/lgtm |
Changes
The current Shipwright strategy examples use privileged containers to run buildah.
With the current PR these have been updated to use more limited permissions/capabilities and align with Tekton task for OpenShift pipelines.
Submitter Checklist
Release Notes