Skip to content

Commit 5dd2676

Browse files
authored
Merge pull request kubernetes#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
2 parents 7ffc469 + c318973 commit 5dd2676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/util/config/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func getInitConfigurationFromCluster(kubeconfigDir string, client clientset.Inte
125125
// However, if newControlPlane == true, initcfg.NodeRegistration is not used at all and it's overwritten later on.
126126
// Thus it's necessary to supply some default value, that will avoid the call to DetectCRISocket() and as
127127
// initcfg.NodeRegistration is discarded, setting whatever value here is harmless.
128-
initcfg.NodeRegistration.CRISocket = constants.DefaultDockerCRISocket
128+
initcfg.NodeRegistration.CRISocket = "/var/run/unknown.sock"
129129
}
130130
return initcfg, nil
131131
}

0 commit comments

Comments
 (0)