Skip to content

Commit d48727b

Browse files
committed
chore(helm)!: Separate configs for the NodeDriver DaemonSet
1 parent 27a2c8b commit d48727b

2 files changed

Lines changed: 68 additions & 78 deletions

File tree

deploy/helm/listener-operator/templates/csi-node-driver-daemonset.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
{{- include "operator.selectorLabels" $ | nindent 6 }}
1414
template:
1515
metadata:
16-
{{- with $.Values.podAnnotations }}
16+
{{- with .podAnnotations }}
1717
annotations:
1818
{{- toYaml . | nindent 8 }}
1919
{{- end }}
@@ -27,15 +27,15 @@ spec:
2727
{{- end }}
2828
serviceAccountName: {{ include "operator.fullname" $ }}-serviceaccount
2929
securityContext:
30-
{{- toYaml $.Values.podSecurityContext | nindent 8 }}
30+
{{- toYaml .podSecurityContext | nindent 8 }}
3131
containers:
3232
- name: csi-node-service
3333
securityContext:
34-
{{- toYaml $.Values.securityContext | nindent 12 }}
34+
{{- toYaml .nodeService.securityContext | nindent 12 }}
3535
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
3636
imagePullPolicy: {{ $.Values.image.pullPolicy }}
3737
resources:
38-
{{ $.Values.node.driver.resources | toYaml | nindent 12 }}
38+
{{ .nodeService.resources | toYaml | nindent 12 }}
3939
args:
4040
- run
4141
- node
@@ -86,10 +86,10 @@ spec:
8686
- name: mountpoint
8787
mountPath: {{ $.Values.kubeletDir }}/pods
8888
- name: node-driver-registrar
89-
image: "{{ .image.repository }}:{{ .image.tag }}"
90-
imagePullPolicy: {{ .image.pullPolicy }}
89+
image: "{{ .nodeRegistrar.image.repository }}:{{ .nodeRegistrar.image.tag }}"
90+
imagePullPolicy: {{ .nodeRegistrar.image.pullPolicy }}
9191
resources:
92-
{{ .resources | toYaml | nindent 12 }}
92+
{{ .nodeRegistrar.resources | toYaml | nindent 12 }}
9393
args:
9494
- --csi-address=/csi/csi.sock
9595
- --kubelet-registration-path={{ $.Values.kubeletDir }}/plugins/listeners.stackable.tech/csi.sock
@@ -110,15 +110,15 @@ spec:
110110
- name: mountpoint
111111
hostPath:
112112
path: {{ $.Values.kubeletDir }}/pods/
113-
{{- with $.Values.nodeSelector }}
113+
{{- with .nodeSelector }}
114114
nodeSelector:
115115
{{- toYaml . | nindent 8 }}
116116
{{- end }}
117-
{{- with $.Values.affinity }}
117+
{{- with .affinity }}
118118
affinity:
119119
{{- toYaml . | nindent 8 }}
120120
{{- end }}
121-
{{- with $.Values.tolerations }}
121+
{{- with .tolerations }}
122122
tolerations:
123123
{{- toYaml . | nindent 8 }}
124124
{{- end }}

deploy/helm/listener-operator/values.yaml

Lines changed: 58 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,66 @@ csiProvisioner:
4343
# runAsUser: 1000
4444

4545
externalProvisioner:
46-
image:
47-
repository: oci.stackable.tech/sdp/sig-storage/csi-provisioner
48-
tag: v5.2.0
49-
pullPolicy: IfNotPresent
50-
resources:
51-
requests:
52-
cpu: 100m
53-
memory: 128Mi
54-
limits:
55-
cpu: 100m
56-
memory: 128Mi
46+
image:
47+
repository: oci.stackable.tech/sdp/sig-storage/csi-provisioner
48+
tag: v5.2.0
49+
pullPolicy: IfNotPresent
50+
resources:
51+
requests:
52+
cpu: 100m
53+
memory: 128Mi
54+
limits:
55+
cpu: 100m
56+
memory: 128Mi
5757

5858
csiNodeDriver:
59-
image:
60-
repository: oci.stackable.tech/sdp/sig-storage/csi-node-driver-registrar
61-
tag: v2.13.0
62-
pullPolicy: IfNotPresent
63-
resources:
64-
requests:
65-
cpu: 100m
66-
memory: 128Mi
67-
limits:
68-
cpu: 100m
69-
memory: 128Mi
59+
podAnnotations: {}
60+
61+
podSecurityContext: {}
62+
# fsGroup: 2000
63+
64+
nodeSelector: {}
65+
66+
tolerations: []
67+
68+
affinity: {}
69+
70+
nodeService:
71+
resources:
72+
# Resource requests and limits for the controller pod
73+
limits:
74+
cpu: 100m
75+
memory: 128Mi
76+
requests:
77+
cpu: 100m
78+
memory: 128Mi
79+
80+
securityContext:
81+
# listener-operator requires root permissions
82+
runAsUser: 0
83+
seLinuxOptions:
84+
# Run as "Super Privileged Container" to be allowed to write into
85+
# the Listener volumes
86+
type: spc_t
87+
# capabilities:
88+
# drop:
89+
# - ALL
90+
# readOnlyRootFilesystem: true
91+
# runAsNonRoot: true
92+
# runAsUser: 1000
93+
94+
nodeRegistrar:
95+
image:
96+
repository: oci.stackable.tech/sdp/sig-storage/csi-node-driver-registrar
97+
tag: v2.13.0
98+
pullPolicy: IfNotPresent
99+
resources:
100+
requests:
101+
cpu: 100m
102+
memory: 128Mi
103+
limits:
104+
cpu: 100m
105+
memory: 128Mi
70106

71107
nameOverride: ""
72108
fullnameOverride: ""
@@ -80,56 +116,10 @@ serviceAccount:
80116
# If not set and create is true, a name is generated using the fullname template
81117
name: ""
82118

83-
podAnnotations: {}
84-
85119
# Provide additional labels which get attached to all deployed resources
86120
labels:
87121
stackable.tech/vendor: Stackable
88122

89-
podSecurityContext: {}
90-
# fsGroup: 2000
91-
92-
securityContext:
93-
# listener-operator requires root permissions
94-
runAsUser: 0
95-
seLinuxOptions:
96-
# Run as "Super Privileged Container" to be allowed to write into
97-
# the Listener volumes
98-
type: spc_t
99-
# capabilities:
100-
# drop:
101-
# - ALL
102-
# readOnlyRootFilesystem: true
103-
# runAsNonRoot: true
104-
# runAsUser: 1000
105-
106-
controller:
107-
resources:
108-
# Resource requests and limits for the controller pod
109-
limits:
110-
cpu: 100m
111-
memory: 128Mi
112-
requests:
113-
cpu: 100m
114-
memory: 128Mi
115-
116-
node:
117-
driver:
118-
resources:
119-
# Resource requests and limits for the per node driver container
120-
limits:
121-
cpu: 100m
122-
memory: 128Mi
123-
requests:
124-
cpu: 100m
125-
memory: 128Mi
126-
127-
nodeSelector: {}
128-
129-
tolerations: []
130-
131-
affinity: {}
132-
133123
# When running on a non-default Kubernetes cluster domain, the cluster domain can be configured here.
134124
# See the https://docs.stackable.tech/home/stable/guides/kubernetes-cluster-domain guide for details.
135125
# kubernetesClusterDomain: my-cluster.local

0 commit comments

Comments
 (0)