github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/argo-cd/templates/argocd-notifications/networkpolicy.yaml (about)

     1  {{- if and .Values.notifications.enabled .Values.global.networkPolicy.create .Values.notifications.metrics.enabled }}
     2  apiVersion: networking.k8s.io/v1
     3  kind: NetworkPolicy
     4  metadata:
     5    name: {{ template "argo-cd.notifications.fullname" . }}
     6    namespace: {{ .Release.Namespace | quote }}
     7    labels:
     8      {{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
     9  spec:
    10    ingress:
    11    - from:
    12      - namespaceSelector: {}
    13      ports:
    14      - port: metrics
    15    podSelector:
    16      matchLabels:
    17        {{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.notifications.name) | nindent 6 }}
    18    policyTypes:
    19    - Ingress
    20  {{- end }}