mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-22 17:35:12 +00:00
Automatic merge from submit-queue (batch tested with PRs 54902, 56831, 56702, 56287, 56878). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Ensure PVL controller is next pending initializer before labeling the PV **What this PR does / why we need it**: According the [documentation](https://kubernetes.io/docs/admin/extensible-admission-controllers/#how-are-initializers-triggered), initializer controllers should only initialize the object once its name is at `metadata.initializers.pending[0]`.[Currently](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/cloud/pvlcontroller.go#L268), the PVL controller just checks if its name is in the list at all and ignores ordering. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #56830 **Special notes for your reviewer**: **Release note**: ```release-note Fix the PersistentVolumeLabel controller from initializing the PV labels when it's not the next pending initializer. ``` /kind bug /sig storage /area cloudprovider /cc @wlan0 @luxas @liggitt