Files
kubernetes/cmd/kubeadm/app/util
Lubomir I. Ivanov b497d28d43 kubeadm: better error handling for unknown phases and commands
If an unknown command or a phase is called consistently
return the same error.

If a command that has subcommands is called
return an error.

To achieve the above add a new util function
RequireSubcommand() that sets NoArgs and RunE for
regular commands or a "phase" command.

Remove MacroCommandLongDescription and just return an
error that a subcommand is required from the phase runner.

Fix minor comments capitalization.

Perform other minor fixes in util/error.go.
2024-09-05 19:41:43 +03:00
..
2024-09-03 13:07:55 +10:00
2021-08-17 22:40:46 +08:00
2024-09-03 13:07:55 +10:00
2024-09-03 13:07:55 +10:00
2022-01-11 23:08:59 +08:00
2021-07-04 16:41:27 +08:00
2024-09-03 13:07:55 +10:00