Skip to content

Commit

Permalink
Merge pull request #11 from kristianfzr/kkanchev/csi-provisioner
Browse files Browse the repository at this point in the history
Added CSI provisioner check to func isEBSVolume
  • Loading branch information
sergiorua authored May 20, 2021
2 parents 2e587a7 + 3e23af8 commit ce2f993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func main() {
*/
func isEBSVolume(volume *v1.PersistentVolumeClaim) bool {
for k, v := range volume.Annotations {
if k == "volume.beta.kubernetes.io/storage-provisioner" && v == "kubernetes.io/aws-ebs" {
if k == "volume.beta.kubernetes.io/storage-provisioner" && (v == "kubernetes.io/aws-ebs" || v == "kubernetes.io/ebs.csi.aws.com") {
return true
}
}
Expand Down

0 comments on commit ce2f993

Please sign in to comment.