Commit 2e85daa
authored
feat: add networking quota grant policies (#192)
## Summary
- Add GrantCreationPolicy for all 13 NSO user-facing resources
- Triggered on Project creation, allocates default quota amounts
- Single default tier (personal-level) — standard org overrides deferred
until org-type label propagation exists
- Companion to
datum-cloud/network-services-operator#129 which
defines the registrations and claim policies in the NSO repo
### Default quotas per project
| Resource | apiGroup | Amount |
|----------|----------|--------|
| Domain | `networking.datumapis.com` | 25 |
| HTTPProxy | `networking.datumapis.com` | 10 |
| TrafficProtectionPolicy | `networking.datumapis.com` | 0 (disabled) |
| Connector | `networking.datumapis.com` | 5 |
| ConnectorAdvertisement | `networking.datumapis.com` | 10 |
| Gateway | `gateway.networking.k8s.io` | 10 |
| HTTPRoute | `gateway.networking.k8s.io` | 25 |
| BackendTLSPolicy | `gateway.networking.k8s.io` | 10 |
| Backend | `gateway.envoyproxy.io` | 10 |
| BackendTrafficPolicy | `gateway.envoyproxy.io` | 10 |
| SecurityPolicy | `gateway.envoyproxy.io` | 10 |
| HTTPRouteFilter | `gateway.envoyproxy.io` | 10 |
| EndpointSlice | `discovery.k8s.io` | 25 |
Note: Domains aligned with existing DNS zone quota (25). HTTPProxies and
Gateways are 1-to-1 with each other (10).
## Test plan
- [ ] Verify kustomize build succeeds
- [ ] Deploy alongside NSO registrations/claim policies and verify grant
creation on project creation
Ref: datum-cloud/enhancements#664
🤖 Generated with [Claude Code](https://claude.com/claude-code)5 files changed
Lines changed: 95 additions & 0 deletions
File tree
- config/services
- networking.datumapis.com
- quota
- grant-policies
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments