Skip to content

Commit dfcd33b

Browse files
committed
chore(addons): modify postgres netowrkpolicy
1 parent cb49f7f commit dfcd33b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

addons/postgresql/15/chart/postgresql/templates/primary/networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.networkPolicy.enabled (or .Values.networkPolicy.metrics.enabled .Values.networkPolicy.ingressRules.primaryAccessOnlyFrom.enabled) }}
1+
{{- if and .Values.networkPolicy.enabled (or .Values.networkPolicy.allowCurrentNamespace .Values.networkPolicy.allowNamespaces.Values.networkPolicy.metrics.enabled .Values.networkPolicy.ingressRules.primaryAccessOnlyFrom.enabled) }}
22
apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }}
33
kind: NetworkPolicy
44
metadata:

addons/postgresql/15/chart/postgresql/templates/read/networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.networkPolicy.enabled (eq .Values.architecture "replication") .Values.networkPolicy.ingressRules.readReplicasAccessOnlyFrom.enabled }}
1+
{{- if and .Values.networkPolicy.enabled (eq .Values.architecture "replication") (or .Values.networkPolicy.allowCurrentNamespace .Values.networkPolicy.allowNamespaces .Values.networkPolicy.ingressRules.readReplicasAccessOnlyFrom.enabled) }}
22
apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }}
33
kind: NetworkPolicy
44
metadata:

0 commit comments

Comments
 (0)