Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support namespaceObject in CEL #3777

Open
Agalin opened this issue Jan 13, 2025 · 0 comments
Open

Support namespaceObject in CEL #3777

Agalin opened this issue Jan 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Agalin
Copy link

Agalin commented Jan 13, 2025

Describe the solution you'd like

Gatekeeper's CEL engine seems to lack the top-level namespaceObject defined by Kubernetes docs. It should give access to the request namespace object, including its labels.

Anything else you would like to add:

Didn't check if authorizer object works as expected, others seem to be fine. Note that I've used Gator tests to validate this, didn't deploy to a cluster.

This is already supported in Kyverno (kyverno/kyverno#8070).

Environment:

  • Gatekeeper version: 3.18.2
  • Kubernetes version: (use kubectl version): N/A
@Agalin Agalin added the enhancement New feature or request label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant