Skip to content

Commit 1fcd8ba

Browse files
committed
feat: add fetchConfig support to IPAMProvider in chart
1 parent e25be4d commit 1fcd8ba

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)