Files
kubernetes/pkg/controller
Kubernetes Submit Queue 77333e95e4 Merge pull request #56831 from oracle/for/upstream/master/56830
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
2017-12-16 09:33:36 -08:00
..
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-10-15 18:18:13 -07:00
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-12-02 21:12:39 +08:00
2017-11-09 12:14:08 +01:00
2017-11-09 12:14:08 +01:00
2017-11-23 11:46:34 +01:00
2017-11-14 17:18:17 +08:00