kubewarden / cel-policy

A policy that can run CEL expressions
Apache License 2.0
3 stars 5 forks source link

fix: use namespace from object #25

Closed fabriziosestito closed 7 months ago

fabriziosestito commented 7 months ago

Description

The policy was using the namespace name from AdmissionRequest instead of the namespace of the object of the request, causing a misbehavior in particular when targeting cluster-scoped resources.

Related to: #24