github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/minio/templates/networkpolicy.yaml (about)

     1  {{- if .Values.networkPolicy.enabled }}
     2  kind: NetworkPolicy
     3  apiVersion: {{ template "minio.networkPolicy.apiVersion" . }}
     4  metadata:
     5    name: {{ template "minio.fullname" . }}
     6    labels:
     7      app: {{ template "minio.name" . }}
     8      chart: {{ template "minio.chart" . }}
     9      release: {{ .Release.Name }}
    10      heritage: {{ .Release.Service }}
    11  spec:
    12    podSelector:
    13      matchLabels:
    14        app: {{ template "minio.name" . }}
    15        release: {{ .Release.Name }}
    16    ingress:
    17      - ports:
    18          - port: {{ .Values.service.port }}
    19        {{- if not .Values.networkPolicy.allowExternal }}
    20        from:
    21          - podSelector:
    22              matchLabels:
    23                {{ template "minio.name" . }}-client: "true"
    24        {{- end }}
    25  {{- end }}