diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-04-01 03:32:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-01 03:32:27 +0000 |
commit | 8cdc31f786753fb952a95e9639da9b71b27ad08a (patch) | |
tree | ea031c84e94e2a7f0de58d62ac676c55d3b6bae0 /kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl | |
parent | bc3d9a6fe6a3ea4555cf71900b7cc6417c6c2302 (diff) | |
parent | 5698c8336a4ee58e396654c1463cd7b104d0f9be (diff) |
Merge "Support HTTPS and SSL Cassandra in workflow"
Diffstat (limited to 'kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl')
-rw-r--r-- | kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl b/kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl new file mode 100644 index 0000000000..c69fb7c81c --- /dev/null +++ b/kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl @@ -0,0 +1,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 }}
\ No newline at end of file |