From 3a2ffbf70a112aaac487562c2e47c8a34c423e7b Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Mon, 21 Dec 2020 11:27:22 +0800 Subject: [PATCH] kubeadm: clean redundant whitespace for join command template --- cmd/kubeadm/app/cmd/util/join.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/cmd/util/join.go b/cmd/kubeadm/app/cmd/util/join.go index d045435dad5..61b74978085 100644 --- a/cmd/kubeadm/app/cmd/util/join.go +++ b/cmd/kubeadm/app/cmd/util/join.go @@ -31,8 +31,8 @@ import ( var joinCommandTemplate = template.Must(template.New("join").Parse(`` + `kubeadm join {{.ControlPlaneHostPort}} --token {{.Token}} \ - {{range $h := .CAPubKeyPins}}--discovery-token-ca-cert-hash {{$h}} {{end}}{{if .ControlPlane}}\ - --control-plane {{if .CertificateKey}}--certificate-key {{.CertificateKey}}{{end}}{{end}}`, + {{range $h := .CAPubKeyPins}}--discovery-token-ca-cert-hash {{$h}} {{end}}{{if .ControlPlane}}\ + --control-plane {{if .CertificateKey}}--certificate-key {{.CertificateKey}}{{end}}{{end}}`, )) // GetJoinWorkerCommand returns the kubeadm join command for a given token and