feat: add shutdownVMOnMigrationFailure to the upgrade-config setting (#1218)

* feat: add shutdownVMOnMigrationFailure to the upgrade-config setting

Add a control for the new field, which decides whether a VM that fails
to live migrate during the node pre-drain phase is shut down so that the
upgrade can continue. The field is only shown and defaulted on v1.10.0
or later clusters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Liou <tim.liou@suse.com>

* fix: name the upgrade-config radio groups for screen readers

Pass the labels of the Restore VM and Shut Down VM on Migration Failure
radio groups as their aria-label, so that screen readers can tell them
apart. Select the value through the radio group in the tests, so that
they catch a group that isn't bound to its field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Liou <tim.liou@suse.com>

---------

Signed-off-by: Tim Liou <tim.liou@suse.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tim LiouandClaude Opus 5.5 authored and GitHub committed 2026-11-17 10:49:08 +08:00
1 parent 97ce1e90f6
commit 6a20578424
4 files changed
+102

No files matched your search

+1
View File
@@ -86,6 +86,7 @@ const FEATURE_FLAGS = {
'maintenanceModeConditions',
'maintenanceModeDrainTimeoutSetting',
'componentHealth',
'shutdownVMOnMigrationFailure',
],
};