1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

fix: privileged

This commit is contained in:
Philip Germanov
2025-03-20 12:06:04 +02:00
parent 7b8a4ae288
commit 1698f00d2e
2 changed files with 3 additions and 14 deletions

View File

@@ -344,7 +344,7 @@ func buildahExecuteMetadata() config.StepData {
},
},
Containers: []config.Container{
{Name: "buildah", Image: "quay.io/buildah/stable:latest", EnvVars: []config.EnvVar{{Name: "BUILDAH_ISOLATION", Value: "chroot"}, {Name: "STORAGE_DRIVER", Value: "vfs"}, {Name: "STORAGE_OPTS", Value: ""}}},
{Name: "buildah", Image: "quay.io/buildah/stable:latest"},
},
Outputs: config.StepOutputs{
Resources: []config.StepResources{

View File

@@ -114,16 +114,5 @@ spec:
- name: buildah
image: quay.io/buildah/stable:latest
securityContext:
runAsUser: 0
privileged: false
capabilities:
add:
- SETUID
- SETGID
env:
- name: BUILDAH_ISOLATION
value: "chroot"
- name: STORAGE_DRIVER
value: "vfs"
- name: STORAGE_OPTS
value: ""
privileged: true
runAsUser: 1000