Skip to content

Commit

Permalink
Merge pull request #1136 from yaacov/allow-to-choose-nads-from-defaul…
Browse files Browse the repository at this point in the history
…t-namespace

🐞  Allow to choose NADs from default namespace
  • Loading branch information
yaacov authored May 2, 2024
2 parents b4b4c82 + 8fde165 commit 55e5971
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 55e5971

Please sign in to comment.