Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
bugfix: flannel expects an int not an string
Browse files Browse the repository at this point in the history
  • Loading branch information
Fsero committed May 18, 2020
1 parent 24492f7 commit 2a5622b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/files/userdata/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2a5622b

Please sign in to comment.