kubewarden / kubewarden-controller

Manage admission policies in your Kubernetes cluster with ease
https://kubewarden.io
Apache License 2.0
191 stars 33 forks source link

Feature Request: Create a mutating policy that can mutate any object based on configuration options #436

Closed Martin-Weiss closed 1 year ago

Martin-Weiss commented 1 year ago

Is your feature request related to a problem?

Whenever a new namespace is created we want to add some PSA labels, automatically in case they are missing or different. Whenever a new POD in a given namespace is created we want to add some labels on that POD, automatically based on the namespace the POD is created in.

Solution you'd like

A policy with some configuration options would be great.

See also https://open-policy-agent.github.io/gatekeeper/website/docs/mutation/

Alternatives you've considered

Using OPA https://open-policy-agent.github.io/gatekeeper/website/docs/mutation/

Anything else?

No response

flavio commented 1 year ago

Closing this issue, I've created two dedicated issues:

@Martin-Weiss please take a look at these new issues and provide feedback about the policies