Support HTTPS and SSL Cassandra in workflow
[oom.git] / kubernetes / sdc / charts / sdc-wfd-be / templates / _helper.tpl
1 {{- define "sdc-wfd-be.volumes" }}
2     {{ if .Values.config.cassandraSSLEnabled }}
3     - name: {{ include "common.fullname" . }}-cassandra-client-truststore
4       hostPath:
5         path: /etc/cassandra-client-truststore/truststore
6         type: File
7     {{- end }}
8     {{ if .Values.config.serverSSLEnabled }}
9     - name: {{ include "common.fullname" . }}-server-https-keystore
10       hostPath:
11         path: /config/server-https-keystore/keystore
12         type: File
13     {{- end }}
14 {{- end }}
15
16 {{- define "sdc-wfd-be.volumeMounts" }}
17     {{ if .Values.config.cassandraSSLEnabled }}
18     - name: {{ include "common.fullname" . }}-cassandra-client-truststore
19       mountPath: /etc/cassandra-client-truststore/truststore
20       subPath: truststore
21       readOnly: true
22     {{- end }}
23     {{ if .Values.config.serverSSLEnabled }}
24     - name: {{ include "common.fullname" . }}-server-https-keystore
25       mountPath: /etc/server-https-keystore/keystore
26       subPath: keystore
27       readOnly: true
28     {{- end }}
29 {{- end }}