Merge pull request #942 from erikwilson/fix-no-flannel

Remove trailing whitespace trimming from containerd template
This commit is contained in:
Erik Wilson 2019-10-24 21:29:14 -07:00 committed by GitHub
commit d0644492bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,17 +25,17 @@ const ContainerdConfigTemplate = `
disable_cgroup = true disable_cgroup = true
disable_apparmor = true disable_apparmor = true
restrict_oom_score_adj = true restrict_oom_score_adj = true
{{ end -}} {{end}}
{{- if .NodeConfig.AgentConfig.PauseImage }} {{- if .NodeConfig.AgentConfig.PauseImage }}
sandbox_image = "{{ .NodeConfig.AgentConfig.PauseImage }}" sandbox_image = "{{ .NodeConfig.AgentConfig.PauseImage }}"
{{ end -}} {{end}}
{{- if not .NodeConfig.NoFlannel }} {{- if not .NodeConfig.NoFlannel }}
[plugins.cri.cni] [plugins.cri.cni]
bin_dir = "{{ .NodeConfig.AgentConfig.CNIBinDir }}" bin_dir = "{{ .NodeConfig.AgentConfig.CNIBinDir }}"
conf_dir = "{{ .NodeConfig.AgentConfig.CNIConfDir }}" conf_dir = "{{ .NodeConfig.AgentConfig.CNIConfDir }}"
{{ end -}} {{end}}
[plugins.cri.containerd.runtimes.runc] [plugins.cri.containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2" runtime_type = "io.containerd.runc.v2"