Skip to content

Commit c9ce683

Browse files
authored
Merge pull request #817 from manetherenio/feature/helm-ipam-fetchconfig
✨ add fetchConfig support to IPAMProvider in chart
2 parents e25be4d + 1fcd8ba commit c9ce683

File tree

1 file changed

+10
-0
lines changed
  • hack/charts/cluster-api-operator/templates

1 file changed

+10
-0
lines changed

hack/charts/cluster-api-operator/templates/ipam.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ spec:
4545
{{- end }}
4646
{{- end }}
4747
{{- end }}
48+
{{- if and (kindIs "map" $.Values.fetchConfig) (hasKey $.Values.fetchConfig $ipamName) }}
49+
{{- range $key, $value := $.Values.fetchConfig }}
50+
{{- if eq $key $ipamName }}
51+
fetchConfig:
52+
{{- range $k, $v := $value }}
53+
{{ $k }}: {{ $v }}
54+
{{- end }}
55+
{{- end }}
56+
{{- end }}
57+
{{- end }}
4858
{{- if $.Values.configSecret.name }}
4959
configSecret:
5060
name: {{ $.Values.configSecret.name }}

0 commit comments

Comments
 (0)