redhat-cop / podpreset-webhook

Implementation of Kubernetes PodPreset as an Admission Webhook.
Apache License 2.0
63 stars 30 forks source link

Podpresets don't work for statefulsets #4

Open anhi opened 4 years ago

anhi commented 4 years ago

The webhook works fine when using deployments, but when I switch from deployment to a statefulset (keeping everything else identical), it stops working. Debugging the code, it seems that listing the podpresets does not work for pods created from a statefulset when using the pod namespace as an option.

dpoetzsch commented 2 years ago

This seems to work now with the current master (4bf4993919dead0fb98ce9ceff5c88493eb03a63).