mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
kubeadm: accept 'Y' and 'y' as reset confirmation
Signed-off-by: Alexander Brand <alexbrand09@gmail.com>
This commit is contained in:
@@ -110,7 +110,7 @@ func NewReset(in io.Reader, ignorePreflightErrors sets.String, forceReset bool,
|
||||
if err := s.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if s.Text() != "y" {
|
||||
if strings.ToLower(s.Text()) != "y" {
|
||||
return nil, errors.New("Aborted reset operation")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user