open-policy-agent / gatekeeper-library

📚 The OPA Gatekeeper policy library
https://open-policy-agent.github.io/gatekeeper-library
Apache License 2.0
617 stars 316 forks source link

Add CEL to K8sPSPCapabilities template #535

Open maxsmythe opened 1 month ago

maxsmythe commented 1 month ago

What this PR does / why we need it:

Which issue(s) does this PR fix (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged): Fixes #541

Special notes for your reviewer:

maxsmythe commented 1 month ago

Bumped the minor version

JaydipGabani commented 1 month ago

@maxsmythe should we use snake_case instead of camelCase for naming variables to be more consistent with variables in rego policies?

maxsmythe commented 3 weeks ago

@JaydipGabani

VAP appears to use camel case, and YAML params use camel case, so probably more consistent to stick with camel case.

Example from K8s documentation:

https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/#variable-composition