Skip to content

Commit

Permalink
Update deploymentOverride in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
omerap12 committed Jun 4, 2024
1 parent 1df9146 commit 6d62fed
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
6 changes: 3 additions & 3 deletions hack/charts/cluster-api-operator/templates/addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
secretNamespace: {{ $.Values.secretNamespace }}
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "addon" }}
{{ $.Values.deploymentOverride.addon | toYaml | nindent 2 }}
{{- end }}
{{ .Values.deploymentOverride.addon | toYaml | nindent 2 }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions hack/charts/cluster-api-operator/templates/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "bootstrap" }}
{{ $.Values.deploymentOverride.bootstrap | toYaml | nindent 2 }}
{{ .Values.deploymentOverride.bootstrap | toYaml | nindent 2 }}
{{- end }}
{{- end }}
5 changes: 3 additions & 2 deletions hack/charts/cluster-api-operator/templates/control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "controlPlane" }}
{{ .Values.deploymentOverride.controlPlane | toYaml | nindent 2 }}
{{- 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 @@ -27,8 +27,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "coreCondition" }}
{{ .Values.deploymentOverride.coreCondition| toYaml | nindent 2 }}
{{- end }}
{{- if hasKey $.Values.deploymentOverride "core-condition" }}
{{ $.Values.deploymentOverride.core-condition | toYaml | nindent 2 }}
{{- end }}

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

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

0 comments on commit 6d62fed

Please sign in to comment.