1 {{- if .Values.ipPools }}
2 {{- range $name, $pool := .Values.ipPools }}
4 apiVersion: ipam.metal3.io/v1alpha1
7 name: {{ $.Values.clusterName }}-{{ $name }}
9 clusterName: {{ $.Values.clusterName }}
10 namePrefix: {{ $.Values.clusterName }}
12 {{- if (and $pool.start $pool.end) }}
13 - start: {{ $pool.start }}
16 prefix: {{ $pool.prefix }}
17 {{- if $pool.gateway }}
18 gateway: {{ $pool.gateway }}
20 {{- if $pool.preAllocations }}
22 {{ toYaml $pool.preAllocations | indent 4 }}