Skip to content

Commit

Permalink
filter out witness node when VM migration
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Aug 27, 2024
1 parent b97bf06 commit d0f9567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/harvester/dialog/HarvesterMigrationDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export default {
const nodes = this.$store.getters['harvester/all'](NODE);
return nodes.filter((n) => {
// do not allow to migrate to self node
return !!this.availableNodes.includes(n.id);
// do not allow to migrate to self node and witness node
return n => n.isEtcd !== 'true' && !!this.availableNodes.includes(n.id);
}).map((n) => {
let label = n?.metadata?.name;
const value = n?.metadata?.name;
Expand Down

0 comments on commit d0f9567

Please sign in to comment.