Skip to content

Commit 34fde4e

Browse files
committed
fix: add comments to large scope if & for loops
The intention is to reduce time to comprehension of the chart.
1 parent 194d5c6 commit 34fde4e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ spec:
5252
{{- if $.Values.secretNamespace }}
5353
secretNamespace: {{ $.Values.secretNamespace }}
5454
{{- end }}
55-
{{- end }}
56-
{{- end }}
55+
{{- end }} {{/* range $addon := $addons */}}
56+
{{- end }} {{/* if .Values.addon */}}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ spec:
5151
namespace: {{ $.Values.configSecret.namespace }}
5252
{{- end }}
5353
{{- end }}
54-
{{- end }}
55-
{{- end }}
54+
{{- end }} {{/* range $bootstrap := $bootstraps */}}
55+
{{- end }} {{/* if .Values.bootstrap */}}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ spec:
5151
namespace: {{ $.Values.configSecret.namespace }}
5252
{{- end }}
5353
{{- end }}
54-
{{- end }}
55-
{{- end }}
54+
{{- end }} {{/* range $controlPlane := $controlPlanes */}}
55+
{{- end }} {{/* if .Values.controlPlane */}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ spec:
6060
namespace: {{ $.Values.configSecret.namespace }}
6161
{{- end }}
6262
{{- end }}
63-
{{- end }}
63+
{{- end }} {{/* if .Values.core */}}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ spec:
6969
{{- if $.Values.additionalDeployments }}
7070
additionalDeployments: {{ toYaml $.Values.additionalDeployments | nindent 4 }}
7171
{{- end }}
72-
{{- end }}
73-
{{- end }}
72+
{{- end }} {{/* range $infrastructure := $infrastructures */}}
73+
{{- end }} {{/* if .Values.infrastructure */}}

0 commit comments

Comments
 (0)