Skip to content

Commit

Permalink
fix: remove witness node in VM node scheduling tab
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <[email protected]>
  • Loading branch information
a110605 committed Jan 14, 2025
1 parent 5bd8ad2 commit 33a1e91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/harvester/mixins/harvester-vm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ export default {
nodesIdOptions() {
const nodes = this.$store.getters[`${ this.inStore }/all`](NODE);

console.log('🚀 ~ nodesIdOptions ~ nodes:', nodes);

Check warning on line 215 in pkg/harvester/mixins/harvester-vm/index.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
const networkNames = this.networkRows.map((n) => n.networkName);
const vmNetworks = this.$store.getters[`${ this.inStore }/all`](NETWORK_ATTACHMENT);
const selectedVMNetworks = networkNames.map((name) => vmNetworks.find((n) => n.id === name)).filter((n) => n?.id);
const clusterNetworks = uniq(selectedVMNetworks.map((n) => n.clusterNetworkResource?.id));

return nodes.filter((N) => !N.isUnSchedulable).map((node) => {
return nodes.filter((N) => !N.isUnSchedulable && N.isEtcd !== 'true').map((node) => {
const requireLabelKeys = [];
let isNetworkSchedule = true;

Expand Down

0 comments on commit 33a1e91

Please sign in to comment.