mirror of https://github.com/k3s-io/k3s
Merge pull request #73316 from rosti/fix-kubeadm-reset
kubeadm: Fix auto CRI detection in kubeadm resetpull/564/head
commit
c6a6c65e32
|
@ -67,7 +67,7 @@ func NewCmdReset(in io.Reader, out io.Writer) *cobra.Command {
|
|||
kubeadmutil.CheckErr(err)
|
||||
}
|
||||
|
||||
if criSocketPath != "" {
|
||||
if criSocketPath == "" {
|
||||
criSocketPath, err = resetDetectCRISocket(client)
|
||||
kubeadmutil.CheckErr(err)
|
||||
klog.V(1).Infof("[reset] detected and using CRI socket: %s", criSocketPath)
|
||||
|
|
Loading…
Reference in New Issue