Skip to content

Commit

Permalink
Bugfix: breaks when NFS volume found
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Rua committed Sep 3, 2019
1 parent b7be992 commit 6155136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func main() {
log.Printf("Cannot find EBS volume associated with %s: %s", volumeName, errp)
continue
}
/* Skip on nil which can come up for example on EFS volumes */
if awsVolume.Spec.PersistentVolumeSource.AWSElasticBlockStore == nil {
continue
}
awsVolumeID := awsVolume.Spec.PersistentVolumeSource.AWSElasticBlockStore.VolumeID

log.Printf("\nVolume Claim: %s\n", volumeClaimName)
Expand Down

0 comments on commit 6155136

Please sign in to comment.