mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #94555 from SataQiu/fix-crisocket-warning-20200905
Fix the bug that kubeadm tries to call 'docker info' even if the CRI socket was for another CR
This commit is contained in:
commit
5dd2676bf6
@ -125,7 +125,7 @@ func getInitConfigurationFromCluster(kubeconfigDir string, client clientset.Inte
|
||||
// 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.
|
||||
initcfg.NodeRegistration.CRISocket = constants.DefaultDockerCRISocket
|
||||
initcfg.NodeRegistration.CRISocket = "/var/run/unknown.sock"
|
||||
}
|
||||
return initcfg, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user