feat: add support for custom CIDR ingress/egress rules #60

Merged
johnride merged 3 commits from feat/additionalCidrNetworkPolicy into master 2025-06-12 15:24:09 +00:00

3 Commits

Author SHA1 Message Date
5ba3e1f2d2 chore: Run cargo fix, remove unused imports
All checks were successful
Run Check Script / check (push) Successful in 1m47s
Run Check Script / check (pull_request) Successful in 1m48s
2025-06-11 17:14:43 -04:00
b5ed445d5f feat: Support specifying ports in Tenant network config 2025-06-11 17:12:59 -04:00
acfcc77040 feat: add support for custom CIDR ingress/egress rules
All checks were successful
Run Check Script / check (push) Successful in 1m47s
Run Check Script / check (pull_request) Successful in 1m48s
- Added `additional_allowed_cidr_ingress` and `additional_allowed_cidr_egress` fields to `TenantNetworkPolicy` to allow specifying custom CIDR blocks for network access.
- Updated K8sTenantManager to parse and apply these CIDR rules to NetworkPolicy ingress and egress rules.
- Added `cidr` dependency to `harmony_macros` and a custom proc macro `cidrv4` to easily parse CIDR strings.
- Updated TenantConfig to default inter tenant and internet egress to deny all and added default empty vectors for CIDR ingress and egress.
- Updated ResourceLimits to implement default.
2025-06-11 15:18:43 -04:00