Skip to content

Commit 446aa87

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 f4cb5ee commit 446aa87

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
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
@@ -64,5 +64,5 @@ spec:
6464
namespace: {{ $.Values.configSecret.namespace }}
6565
{{- end }}
6666
{{- end }}
67-
{{- end }}
68-
{{- end }}
67+
{{- end }} {{/* range $controlPlane := $controlPlanes */}}
68+
{{- 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
@@ -79,5 +79,5 @@ spec:
7979
{{- if $.Values.additionalDeployments }}
8080
additionalDeployments: {{ toYaml $.Values.additionalDeployments | nindent 4 }}
8181
{{- end }}
82-
{{- end }}
83-
{{- end }}
82+
{{- end }} {{/* range $infrastructure := $infrastructures */}}
83+
{{- end }} {{/* if .Values.infrastructure */}}

hack/charts/cluster-api-operator/templates/ipam.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 $ipam := $ipams */}}
73+
{{- end }} {{/* if .Values.ipam */}}

0 commit comments

Comments
 (0)