Skip to content

Commit 4b25b86

Browse files
committed
feat: extend values.yaml mapping with 'manifestPatches'
1 parent 7b95c1a commit 4b25b86

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ spec:
3535
{{- if $.Values.secretNamespace }}
3636
secretNamespace: {{ $.Values.secretNamespace }}
3737
{{- end }}
38+
{{- if $addon.manifestPatches }}
39+
manifestPatches: {{ toYaml $addon.manifestPatches | nindent 4 }}
40+
{{- end }}
3841
{{- end }} {{/* range $addon := .Values.addon */}}
3942
{{- end }} {{/* if .Values.addon */}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ spec:
3434
namespace: {{ $.Values.configSecret.namespace }}
3535
{{- end }}
3636
{{- end }}
37+
{{- if $bootstrap.manifestPatches }}
38+
manifestPatches: {{ toYaml $bootstrap.manifestPatches | nindent 4 }}
39+
{{- end }}
3740
{{- end }} {{/* range $bootstrap := .Values.bootstrap */}}
3841
{{- end }} {{/* if .Values.bootstrap */}}

hack/charts/cluster-api-operator/templates/control-plane.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ spec:
3434
namespace: {{ $.Values.configSecret.namespace }}
3535
{{- end }}
3636
{{- end }}
37+
{{- if $controlPlane.manifestPatches }}
38+
manifestPatches: {{ toYaml $controlPlane.manifestPatches | nindent 4 }}
39+
{{- end }}
3740
{{- end }} {{/* range $controlPlane := .Values.controlPlane */}}
3841
{{- end }} {{/* if .Values.controlPlane */}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ spec:
4343
namespace: {{ $.Values.configSecret.namespace }}
4444
{{- end }}
4545
{{- end }}
46+
{{- if .Values.core.manifestPatches }}
47+
manifestPatches: {{ toYaml .Values.core.manifestPatches | nindent 4 }}
48+
{{- end }}
4649
{{- end }} {{/* if .Values.core */}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ spec:
5252
{{- if $.Values.additionalDeployments }}
5353
additionalDeployments: {{ toYaml $.Values.additionalDeployments | nindent 4 }}
5454
{{- end }}
55+
{{- if $infra.manifestPatches }}
56+
manifestPatches: {{- toYaml $infra.manifestPatches | nindent 4 }}
57+
{{- end }} {{/* if $infra.manifestPatches */}}
5558
{{- end }} {{/* range $infra := .Values.infrastructure */}}
5659
{{- end }} {{/* if .Values.infrastructure */}}

0 commit comments

Comments
 (0)