File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{{- define " certificates.initContainer" -}}
2- {{- $customCAsEnabled := .Values.global.certificates.customCAs -}}
2+ {{- $customCAsEnabled := .Values.csiNodepluginRclone.certificates.customCAs -}}
3+ {{- $customCAsForMountsEnabled := .Values.csiNodepluginRclone.certificates.customCAsForDataConnectorMounts -}}
4+
35- name: init-certificates
4- image: " {{ .Values.global .certificates.image.repository }}:{{ .Values.global .certificates.image.tag }}"
6+ image: " {{ .Values.csiNodepluginRclone .certificates.image.repository }}:{{ .Values.csiNodepluginRclone .certificates.image.tag }}"
57 securityContext:
68 {{- toYaml .Values.securityContext | nindent 4 }}
79 volumeMounts:
810 - name: etc-ssl-certs
911 mountPath: /etc/ssl/certs/
12+ {{- if or $customCAsEnabled $customCAsForMountsEnabled -}}
1013 - name: custom-ca-certs
1114 mountPath: /usr/local/share/ca-certificates
1215 readOnly: true
16+ {{- end -}}
1317{{- end -}}
Original file line number Diff line number Diff line change 11{{- define " certificatesForMounts.volumes" -}}
2- {{- $customCAsEnabled := .Values.global .certificates.customCAs -}}
3- {{- $customCAsForMountsEnabled := .Values.global .certificates.customCAsForDataConnectorMounts -}}
2+ {{- $customCAsEnabled := .Values.csiNodepluginRclone .certificates.customCAs -}}
3+ {{- $customCAsForMountsEnabled := .Values.csiNodepluginRclone .certificates.customCAsForDataConnectorMounts -}}
44- name: etc-ssl-certs
55 emptyDir:
66 medium: " Memory"
7+ {{- if or $customCAsEnabled $customCAsForMountsEnabled -}}
78- name: custom-ca-certs
89 projected:
910 defaultMode: 0444
1011 sources:
11- - secret:
12- name: {{ include " renku.CASecretName" . }}
13- items:
14- - key: tls.crt
15- path: {{ include " renku.CASecretName" . }}-internal-communication-ca.crt
1612 {{- if $customCAsEnabled }}
17- {{- range $customCA := .Values.global .certificates.customCAs }}
13+ {{- range $customCA := .Values.csiNodepluginRclone .certificates.customCAs }}
1814 - secret:
1915 name: {{ $customCA .secret }}
2016 {{- end -}}
2117 {{- end -}}
2218 {{- if $customCAsForMountsEnabled }}
23- {{- range $customCA := .Values.global .certificates.customCAsForDataConnectorMounts }}
19+ {{- range $customCA := .Values.csiNodepluginRclone .certificates.customCAsForDataConnectorMounts }}
2420 - secret:
2521 name: {{ $customCA .secret }}
2622 {{- end -}}
2723 {{- end -}}
2824{{- end -}}
25+ {{- end -}}
Original file line number Diff line number Diff line change 2020 spec :
2121 serviceAccountName : {{ include "chart.fullname" . }}-nodeplugin
2222 dnsPolicy : ClusterFirstWithHostNet
23+ initContainers :
24+ {{- include "certificates.initContainer" . | nindent 8 }}
2325 containers :
2426 - name : node-driver-registrar
2527 args :
@@ -143,6 +145,7 @@ spec:
143145 name : pods-mount-dir
144146 - mountPath : /var/lib/rclone
145147 name : cache-dir
148+ {{- include "certificates.volumeMounts.system" . | nindent 8 }}
146149 {{- with .Values.csiNodepluginRclone.nodeSelector }}
147150 nodeSelector :
148151 {{ toYaml . | nindent 8 }}
@@ -170,3 +173,4 @@ spec:
170173 name : registration-dir
171174 - name : cache-dir
172175 emptyDir : {}
176+ {{- include "certificatesForMounts.volumes" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ csiControllerRclone:
4747 port : 9090
4848 pathPrefix : # /metrics
4949 pollPeriod : # 30s
50-
5150 replicas : 1
5251 serviceAccount :
5352 annotations : {}
You can’t perform that action at this time.
0 commit comments