Skip to content

Commit

Permalink
update netpol updates to include ingress
Browse files Browse the repository at this point in the history
Signed-off-by: catsby <[email protected]>
  • Loading branch information
catsby committed Dec 13, 2024
1 parent 024b587 commit 9b4bc34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pepr/operator/controllers/network/generators/kubeNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export async function updateKubeNodesNetworkPolicies() {
if (netPol.spec.egress) {
netPol.spec.egress[0] = netPol.spec.egress[0] || { to: [] };
netPol.spec.egress[0].to = newNodes;
} else if (netPol.spec.ingress) {
netPol.spec.ingress[0] = netPol.spec.ingress[0] || { from: [] };
netPol.spec.ingress[0].from = newNodes;
}

if (netPol.metadata) {
Expand Down

0 comments on commit 9b4bc34

Please sign in to comment.