fix: fail quickly if upgrade-k8s is used with multiple nodes

Fixes #7283

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2023-05-29 14:27:14 +04:00
parent 51d931c470
commit 1fb29a56a8
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD

View File

@ -46,6 +46,10 @@ func init() {
}
func upgradeKubernetes(ctx context.Context, c *client.Client) error {
if err := helpers.FailIfMultiNodes(ctx, "upgrade-k8s"); err != nil {
return err
}
if err := helpers.ClientVersionCheck(ctx, c); err != nil {
return err
}