Skip to content

Commit 28c165c

Browse files
committed
Fix securitycontext for cronjob
1 parent 4f6d407 commit 28c165c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

charts/cluster-overprovisioner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cluster-overprovisioner
33
description: Helm chart, that enables scheduled scaling of a target resource, intended to be add overprovisioning to an autoscaling k8s cluster.
44
type: application
5-
version: 0.4.7
5+
version: 0.4.8
66
appVersion: "1.16.0"
77
keywords:
88
- cluster-autoscaler

charts/cluster-overprovisioner/templates/cpa-cronjob.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ spec:
2222
labels: {{ $labels | nindent 12 }}
2323
spec:
2424
serviceAccountName: {{ $serviceAccountName }}
25+
securityContext:
26+
runAsUser: 1001
27+
runAsGroup: 1001
28+
fsGroup: 1001
2529
containers:
2630
- image: "{{ $repository }}:{{ $tag }}"
2731
imagePullPolicy: "{{ $pullPolicy }}"
2832
name: {{ $schedule.name }}
2933
command: ["/app/configmap.sh"]
30-
securityContext:
31-
runAsUser: 1001
32-
runAsGroup: 1001
33-
fsGroup: 1001
3434
volumeMounts:
3535
- name: script
3636
mountPath: /app/

0 commit comments

Comments
 (0)