Skip to content

Commit

Permalink
Add RWX to AWS EBS io2 capabilities (#3532)
Browse files Browse the repository at this point in the history
Reference:
kubernetes-sigs/aws-ebs-csi-driver#1799

Signed-off-by: Arnon Gilboa <[email protected]>
Co-authored-by: Arnon Gilboa <[email protected]>
  • Loading branch information
kubevirt-bot and arnongilboa authored Nov 19, 2024
1 parent 9431eb7 commit 7c80cbf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/storagecapabilities/storagecapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7c80cbf

Please sign in to comment.