Skip to content

Commit

Permalink
Handle PV created by AWS EBS CSI migration feature (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhkim authored Mar 22, 2023
1 parent f88e604 commit c2b2071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ func processPersistentVolumeClaim(pvc *corev1.PersistentVolumeClaim) (string, ma
if provisionedBy == "ebs.csi.aws.com" {
if pv.Spec.CSI != nil {
volumeID = pv.Spec.CSI.VolumeHandle
}
} else {
volumeID = parseAWSEBSVolumeID(pv.Spec.AWSElasticBlockStore.VolumeID)
}
} else if provisionedBy == "efs.csi.aws.com" {
if pv.Spec.CSI != nil {
volumeID = parseAWSEFSVolumeID(pv.Spec.CSI.VolumeHandle)
Expand Down

0 comments on commit c2b2071

Please sign in to comment.