Skip to content

fix: skip quota enforcement for resources outside project context#531

Open
zachsmith1 wants to merge 1 commit intomainfrom
fix/e2e-test-quota-grants
Open

fix: skip quota enforcement for resources outside project context#531
zachsmith1 wants to merge 1 commit intomainfrom
fix/e2e-test-quota-grants

Conversation

@zachsmith1
Copy link
Copy Markdown
Contributor

Summary

Two fixes for quota enforcement breaking existing e2e tests after ClaimCreationPolicies were deployed in PR #528:

1. Skip quota in root control plane

The admission plugin now skips ResourceClaim creation when no consumer (project) context can be determined. Resources created in the root control plane (e.g. CRM notes test) are not subject to per-project quota.

Previously, creating Notes, ConfigMaps, or Secrets outside a project control plane failed with "Insufficient quota" because the claim had no consumerRef and couldn't match any AllowanceBucket.

2. Add test-specific grants for project-scoped tests

Add ResourceGrant setup steps to note-multicluster-subject and clusternote-multicluster-subject e2e tests so their projects have quota allocated. These tests create resources in project control planes which now require quota grants.

Test plan

  • Unit tests pass
  • crm-note-contact-lifecycle passes (root-scoped Notes skip quota)
  • note-multicluster-subject passes (project-scoped with test grant)
  • clusternote-multicluster-subject passes (project-scoped with test grant)

🤖 Generated with Claude Code

@joggrbot
Copy link
Copy Markdown
Contributor

joggrbot bot commented Mar 20, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: e2185af | Powered by Joggr

…ontrol planes

Add ResourceGrant setup steps to note-multicluster-subject and
clusternote-multicluster-subject e2e tests so their projects have
quota allocated for notes, configmaps, and secrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zachsmith1 zachsmith1 force-pushed the fix/e2e-test-quota-grants branch from 0999434 to e2185af Compare March 20, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant