Skip to content

Commit c8b7efa

Browse files
committed
Fix storageClass name when creating PVC
Recently the CSI StorageClass named as standard-csi was made the default in 4.11, consequently the PVC creation would fail with storageclass.storage.k8s.io standard not found. This commit fixes the issue by ensuring the pvc uses the correct storageClass name.
1 parent 5095610 commit c8b7efa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/bootstrap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func (c *Controller) createPVC(accessMode corev1.PersistentVolumeAccessMode, cla
108108
return err
109109
}
110110

111-
// "standard" is the default StorageClass name, that was provisioned by the cloud provider
112-
storageClassName := "standard"
111+
// "standard-csi" is the default StorageClass name in 4.11 and newer versions, that was provisioned by the cloud provider
112+
storageClassName := "standard-csi"
113113

114114
// This is a Workaround for Bug#1862991 Tracker for removel on Bug#1866240
115115
if infra, err := util.GetInfrastructure(c.listers); err != nil {

0 commit comments

Comments
 (0)