ext-cilium:
  templates:
    - |
      {{ range .Values.ciliumNetworkPolicies }}
      ---
      apiVersion: "cilium.io/v2"
      kind: CiliumNetworkPolicy
      metadata:
        name: {{ $.Release.Name }}-{{ .name }}
      spec:
        endpointSelector:
          matchLabels:
            {{- tpl (toYaml .endpointSelectors) $ | nindent 6 }}
        {{- with .egress }}
        egress:
          {{- . | toYaml | nindent 4 }}
        {{- end }}
        {{- with .egressDeny }}
        egressDeny:
          {{- . | toYaml | nindent 4 }}
        {{- end }}
      {{ end }}