Skip to content

Commit 84a7061

Browse files
authored
Merge pull request #2113 from bosch-io/bugfix/pod-deletion-job-ctx-cfg-fix
privilage escalation and nonRootUser config for pod deletetion job
2 parents a045451 + 47696a1 commit 84a7061

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

deployment/helm/ditto/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: |
1616
A digital twin is a virtual, cloud based, representation of his real world counterpart
1717
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
1818
type: application
19-
version: 3.6.10 # chart version is effectively set by release-job
19+
version: 3.6.11 # chart version is effectively set by release-job
2020
appVersion: 3.6.10
2121
keywords:
2222
- iot-chart

deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ spec:
4848
securityContext:
4949
runAsUser: {{ .Values.global.podDeletionCostPatching.user }}
5050
runAsGroup: {{ .Values.global.podDeletionCostPatching.group }}
51+
allowPrivilegeEscalation: {{ .Values.global.podDeletionCostPatching.allowPrivilegeEscalation }}
52+
runAsNonRoot: {{ .Values.global.podDeletionCostPatching.runAsNonRoot }}
5153
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
5254
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
5355
command:

deployment/helm/ditto/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ global:
197197
user: 1000
198198
# group defines the group to run the pod-deletion-cost annotation patching job as
199199
group: 1000
200+
# runAsNonRoot defines whether the pod-deletion-cost annotation patching job should run as non-root
201+
runAsNonRoot: true
202+
# allowPrivilegeEscalation defines whether the pod-deletion-cost annotation patching job should allow privilege escalation
203+
allowPrivilegeEscalation: false
200204
# enabled whether the pod-deletion-cost annotation patching should be enabled
201205
enabled: true
202206
# annotations defines k8s annotations to add to corresponding jobs

0 commit comments

Comments
 (0)