Skip to content

Commit 08f517d

Browse files
author
Rahul Sharma
committed
fix helm chart templates
1 parent fa3eeda commit 08f517d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

deploy/chart/templates/daemonset.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)