File tree Expand file tree Collapse file tree
plugins/fabrique/charts/pg Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # https://github.com/cloudnative-pg/cloudnative-pg/issues/5247
2+ apiVersion : networking.k8s.io/v1
3+ kind : NetworkPolicy
4+ metadata :
5+ name : {{ (or .Values.component .Chart.Name) | lower }}-allow-operator
6+ spec :
7+ podSelector :
8+ matchLabels :
9+ cnpg.io/cluster : {{ (or .Values.component .Chart.Name) | lower }} # The label value must be the cluster name
10+ ingress :
11+ - from :
12+ - namespaceSelector :
13+ matchLabels :
14+ kubernetes.io/metadata.name : {{ .Values.operatorNamespace }}
15+ podSelector :
16+ matchLabels :
17+ app.kubernetes.io/name : cloudnative-pg
18+ ports :
19+ - port : 8000
20+ - port : 5432
Original file line number Diff line number Diff line change @@ -111,3 +111,5 @@ jobs-pg:
111111 ~tpl~pgSecretName : " {{ index .Values.kontinuous.chartContext 2 }}-app"
112112 ~tpl~cnpgDbSecretName : " {{ index .Values.kontinuous.chartContext 2 }}-db"
113113 ~tpl~pgHost : " {{ index .Values.kontinuous.chartContext 2 }}-rw"
114+
115+ operatorNamespace : cnpg-system
You can’t perform that action at this time.
0 commit comments