scale-catalog/premium/metallb-config/6.8.16/templates/_l2advertisement.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

23 lines
468 B
Smarty

{{- define "metallb.l2adv" -}}
{{- range .Values.L2Advertisements }}
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: {{ .name }}
namespace: {{ $.Values.operatorNamespace }}
spec:
ipAddressPools:
{{- range .addressPools }}
- {{ . }}
{{- end }}
{{- if .nodeSelectors }}
{{- range .nodeSelectors }}
nodeSelectors:
- matchLabels:
kubernetes.io/hostname: {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}