PersistentVolumeLabel admission blocks PVs on Azure + vSphere #124504
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
sig/storage
Categorizes an issue or PR as relevant to SIG Storage.
What happened?
In 1.30, the PersistentVolumeLabel admission plugin blocks creation of in-tree AzureDisk and vSphere PVs:
The reason is that the cloud provider was removed (#122857), but the admission plugin still calls GetCloudProvider there, which fails:
kubernetes/plugin/pkg/admission/storage/persistentvolume/label/admission.go
Line 285 in 646fbe6
What did you expect to happen?
The PV should be admitted + created.
How can we reproduce it (as minimally and precisely as possible)?
Enable PersistentVolumeLabel admission plugin. For example, when running local-up-cluster.sh:
Create AzureDisk PV on any 1.30 cluster, you don't need Azure cloud:
Anything else we need to know?
/sig storage
/priority important-soon
Kubernetes version
Today's master
Cloud provider
OS version
No response
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: