2022-11-06 18:02:30 +00:00
|
|
|
{{- define "metallb.pool" -}}
|
2022-09-11 21:47:55 +00:00
|
|
|
{{- range .Values.ipAddressPools }}
|
|
|
|
---
|
|
|
|
apiVersion: metallb.io/v1beta1
|
|
|
|
kind: IPAddressPool
|
|
|
|
metadata:
|
2022-11-06 21:24:57 +00:00
|
|
|
name: {{ .name }}
|
2023-05-30 20:46:18 +00:00
|
|
|
namespace: {{ $.Values.operatorNamespace }}
|
2022-09-11 21:47:55 +00:00
|
|
|
spec:
|
|
|
|
addresses:
|
2022-09-13 11:58:45 +00:00
|
|
|
{{- range .addresses }}
|
2022-09-11 21:47:55 +00:00
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
2022-09-13 11:58:45 +00:00
|
|
|
autoAssign: {{ .autoAssign | default true }}
|
|
|
|
avoidBuggyIPs: {{ .avoidBuggyIPs | default false }}
|
2022-09-11 21:47:55 +00:00
|
|
|
{{- end }}
|
2022-11-06 18:02:30 +00:00
|
|
|
{{- end -}}
|