diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-12-18 11:32:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-18 11:32:00 +0000 |
commit | 8e28f7b7d9f32e3c472a717a8a8c7874e5724f8b (patch) | |
tree | 65d23a6d7995cd7ddabd95defeb825b49f3234be /kubernetes/sdnc/templates/pvc.yaml | |
parent | 1dd281fc7e5d96d585561dd9bdbb90173a698a6a (diff) | |
parent | 25e01d5ab10a68ec4689e4860edcf3c9640d1586 (diff) |
Merge "[SDNC] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/sdnc/templates/pvc.yaml')
-rw-r--r-- | kubernetes/sdnc/templates/pvc.yaml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/kubernetes/sdnc/templates/pvc.yaml b/kubernetes/sdnc/templates/pvc.yaml index aa9515b6b5..21c2dbc8cc 100644 --- a/kubernetes/sdnc/templates/pvc.yaml +++ b/kubernetes/sdnc/templates/pvc.yaml @@ -2,31 +2,27 @@ kind: PersistentVolumeClaim apiVersion: v1 metadata: - name: {{ include "common.fullname" .}}-pvc-certs + name: {{ include "common.fullname" .}}-certs namespace: {{ include "common.namespace" . }} labels: - app: {{ include "common.name" . }}-pvc-certs + app: {{ include "common.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + name: {{ include "common.fullname" . }}-certs {{- if .Values.certpersistence.annotations }} annotations: {{ toYaml .Values.certpersistence.annotations | indent 4 }} {{- end }} spec: - selector: - matchLabels: - app: {{ include "common.name" . }}-pv-certs accessModes: - {{ .Values.certpersistence.accessMode }} resources: requests: storage: {{ .Values.certpersistence.size }} -{{- if .Values.certpersistence.storageClass }} -{{- if (eq "-" .Values.certpersistence.storageClass) }} - storageClassName: "" +{{- if eq "True" (include "common.needPV" .) }} + storageClassName: "{{ include "common.fullname" . }}-certs" {{- else }} - storageClassName: "{{ .Values.certpersistence.storageClass }}" -{{- end }} -{{- end }} -{{- end -}}
\ No newline at end of file + storageClassName: {{ include "common.storageClass" . }} + {{- end }} +{{- end -}} |