Skip to content

Commit 55e5971

Browse files
authored
Merge pull request #1136 from yaacov/allow-to-choose-nads-from-default-namespace
🐞 Allow to choose NADs from default namespace
2 parents b4b4c82 + 8fde165 commit 55e5971

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/forklift-console-plugin/src/modules/Plans/views/details/utils/mapMappingsIdsToLabels.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const mapTargetNetworksIdsToLabels = (
103103
plan: V1beta1Plan,
104104
): { [label: string]: string } => {
105105
const tuples: [string, string][] = targets
106-
.filter(({ namespace }) => namespace === plan.spec.targetNamespace)
106+
.filter(({ namespace }) => namespace === plan.spec.targetNamespace || namespace === 'default')
107107
.map((net) => [net.uid, net.name]);
108108

109109
tuples.push(['pod', POD_NETWORK]);

packages/forklift-console-plugin/src/modules/Providers/views/migrate/reducer/calculateMappings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const calculateNetworks = (
3838

3939
const targetNetworkNameToUid = Object.fromEntries(
4040
existingResources.targetNetworks
41-
.filter(({ namespace }) => namespace === plan.spec.targetNamespace)
41+
.filter(({ namespace }) => namespace === plan.spec.targetNamespace || namespace === 'default')
4242
.map((net) => [net.name, net.uid]),
4343
);
4444
const targetNetworkLabels = [

0 commit comments

Comments
 (0)