Skip to content

Commit

Permalink
Allow to choose NADs from default namespace
Browse files Browse the repository at this point in the history
Signed-off-by: yaacov <kobi.zamir@gmail.com>
  • Loading branch information
yaacov committed May 2, 2024
1 parent b4b4c82 commit 8fde165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const mapTargetNetworksIdsToLabels = (
plan: V1beta1Plan,
): { [label: string]: string } => {
const tuples: [string, string][] = targets
.filter(({ namespace }) => namespace === plan.spec.targetNamespace)
.filter(({ namespace }) => namespace === plan.spec.targetNamespace || namespace === 'default')
.map((net) => [net.uid, net.name]);

tuples.push(['pod', POD_NETWORK]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const calculateNetworks = (

const targetNetworkNameToUid = Object.fromEntries(
existingResources.targetNetworks
.filter(({ namespace }) => namespace === plan.spec.targetNamespace)
.filter(({ namespace }) => namespace === plan.spec.targetNamespace || namespace === 'default')
.map((net) => [net.name, net.uid]),
);
const targetNetworkLabels = [
Expand Down

0 comments on commit 8fde165

Please sign in to comment.