fix(plugin): address kubernetes greptile timeouts

This commit is contained in:
Dotta
2026-05-12 12:45:46 -05:00
committed by Chris Farhood
parent 39d81c732c
commit 45621aac53
5 changed files with 22 additions and 10 deletions
@@ -39,10 +39,11 @@ describe("buildNetworkPolicyManifests", () => {
it("includes user-supplied CIDRs in egress allow", () => {
const [, egress] = buildNetworkPolicyManifests({ ...baseInput, egressAllowCidrs: ["10.0.0.0/8"] });
const cidrRule = egress.spec.egress.find((r: { to: { ipBlock?: { cidr: string } }[] }) =>
const cidrRule = egress.spec.egress.find((r: { to: { ipBlock?: { cidr: string } }[]; ports?: { protocol: string; port: number }[] }) =>
r.to.some((t) => t.ipBlock?.cidr === "10.0.0.0/8"),
);
expect(cidrRule).toBeDefined();
expect(cidrRule?.ports).toEqual([{ protocol: "TCP", port: 443 }]);
});
it("adds a public HTTPS fallback when standard mode receives FQDN allow-list entries", () => {