redhat-cop / podpreset-webhook

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

When there are multiple presets the last one is always applied #2

Closed mathianasj closed 4 years ago

mathianasj commented 4 years ago

When a pod does not match a podpreset the last one in the list of available is applied even though it does not match the selector.

VassilisVassiliadis commented 3 years ago

This bug in filterPodPresets has returned: https://github.com/redhat-cop/podpreset-webhook/blob/198be31d85d34b3e4ec236eb67db1a5251f2bc77/pkg/handler/handler.go#L132