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

fix: 1:1 mapping for rego:cel for psp-host-network-ports policy #559

Closed JaydipGabani closed 5 days ago

JaydipGabani commented 1 week ago

What this PR does / why we need it: As per @maxsmythe comment - https://github.com/open-policy-agent/gatekeeper-library/issues/556#issuecomment-2187847212

This change makes sure that policy does not check for exempt images while verifying pod.spec.hostNetwork.

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 #

Special notes for your reviewer:

ritazh commented 1 week ago

gator verify tests are failing