Skip to content

Commit 27a2c8b

Browse files
committed
chore(helm)!: Separate configs for the Provisioner Deployment
1 parent 52f7ec0 commit 27a2c8b

2 files changed

Lines changed: 47 additions & 10 deletions

File tree

deploy/helm/listener-operator/templates/csi-provisioner-deployment.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
metadata:
1616
annotations:
1717
internal.stackable.tech/image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
18-
{{- with $.Values.podAnnotations }}
18+
{{- with .podAnnotations }}
1919
{{- toYaml . | nindent 8 }}
2020
{{- end }}
2121
labels:
@@ -28,15 +28,15 @@ spec:
2828
{{- end }}
2929
serviceAccountName: {{ include "operator.fullname" $ }}-serviceaccount
3030
securityContext:
31-
{{- toYaml $.Values.podSecurityContext | nindent 8 }}
31+
{{- toYaml .podSecurityContext | nindent 8 }}
3232
containers:
3333
- name: csi-controller-service
3434
securityContext:
35-
{{- toYaml $.Values.securityContext | nindent 12 }}
35+
{{- toYaml .controllerService.securityContext | nindent 12 }}
3636
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
3737
imagePullPolicy: {{ $.Values.image.pullPolicy }}
3838
resources:
39-
{{- $.Values.controller.resources | toYaml | nindent 12 }}
39+
{{- .controllerService.resources | toYaml | nindent 12 }}
4040
args:
4141
- run
4242
- controller
@@ -85,10 +85,10 @@ spec:
8585
- name: csi
8686
mountPath: /csi
8787
- name: external-provisioner
88-
image: "{{ .image.repository }}:{{ .image.tag }}"
89-
imagePullPolicy: {{ .image.pullPolicy }}
88+
image: "{{ .externalProvisioner.image.repository }}:{{ .externalProvisioner.image.tag }}"
89+
imagePullPolicy: {{ .externalProvisioner.image.pullPolicy }}
9090
resources:
91-
{{ .resources | toYaml | nindent 12 }}
91+
{{ .externalProvisioner.resources | toYaml | nindent 12 }}
9292
args:
9393
- --csi-address=/csi/csi.sock
9494
- --feature-gates=Topology=true
@@ -99,15 +99,15 @@ spec:
9999
volumes:
100100
- name: csi
101101
emptyDir: {}
102-
{{- with $.Values.nodeSelector }}
102+
{{- with .nodeSelector }}
103103
nodeSelector:
104104
{{- toYaml . | nindent 8 }}
105105
{{- end }}
106-
{{- with $.Values.affinity }}
106+
{{- with .affinity }}
107107
affinity:
108108
{{- toYaml . | nindent 8 }}
109109
{{- end }}
110-
{{- with $.Values.tolerations }}
110+
{{- with .tolerations }}
111111
tolerations:
112112
{{- toYaml . | nindent 8 }}
113113
{{- end }}

deploy/helm/listener-operator/values.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,42 @@ image:
77
pullSecrets: []
88

99
csiProvisioner:
10+
podAnnotations: {}
11+
12+
podSecurityContext: {}
13+
# fsGroup: 2000
14+
15+
nodeSelector: {}
16+
17+
tolerations: []
18+
19+
affinity: {}
20+
21+
controllerService:
22+
resources:
23+
# Resource requests and limits for the controller pod
24+
limits:
25+
cpu: 100m
26+
memory: 128Mi
27+
requests:
28+
cpu: 100m
29+
memory: 128Mi
30+
31+
securityContext:
32+
# listener-operator requires root permissions
33+
runAsUser: 0
34+
seLinuxOptions:
35+
# Run as "Super Privileged Container" to be allowed to write into
36+
# the Listener volumes
37+
type: spc_t
38+
# capabilities:
39+
# drop:
40+
# - ALL
41+
# readOnlyRootFilesystem: true
42+
# runAsNonRoot: true
43+
# runAsUser: 1000
44+
45+
externalProvisioner:
1046
image:
1147
repository: oci.stackable.tech/sdp/sig-storage/csi-provisioner
1248
tag: v5.2.0
@@ -18,6 +54,7 @@ csiProvisioner:
1854
limits:
1955
cpu: 100m
2056
memory: 128Mi
57+
2158
csiNodeDriver:
2259
image:
2360
repository: oci.stackable.tech/sdp/sig-storage/csi-node-driver-registrar

0 commit comments

Comments
 (0)