Skip to content

Commit

Permalink
Merge pull request #2113 from bosch-io/bugfix/pod-deletion-job-ctx-cf…
Browse files Browse the repository at this point in the history
…g-fix

privilage escalation and nonRootUser config for pod deletetion job
  • Loading branch information
alstanchev authored Feb 6, 2025
2 parents a045451 + 47696a1 commit 84a7061
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.6.10 # chart version is effectively set by release-job
version: 3.6.11 # chart version is effectively set by release-job
appVersion: 3.6.10
keywords:
- iot-chart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
securityContext:
runAsUser: {{ .Values.global.podDeletionCostPatching.user }}
runAsGroup: {{ .Values.global.podDeletionCostPatching.group }}
allowPrivilegeEscalation: {{ .Values.global.podDeletionCostPatching.allowPrivilegeEscalation }}
runAsNonRoot: {{ .Values.global.podDeletionCostPatching.runAsNonRoot }}
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
command:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/ditto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ global:
user: 1000
# group defines the group to run the pod-deletion-cost annotation patching job as
group: 1000
# runAsNonRoot defines whether the pod-deletion-cost annotation patching job should run as non-root
runAsNonRoot: true
# allowPrivilegeEscalation defines whether the pod-deletion-cost annotation patching job should allow privilege escalation
allowPrivilegeEscalation: false
# enabled whether the pod-deletion-cost annotation patching should be enabled
enabled: true
# annotations defines k8s annotations to add to corresponding jobs
Expand Down

0 comments on commit 84a7061

Please sign in to comment.