diff --git a/pkg/storagecapabilities/storagecapabilities.go b/pkg/storagecapabilities/storagecapabilities.go index 47d76ad214..47073e5838 100644 --- a/pkg/storagecapabilities/storagecapabilities.go +++ b/pkg/storagecapabilities/storagecapabilities.go @@ -70,6 +70,7 @@ var CapabilitiesByProvisionerKey = map[string][]StorageCapabilities{ // AWSElasticBlockStore "kubernetes.io/aws-ebs": {{rwo, block}}, "ebs.csi.aws.com": {{rwo, block}}, + "ebs.csi.aws.com/io2": {{rwx, block}, {rwo, block}, {rwo, file}}, // AWSElasticFileSystem "efs.csi.aws.com": {{rwx, file}, {rwo, file}}, // Azure disk @@ -354,6 +355,13 @@ var storageClassToProvisionerKeyMapper = map[string]func(sc *storagev1.StorageCl } return "driver.longhorn.io" }, + "ebs.csi.aws.com": func(sc *storagev1.StorageClass) string { + val := sc.Parameters["type"] + if val == "io2" { + return "ebs.csi.aws.com/io2" + } + return "ebs.csi.aws.com" + }, } func getFSType(sc *storagev1.StorageClass) string {