You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rakshasa-1729 can you look at the constraintTemplate and check if there are any errors reported on the status? If you can please share the whole CT yaml from api-server.
Additionally, can you also confirm is operation=generate if enabled on audit pod?
rakshasa-1729
changed the title
Constraint CRD creation failure in Gatekeeper >=3.18 GKE
Improved logging for Constraint CRD creation failure without the generate flag
May 16, 2025
@JaydipGabani Appreciate the help resolving this, Renamed the issue to improve logging to indicate the reason for CRD not getting generated.
To quote the resolution here for future explorers:
For controller-manager need to add operation=generate . We added operation=generate to guard all "Generation behavior" in GK and only by default enabled on audit from the charts to avoid write contentions.
If you are not using audit, you need to add it to controller manager and the error should get resolved.
Uh oh!
There was an error while loading. Please reload this page.
What steps did you take and what happened:
What did you expect to happen:
Normal constraint template registration, Constraint CRD creation and constraint definition
Anything else you would like to add:
The constraint and template tried was: https://open-policy-agent.github.io/gatekeeper-library/website/validation/allowedrepos
Applied in order, constraint template followed by the constraint
https://github.com/open-policy-agent/gatekeeper/blob/7acc32e7ad160adc3e147d1a3603d[…]/controller/constrainttemplate/constrainttemplate_controller.go this could fail
Logs:
Environment:
3.18.* -> 3.19.*
kubectl version
): GKE, 1.32.3, Client 1.33The text was updated successfully, but these errors were encountered: