Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: how to make Pod specific policies work against higher-order resources #23

Open
flavio opened this issue Aug 7, 2023 · 1 comment

Comments

@flavio
Copy link
Member

flavio commented Aug 7, 2023

Many policies target the Pod resource, however, creating this resource in a direct way is considered a Kubernetes anti-pattern. Most of the time, Pod resources are created by higher-order resources like Deployment, DaemonSet, CronJob, ReplicaSet,...

Currently, our SDKs provide APIs that allow the policy author to make his policy work also against the most common Kubernetes resources that have Pod objects specified inside of them.
However, this is extra work that has to be done on a per-policy basis.

On the other hand, Kyverno has the concept of auto-gen rules which makes the whole process simpler.

It would be useful to create a RFC that describes how we could create a Kubewarden feature similar to the auto-gen rules of Kyverno.

@flavio flavio changed the title RFC: how to make Pod specific policies work against high order resources RFC: how to make Pod specific policies work against higher-order resources Aug 7, 2023
@flavio
Copy link
Member Author

flavio commented Aug 7, 2023

@adnanhashmi09 is interested in working on this RFC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant