Skip to content

Commit

Permalink
Add RWX to AWS EBS io2 capabilities
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]>
  • Loading branch information
arnongilboa authored and kubevirt-bot committed Nov 21, 2024
1 parent 7d62839 commit ac20909
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 @@ -350,6 +351,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 ac20909

Please sign in to comment.