summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2019-03-26 18:02:33 +0530
committerpriyanshua <pagarwal@amdocs.com>2019-03-26 18:02:33 +0530
commit5698c8336a4ee58e396654c1463cd7b104d0f9be (patch)
tree39b52e7439682acd6ba3f03170deed55fef5e28c /kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl
parent4060d7c76a09458264720a4c17cb480964c8fd90 (diff)
Support HTTPS and SSL Cassandra in workflow
1. Moved certificate related info to helper file. 2. Minor bug fix Change-Id: I6769515e5ea4823309ffa478ea737234e9171b68 Issue-ID: OOM-1740 Signed-off-by: priyanshua <pagarwal@amdocs.com>
Diffstat (limited to 'kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl')
-rw-r--r--kubernetes/sdc/charts/sdc-wfd-be/templates/_helper.tpl29
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