Files
netbird-kubernetes-operator/charts/netbird-operator/templates/nbpolicies.yaml
T

33 lines
752 B
YAML
Raw Normal View History

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
{{- 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 }}
protocols:
{{ toYaml $v.protocols | nindent 4}}
2025-03-06 10:57:45 +02:00
{{- end }}
{{- if $v.ports }}
ports:
{{ toYaml $v.ports | nindent 4}}
2025-03-06 10:57:45 +02:00
{{- end }}
{{- if hasKey $v "bidirectional" }}
bidirectional: {{ $v.bidirectional }}
{{- end }}
{{- end }}