TrueChartsCatalogClone/enterprise/metallb-config/3.0.11/templates/_ipaddresspool.tpl

18 lines
397 B
Smarty

{{- define "metallb.pool" -}}
{{- range .Values.ipAddressPools }}
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: {{ .name }}
namespace: {{ $.Values.operatorNamespace }}
spec:
addresses:
{{- range .addresses }}
- {{ . }}
{{- end }}
autoAssign: {{ .autoAssign | default true }}
avoidBuggyIPs: {{ .avoidBuggyIPs | default false }}
{{- end }}
{{- end -}}