File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,20 +51,22 @@ spec:
5151 - --linodego-debug={{ . }}
5252 {{- end }}
5353 {{- $clusterCIDR := .Values.clusterCIDR }}
54+ {{- if and .Values.routeController .Values.routeController.clusterCIDR }}
55+ {{- $clusterCIDR = .Values.routeController.clusterCIDR }}
56+ {{- end }}
57+ {{- if .Values.enableNodeIPAM }}
5458 {{- with .Values.enableNodeIPAM }}
5559 - --allocate-node-cidrs={{ . }}
60+ {{- end }}
5661 {{- if not $clusterCIDR }}
5762 {{- fail "clusterCIDR is required if enableNodeIPAM is set" }}
5863 {{- end }}
59- {{- end }}
6064 {{- with .Values.nodeCIDRMaskSizeIPv4 }}
6165 - --node-cidr-mask-size-ipv4={{ . }}
6266 {{- end }}
6367 {{- with .Values.nodeCIDRMaskSizeIPv6 }}
6468 - --node-cidr-mask-size-ipv6={{ . }}
6569 {{- end }}
66- {{- if and .Values.routeController .Values.routeController.clusterCIDR }}
67- {{- $clusterCIDR = .Values.routeController.clusterCIDR }}
6870 {{- end }}
6971 {{- $vpcNames := .Values.vpcNames }}
7072 {{- if and .Values.routeController .Values.routeController.vpcNames }}
@@ -102,7 +104,7 @@ spec:
102104 {{- end }}
103105 {{- with $subnetNames }}
104106 - --subnet-names={{ . }}
105- {{ end }}
107+ {{- end }}
106108 {{- with $clusterCIDR }}
107109 - --cluster-cidr={{ . }}
108110 {{- end }}
You can’t perform that action at this time.
0 commit comments