mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #110978 from chendave/dry_run_interactive
kubeadm: Don't ask for input if it's dry run mode
This commit is contained in:
		@@ -51,7 +51,7 @@ func runPreflight(c workflow.RunData) error {
 | 
			
		||||
		return errors.New("preflight phase invoked with an invalid data struct")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if !r.ForceReset() {
 | 
			
		||||
	if !r.ForceReset() && !r.DryRun() {
 | 
			
		||||
		klog.Warning("[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.")
 | 
			
		||||
		fmt.Print("[reset] Are you sure you want to proceed? [y/N]: ")
 | 
			
		||||
		s := bufio.NewScanner(r.InputReader())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user