mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #112175 from chendave/fix_early_return
kubeadm: too early return for reset with dry-run or force mode
This commit is contained in:
commit
cba0dcecc9
@ -53,7 +53,9 @@ func runPreflight(c workflow.RunData) error {
|
||||
|
||||
if !r.ForceReset() && !r.DryRun() {
|
||||
klog.Warning("[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.")
|
||||
return util.InteractivelyConfirmAction("reset", "Are you sure you want to proceed?", r.InputReader())
|
||||
if err := util.InteractivelyConfirmAction("reset", "Are you sure you want to proceed?", r.InputReader()); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("[preflight] Running pre-flight checks")
|
||||
|
Loading…
Reference in New Issue
Block a user