summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/postgres/templates/pv-replica.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/postgres/templates/pv-replica.yaml')
-rw-r--r--kubernetes/common/postgres/templates/pv-replica.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/common/postgres/templates/pv-replica.yaml b/kubernetes/common/postgres/templates/pv-replica.yaml
index a98abefba0..b67cac0c26 100644
--- a/kubernetes/common/postgres/templates/pv-replica.yaml
+++ b/kubernetes/common/postgres/templates/pv-replica.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 @@ spec:
hostPath:
path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}/replica
{{- end -}}
+{{- end -}}