Skip to content

Commit c6a6c65

Browse files
authored
Merge pull request kubernetes#73316 from rosti/fix-kubeadm-reset
kubeadm: Fix auto CRI detection in kubeadm reset
2 parents f5f5d9a + 873accd commit c6a6c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/cmd/reset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewCmdReset(in io.Reader, out io.Writer) *cobra.Command {
6767
kubeadmutil.CheckErr(err)
6868
}
6969

70-
if criSocketPath != "" {
70+
if criSocketPath == "" {
7171
criSocketPath, err = resetDetectCRISocket(client)
7272
kubeadmutil.CheckErr(err)
7373
klog.V(1).Infof("[reset] detected and using CRI socket: %s", criSocketPath)

0 commit comments

Comments
 (0)