From e7251bc8ae041597bf9e154fa1e86c721bb11e83 Mon Sep 17 00:00:00 2001 From: Alejandro Moreno Date: Fri, 20 Dec 2019 10:04:14 +0000 Subject: [PATCH] Fix network policy --- .../postgresql-ha/templates/networkpolicy.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bitnami/postgresql-ha/templates/networkpolicy.yaml b/bitnami/postgresql-ha/templates/networkpolicy.yaml index 9303dece49..5ad58ce3b1 100644 --- a/bitnami/postgresql-ha/templates/networkpolicy.yaml +++ b/bitnami/postgresql-ha/templates/networkpolicy.yaml @@ -12,15 +12,15 @@ spec: # Allow inbound connections - ports: - port: 5432 - {{- if not .Values.networkPolicy.allowExternal }} - from: - - podSelector: - matchLabels: - {{ template "postgresql-ha.fullname" . }}-client: "true" - - podSelector: - matchLabels: {{- include "postgresql-ha.matchLabels" . | nindent 18 }} - app.kubernetes.io/component: pgpool - {{- end }} + {{- if not .Values.networkPolicy.allowExternal }} + from: + - podSelector: + matchLabels: + {{ template "postgresql-ha.fullname" . }}-client: "true" + - podSelector: + matchLabels: {{- include "postgresql-ha.matchLabels" . | nindent 14 }} + app.kubernetes.io/component: pgpool + {{- end }} # Allow prometheus scrapes - ports: - port: 9187