[CDS] Add toggle for disabling command-executor blueprints PVC
[oom.git] / kubernetes / cds / components / cds-command-executor / templates / deployment.yaml
index 3ce24e2..da83516 100755 (executable)
@@ -98,7 +98,11 @@ spec:
           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"