kubewarden / policy-sdk-rust

Kubewarden Policy SDK for the Rust programming language
https://kubewarden.io
Apache License 2.0
8 stars 6 forks source link

Feature Request: Extend sdk to make easier to write policies that target all high lever resources that contains Pods (e.g. Deployments, StatefulSet,...) #60

Closed raulcabello closed 2 years ago

raulcabello commented 2 years ago

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