[COMMON] fix primary PVC for postgres template 38/101738/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 14 Feb 2020 12:43:28 +0000 (13:43 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 14 Feb 2020 12:43:28 +0000 (13:43 +0100)
The last line of the template rewrites PVC storage class and thus the
behavior is not the expected one.

This patch removes the faulty (and unecessary) line.

Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Ia0e2f6fbd7d40bbf0de719bbf35f0f0424e1a076

kubernetes/common/postgres/templates/pvc-primary.yaml

index fa25f19..a47d3ed 100644 (file)
@@ -41,5 +41,4 @@ spec:
 {{- else }}
   storageClassName: {{ include "common.storageClass" . }}
 {{- end }}
-  storageClassName: "{{ include "common.fullname" . }}-primary"
 {{- end -}}