From 2a5622b881b8b2db6a50e95838b1a4e79f921eb1 Mon Sep 17 00:00:00 2001 From: fsero Date: Mon, 18 May 2020 13:55:02 +0200 Subject: [PATCH] bugfix: flannel expects an int not an string --- builtin/files/userdata/cloud-config-controller | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/files/userdata/cloud-config-controller b/builtin/files/userdata/cloud-config-controller index 5eae383a9..17becfd33 100644 --- a/builtin/files/userdata/cloud-config-controller +++ b/builtin/files/userdata/cloud-config-controller @@ -1340,7 +1340,7 @@ write_files: { "Network": "{{ .PodCIDR }}", {{ if gt .Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen 0 -}} - "SubnetLen": "{{ .Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen }}", + "SubnetLen": "{{ int (.Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen ) }}", {{- end }} "Backend": { "Type": "vxlan" @@ -2352,7 +2352,7 @@ write_files: { "Network": "{{ .PodCIDR }}", {{ if gt .Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen 0 -}} - "SubnetLen": "{{ .Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen }}", + "SubnetLen": "{{ int (.Kubernetes.Networking.SelfHosting.FlannelConfig.SubnetLen) }}", {{- end }} "Backend": { "Type": "vxlan"