k8s-deployment/values/common/values.ext-cilium.yaml

23 lines
575 B
YAML

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 }}