k3s/cmd/kubeadm/app/util
Rostislav M. Georgiev 8921f03347 kubeadm: Don't error out on join with --cri-socket override
In the case where newControlPlane is true we don't go through
getNodeRegistration() and initcfg.NodeRegistration.CRISocket is empty.
This forces DetectCRISocket() to be called later on, and if there is more than
one CRI installed on the system, it will error out, while asking for the user
to provide an override for the CRI socket. Even if the user provides an
override, the call to DetectCRISocket() can happen too early and thus ignore it
(while still erroring out).
However, if newControlPlane == true, initcfg.NodeRegistration is not used at
all and it's overwritten later on.
Thus it's necessary to supply some default value, that will avoid the call to
DetectCRISocket() and as initcfg.NodeRegistration is discarded, setting
whatever value here is harmless.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-04-12 19:46:19 +03:00
..
apiclient kubeadm: update output of init, join reset commands 2019-03-06 03:17:35 +02:00
audit
certs Extract new keyutil package from client-go/util/cert 2019-02-19 09:48:59 -08:00
config kubeadm: Don't error out on join with --cri-socket override 2019-04-12 19:46:19 +03:00
crypto Add kubeadm init upload encrypted certs phase 2019-02-19 02:52:21 -03:00
dryrun error-imports-cleanups 2019-01-03 13:25:18 +01:00
etcd fix-kubeadm-upgrade-12-13-14 2019-04-02 21:27:21 +02:00
kubeconfig kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
pkiutil Merge pull request #71896 from awly/client-go-keyutil 2019-02-23 01:43:16 -08:00
pubkeypin
runtime kubeadm: Detect CRIs automatically 2019-01-21 16:12:04 +02:00
staticpod kubeadm: set priority class name to `system-cluster-critical` for all master components 2019-02-12 17:50:36 +01:00
system kubeadm: remove dead code 2019-02-22 23:01:14 +01:00
BUILD Add kubeadm init upload encrypted certs phase 2019-02-19 02:52:21 -03:00
arguments.go
arguments_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
cgroupdriver.go kubeadm: add a preflight check for Docker and cgroup driver 2019-02-08 19:31:22 +02:00
cgroupdriver_test.go
chroot_test.go
chroot_unix.go
chroot_windows.go
copy.go
endpoint.go kubeadm cleanup: master -> control-plane (cont.3) 2019-02-23 10:19:26 +07:00
endpoint_test.go kubeadm cleanup: master -> control-plane (cont.3) 2019-02-23 10:19:26 +07:00
error.go error-imports-cleanups 2019-01-03 13:25:18 +01:00
error_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
marshal.go error-imports-cleanups 2019-01-03 13:25:18 +01:00
marshal_test.go
template.go
template_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
version.go error-imports-cleanups 2019-01-03 13:25:18 +01:00
version_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00