Skip to content

Commit

Permalink
feat(chart:k8up) add security context for cleanup hook
Browse files Browse the repository at this point in the history
Signed-off-by: André Frimberger <[email protected]>
  • Loading branch information
afrimberger committed May 17, 2024
1 parent 60e75b6 commit 1bf80f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8up/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- backup
- operator
- restic
version: 4.7.0
version: 4.8.0
sources:
- https://github.com/k8up-io/k8up
maintainers:
Expand Down
4 changes: 4 additions & 0 deletions charts/k8up/templates/cleanup-hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: cleanup-service-account
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: "{{ .Release.Name }}-cleanup"
image: "{{ include "cleanupImage" . }}"
Expand All @@ -99,3 +101,5 @@ spec:
kubectl -n "$ns" delete rolebinding pod-executor-namespaced --ignore-not-found=true
kubectl -n "$ns" delete role pod-executor --ignore-not-found=true
done
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}

0 comments on commit 1bf80f1

Please sign in to comment.