Commit 873accd5 authored by Rostislav M. Georgiev's avatar Rostislav M. Georgiev

kubeadm: Fix auto CRI detection in kubeadm reset

Reversed if statement is turns off CRI detection in kubeadm reset. Trivial fix. Signed-off-by: 's avatarRostislav M. Georgiev <rostislavg@vmware.com>
parent d654b49c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment