commit | b20067e569ff2ee59b59170089ba1b1efd322acb | [log] [tgz] |
---|---|---|
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | Thu Jan 23 11:45:43 2020 +0100 |
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | Thu Jan 23 12:00:58 2020 +0100 |
tree | 9b9a7d5b74899c3f53cc616278f3ca3528473ec4 | |
parent | 70fc0f2694d1353ea93437fc49415598f147d0ca [diff] [blame] |
[COMMON] Fix PV/PVC for postgres When creating https://gerrit.onap.org/r/c/oom/+/99478, forgot to backport storage class part of https://gerrit.onap.org/r/c/oom/+/98962. Issue-ID: OOM-2234 Issue-ID: OOM-1227 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I3c42b28ad5bea67eda004b0209c8a21783b539f1
diff --git a/kubernetes/common/postgres/templates/pv-primary.yaml b/kubernetes/common/postgres/templates/pv-primary.yaml index 096f0c9..1764868 100644 --- a/kubernetes/common/postgres/templates/pv-primary.yaml +++ b/kubernetes/common/postgres/templates/pv-primary.yaml
@@ -14,6 +14,7 @@ # # limitations under the License. */}} {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +{{- if include "common.needPV" . -}} kind: PersistentVolume apiVersion: v1 metadata: @@ -35,3 +36,4 @@ hostPath: path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}/primary {{- end -}} +{{- end -}}