[CDS] Add toggle for disabling command-executor blueprints PVC
This PVC was used to share files between blueprintsprocessor and
command-executor. Since version 1.1.1 it is no longer required and
should be disabled by default. Added toggle for backward compatibility.
Issue-ID: CCSDK-3490
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: Id962b427a3f7ad2afe10d96454381f50732fa306
diff --git a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
index 3ce24e2..da83516 100755
--- a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
+++ b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
@@ -98,7 +98,11 @@
hostPath:
path: /etc/localtime
- name: {{ include "common.fullname" . }}-blueprints
+ {{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ include "common.release" . }}-cds-blueprints
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"