Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix: PG operator network policy
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Nov 9, 2023
1 parent 8e49a24 commit f1f692a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/postgresql-operator/templates/network-policy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ $.Release.Namespace }}
name: {{ $.Release.Name }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include "common.resource-labels" . | indent 4 }}
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: {{ $.Release.Namespace }}
app.kubernetes.io/instance: {{ $.Release.Name }}
ingress:
# Accept webhooks from Kube API
{{- include "common.ingress-kubeapi" (dict "port" 9443 "Values" $.Values) | nindent 4 }}
Expand Down

0 comments on commit f1f692a

Please sign in to comment.