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

Check group and version when extracting or mutating pod spec from objects #126

Open jvanz opened 9 months ago

jvanz commented 9 months ago

In the functions used to extract and mutate the PodSpec from the request objects the SDK should verify the group and version as well. Otherwise something like argocd.io/v1/Deployment would be mistaken as apps/v1/Deployment.