kubewarden / policy-sdk-go

Kubewarden Policy SDK for the Go programming language
https://kubewarden.io
Apache License 2.0
8 stars 7 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,...) #36

Closed KhaledEmaraDev closed 1 year ago

KhaledEmaraDev commented 1 year 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.

This is to introduce feature parity with the Rust SDK feature: https://github.com/kubewarden/policy-sdk-rust/issues/60

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