2025-03-06 10:57:45 +02:00
|
|
|
{{- range $k, $v := $.Values.ingress.policies }}
|
|
|
|
|
---
|
|
|
|
|
apiVersion: netbird.io/v1
|
|
|
|
|
kind: NBPolicy
|
|
|
|
|
metadata:
|
|
|
|
|
finalizers:
|
|
|
|
|
- netbird.io/cleanup
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/component: operator
|
2026-05-06 12:26:32 +02:00
|
|
|
{{- include "netbird-operator.labels" $ | nindent 4 }}
|
2025-11-25 20:36:17 +02:00
|
|
|
annotations:
|
|
|
|
|
helm.sh/resource-policy: keep
|
2025-03-06 10:57:45 +02:00
|
|
|
name: {{ $k }}
|
|
|
|
|
spec:
|
|
|
|
|
name: {{ $v.name }}
|
|
|
|
|
sourceGroups:
|
|
|
|
|
{{ toYaml $v.sourceGroups | nindent 4}}
|
|
|
|
|
{{- if $v.description }}
|
|
|
|
|
description: {{ $v.description }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if $v.protocols }}
|
2026-03-03 08:58:50 +01:00
|
|
|
protocols:
|
|
|
|
|
{{ toYaml $v.protocols | nindent 4}}
|
2025-03-06 10:57:45 +02:00
|
|
|
{{- end }}
|
|
|
|
|
{{- if $v.ports }}
|
2026-03-03 08:58:50 +01:00
|
|
|
ports:
|
|
|
|
|
{{ toYaml $v.ports | nindent 4}}
|
2025-03-06 10:57:45 +02:00
|
|
|
{{- end }}
|
|
|
|
|
{{- if hasKey $v "bidirectional" }}
|
|
|
|
|
bidirectional: {{ $v.bidirectional }}
|
|
|
|
|
{{- end }}
|
2026-05-06 12:26:32 +02:00
|
|
|
{{- end }}
|