summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2020-10-08 11:05:20 +0100
committeregernug <gerard.nugent@est.tech>2020-10-08 16:29:01 +0100
commitb8f88076f447f063a8369df6cd4a8120d0bd9dda (patch)
tree880a1099a31b101a892831319e12748ef8852c4d /kubernetes
parent925a3b064afb2171d0d3570f17fa0d945565cddc (diff)
[SDNC] Make cmpv2Enabled control the creating of volumes and mounts
Issue-ID: SDNC-1136 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: Id8c02dc9546165c42be79b879a6207fef969b543
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/sdnc/templates/statefulset.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml
index 8eec50e9ab..488c050bfb 100644
--- a/kubernetes/sdnc/templates/statefulset.yaml
+++ b/kubernetes/sdnc/templates/statefulset.yaml
@@ -282,8 +282,10 @@ spec:
- mountPath: {{ .Values.config.odl.etcDir }}/mountpoint-state-provider.properties
name: properties
subPath: mountpoint-state-provider.properties
+ {{ if .Values.global.cmpv2Enabled }}
- mountPath: {{ .Values.global.platform.certServiceClient.envVariables.cert_path }}
name: certs
+ {{- end }}
resources:
{{ include "common.resources" . | indent 12 }}
{{- if .Values.nodeSelector }}
@@ -334,12 +336,14 @@ spec:
- name: properties
emptyDir:
medium: Memory
+ {{ if .Values.global.cmpv2Enabled }}
- name: certs
emptyDir:
medium: Memory
- name: certservice-tls-volume
secret:
secretName: {{ .Values.global.platform.certServiceClient.secret.name }}
+ {{- end }}
{{ if not .Values.persistence.enabled }}
- name: {{ include "common.fullname" . }}-data
emptyDir: {}