mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
kubeadm: clean redundant whitespace for join command template
This commit is contained in:
parent
979c644df2
commit
3a2ffbf70a
@ -31,8 +31,8 @@ import (
|
|||||||
|
|
||||||
var joinCommandTemplate = template.Must(template.New("join").Parse(`` +
|
var joinCommandTemplate = template.Must(template.New("join").Parse(`` +
|
||||||
`kubeadm join {{.ControlPlaneHostPort}} --token {{.Token}} \
|
`kubeadm join {{.ControlPlaneHostPort}} --token {{.Token}} \
|
||||||
{{range $h := .CAPubKeyPins}}--discovery-token-ca-cert-hash {{$h}} {{end}}{{if .ControlPlane}}\
|
{{range $h := .CAPubKeyPins}}--discovery-token-ca-cert-hash {{$h}} {{end}}{{if .ControlPlane}}\
|
||||||
--control-plane {{if .CertificateKey}}--certificate-key {{.CertificateKey}}{{end}}{{end}}`,
|
--control-plane {{if .CertificateKey}}--certificate-key {{.CertificateKey}}{{end}}{{end}}`,
|
||||||
))
|
))
|
||||||
|
|
||||||
// GetJoinWorkerCommand returns the kubeadm join command for a given token and
|
// GetJoinWorkerCommand returns the kubeadm join command for a given token and
|
||||||
|
Loading…
Reference in New Issue
Block a user