mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
kubeadm: Fix auto CRI detection in kubeadm reset
Reversed if statement is turns off CRI detection in kubeadm reset. Trivial fix. Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
This commit is contained in:
parent
d654b49c0e
commit
873accd513
@ -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
Block a user