1 {{- if .Values.networkPolicy.enabled }}
3 apiVersion: {{ template "postgresql.networkPolicy.apiVersion" . }}
5 name: "{{ template "postgresql.fullname" . }}"
7 app: {{ template "postgresql.fullname" . }}
8 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
9 release: "{{ .Release.Name }}"
10 heritage: "{{ .Release.Service }}"
14 app: "{{ template "postgresql.fullname" . }}"
16 # Allow inbound connections
19 {{- if not .Values.networkPolicy.allowExternal }}
23 {{ template "postgresql.fullname" . }}-client: "true"
25 # Allow prometheus scrapes