summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl
blob: c69fb7c81c6cbd0495d2b8f96895024f323e9c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{- define "sdc-wfd-be.volumes" }}
    {{ if .Values.config.cassandraSSLEnabled }}
    - name: {{ include "common.fullname" . }}-cassandra-client-truststore
      hostPath:
        path: /etc/cassandra-client-truststore/truststore
        type: File
    {{- end }}
    {{ if .Values.config.serverSSLEnabled }}
    - name: {{ include "common.fullname" . }}-server-https-keystore
      hostPath:
        path: /config/server-https-keystore/keystore
        type: File
    {{- end }}
{{- end }}

{{- define "sdc-wfd-be.volumeMounts" }}
    {{ if .Values.config.cassandraSSLEnabled }}
    - name: {{ include "common.fullname" . }}-cassandra-client-truststore
      mountPath: /etc/cassandra-client-truststore/truststore
      subPath: truststore
      readOnly: true
    {{- end }}
    {{ if .Values.config.serverSSLEnabled }}
    - name: {{ include "common.fullname" . }}-server-https-keystore
      mountPath: /etc/server-https-keystore/keystore
      subPath: keystore
      readOnly: true
    {{- end }}
{{- end }}