mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Docs PR: https://github.com/netbirdio/docs/pull/457 Changes: * Split kubernetes-operator Chart to operator only chart (kubernetes-operator) and configuration chart (netbird-operator-config) * Remove delete validation webhooks for non-needed resources * Allow abandoning Groups when still linked to a resource for over a minute after deletion * Fix duplciate Network Resource retrying heavily * Fix SetupKey creation duplication * Skip deleting routing peer since deleting network automatically deletes it anyway
30 lines
710 B
YAML
30 lines
710 B
YAML
{{- range $k, $v := $.Values.policies }}
|
|
---
|
|
apiVersion: netbird.io/v1
|
|
kind: NBPolicy
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
finalizers:
|
|
- netbird.io/cleanup
|
|
labels:
|
|
app.kubernetes.io/component: operator
|
|
{{- include "netbird-operator-config.labels" $ | nindent 4 }}
|
|
name: {{ $k }}
|
|
spec:
|
|
name: {{ $v.name }}
|
|
sourceGroups:
|
|
{{ toYaml $v.sourceGroups | nindent 4}}
|
|
{{- if $v.description }}
|
|
description: {{ $v.description }}
|
|
{{- end }}
|
|
{{- if $v.protocols }}
|
|
protocols: {{ $v.protocols }}
|
|
{{- end }}
|
|
{{- if $v.ports }}
|
|
ports: {{ $v.ports }}
|
|
{{- end }}
|
|
{{- if hasKey $v "bidirectional" }}
|
|
bidirectional: {{ $v.bidirectional }}
|
|
{{- end }}
|
|
{{- end }} |