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

Commit

Permalink
Merge pull request #1853 from Fsero/make_flannel_leases_configurable
Browse files Browse the repository at this point in the history
bugfix: flannel SubnetLen expects an int not an string
  • Loading branch information
dominicgunn authored May 18, 2020
2 parents bd0633d + c54abd5 commit bdc0325
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 bdc0325

Please sign in to comment.