Skip to content

Commit

Permalink
Merge pull request #654 from SaschaSchwarze0/sascha-kaniko-kill-capab…
Browse files Browse the repository at this point in the history
…ility

Add KILL capability for Kaniko executor to allow it to kill non-root processes
  • Loading branch information
openshift-merge-robot committed Mar 10, 2021
2 parents d0293ee + cceafe8 commit f5ddd1e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/buildstrategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down Expand Up @@ -257,6 +258,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down
1 change: 1 addition & 0 deletions pkg/reconciler/buildrun/resources/runtime_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func runtimeBuildAndPushStep(b *buildv1alpha1.Build, kanikoImage string) *v1beta
v1.Capability("SETGID"),
v1.Capability("SETUID"),
v1.Capability("SETFCAP"),
v1.Capability("KILL"),
},
},
},
Expand Down
1 change: 1 addition & 0 deletions samples/buildstrategy/kaniko/buildstrategy_kaniko_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
volumeMounts:
- mountPath: /gen-source
name: gen-source
Expand Down
4 changes: 4 additions & 0 deletions test/clusterbuildstrategy_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down Expand Up @@ -184,6 +185,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down Expand Up @@ -231,6 +233,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down Expand Up @@ -297,6 +300,7 @@ spec:
- SETGID
- SETUID
- SETFCAP
- KILL
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
Expand Down

0 comments on commit f5ddd1e

Please sign in to comment.