diff options
author | 2019-12-11 14:06:14 +0000 | |
---|---|---|
committer | 2019-12-11 14:06:14 +0000 | |
commit | d7c871ee5e465c11f36974cfb668844882d139d2 (patch) | |
tree | e83c4f3b3774f83a5e86fa392814821e6598f026 /kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml | |
parent | ef7963b2f0a8b5b4d4e0840435dcbdbf98fccb0d (diff) | |
parent | 34b8d99bb80baeb49f5b7142dbe79e43e967b8b3 (diff) |
Merge "[PNDA] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml')
-rw-r--r-- | kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml b/kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml index a98761ffc6..1106f1310b 100644 --- a/kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml +++ b/kubernetes/pnda/charts/dcae-pnda-bootstrap/templates/job.yaml @@ -79,16 +79,9 @@ spec: configMap: name: {{ include "common.fullname" . }}-secrets - name: {{ include "common.fullname" . }}-logs - persitentVolumeClaim: - claimName: {{ include "common.fullname" . }}-logs - volumeClaimTemplates: - - metadata: - name: {{ include "common.fullname" . }}-logs - labels: - name: {{ include "common.fullname" . }} - spec: - accessModes: [ {{ .Values.persistence.accessMode }} ] - storageClassName: manual - resources: - requests: - storage: {{ .Values.persistence.size }} + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }} + {{- else }} + emptyDir: {} + {{- end }} |