Skip to content

Commit 7d39b00

Browse files
authored
Merge pull request #650 from ts-mini/tsmini.fetchConfig
✨ adding fetchConfig to InfrastructureProvider template in helmchart
2 parents 41d7107 + c6b77c3 commit 7d39b00

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ spec:
5959
{{- end }}
6060
{{- end }}
6161
{{- end }}
62+
{{- if and (kindIs "map" $.Values.fetchConfig) (hasKey $.Values.fetchConfig $infrastructureName) }}
63+
{{- range $key, $value := $.Values.fetchConfig }}
64+
{{- if eq $key $infrastructureName }}
65+
fetchConfig:
66+
{{- range $k, $v := $value }}
67+
{{ $k }}: {{ $v }}
68+
{{- end }}
69+
{{- end }}
70+
{{- end }}
71+
{{- end }}
6272
{{- if $.Values.configSecret.name }}
6373
configSecret:
6474
name: {{ $.Values.configSecret.name }}

hack/charts/cluster-api-operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ controlPlane: ""
77
infrastructure: ""
88
addon: ""
99
manager.featureGates: {}
10+
fetchConfig: {}
1011
# ---
1112
# Common configuration secret options
1213
configSecret: {}

0 commit comments

Comments
 (0)