mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
kubeadm: too early return for reset with dry-run or force mode
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
863a462eec
commit
1bb44a8e78
@ -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