From b8f88076f447f063a8369df6cd4a8120d0bd9dda Mon Sep 17 00:00:00 2001 From: egernug Date: Thu, 8 Oct 2020 11:05:20 +0100 Subject: [SDNC] Make cmpv2Enabled control the creating of volumes and mounts Issue-ID: SDNC-1136 Signed-off-by: egernug Change-Id: Id8c02dc9546165c42be79b879a6207fef969b543 --- kubernetes/sdnc/templates/statefulset.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kubernetes') 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: {} -- cgit 1.2.3-korg