Merge pull request #4933 from DaiYuzeng/fix-3163

HARVESTER: exclude the network created by storage-network
This commit is contained in:
Nancy 2023-01-03 16:36:57 -07:00 committed by GitHub
commit 39daf96c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,8 @@ const PRIORITY = {
PREFERRED: 'preferred'
};
const STORAGE_NETWORK = 'storage-network.settings.harvesterhci.io'
export default Component.extend(NodeDriver, {
growl: service(),
settings: service(),
@ -189,7 +191,9 @@ export default Component.extend(NodeDriver, {
});
const networks = resp.networks.body.data || [];
const networkContent = networks.map((O) => {
const networkContent = networks.filter((O) => {
return O.metadata?.annotations?.[STORAGE_NETWORK] !== 'true'
}).map((O) => {
let id = '';
try {