Feature Request: Extend sdk to make easier to write policies that target all high lever resources that contains Pods (e.g. Deployments, StatefulSet,...) #60
Most of the policies are targeting Pods instead of higher level objects such as deployments, statefulsets, ...
That means that a deployment might be accepted, and pods will never be created if they violate a policy.
Is your feature request related to a problem?
Most of the policies are targeting Pods instead of higher level objects such as deployments, statefulsets, ... That means that a deployment might be accepted, and pods will never be created if they violate a policy.
https://github.com/kubewarden/verify-image-signatures is the only policy that's currently looking for high level resources.
Solution you'd like
Allow policy authors to easily write policies that checks all high level objects too: Deployment, ReplicaSet, StatefulSet, DaemonSet, ReplicationController, Job, CronJob
Alternatives you've considered
No response
Anything else?
No response