github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/ingress-nginx/templates/controller-wehbooks-networkpolicy.yaml (about)

     1  {{- if .Values.controller.admissionWebhooks.enabled }}
     2  {{- if .Values.controller.admissionWebhooks.networkPolicyEnabled }}
     3  
     4  apiVersion: networking.k8s.io/v1
     5  kind: NetworkPolicy
     6  metadata:
     7    name: {{ include "ingress-nginx.fullname" . }}-webhooks-allow
     8    namespace: {{ .Release.Namespace }}
     9  spec:
    10    ingress:
    11    - {}
    12    podSelector:
    13      matchLabels:
    14        app.kubernetes.io/name: {{ include "ingress-nginx.name" . }}
    15    policyTypes:
    16      - Ingress
    17  
    18  {{- end }}
    19  {{- end }}