Skip to content

Commit

Permalink
Add deployment overrides to templates files
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Aplatony authored and omerap12 committed May 10, 2024
1 parent 2e244f4 commit 4610c00
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hack/charts/cluster-api-operator/templates/addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "addon" }}
{{ $.Values.deploymentOverride.addon | toYaml | nindent 2 }}
{{- end }}
3 changes: 3 additions & 0 deletions hack/charts/cluster-api-operator/templates/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "bootstrap" }}
{{ $.Values.deploymentOverride.bootstrap | toYaml | nindent 2 }}
{{- end }}
3 changes: 3 additions & 0 deletions hack/charts/cluster-api-operator/templates/control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "control-plane" }}
{{ $.Values.deploymentOverride.control-plane | toYaml | nindent 2 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "core-condition" }}
{{ $.Values.deploymentOverride.core-condition | toYaml | nindent 2 }}
{{- end }}

3 changes: 3 additions & 0 deletions hack/charts/cluster-api-operator/templates/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "core" }}
{{ $.Values.deploymentOverride.core | toYaml | nindent 2 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}

{{- end }}
{{- if hasKey $.Values.deploymentOverride "infra-condition" }}
{{ $.Values.deploymentOverride.infra-condition | toYaml | nindent 2 }}
{{- end }}
3 changes: 3 additions & 0 deletions hack/charts/cluster-api-operator/templates/infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "infrastructure" }}
{{ $.Values.deploymentOverride.infrastructure | toYaml | nindent 2 }}
{{- end }}

0 comments on commit 4610c00

Please sign in to comment.