mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
fix 116028
This commit is contained in:
parent
015e2fa20c
commit
d06c0995cb
@ -937,7 +937,7 @@ func (ctrl *PersistentVolumeController) updateVolumePhaseWithEvent(volume *v1.Pe
|
||||
// Ignores claims that already have a storage class.
|
||||
// TODO: if resync is ever changed to a larger period, we might need to change how we set the default class on existing unbound claims
|
||||
func (ctrl *PersistentVolumeController) assignDefaultStorageClass(claim *v1.PersistentVolumeClaim) (bool, error) {
|
||||
if claim.Spec.StorageClassName != nil {
|
||||
if storagehelpers.GetPersistentVolumeClaimClass(claim) != "" {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user