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.
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.