Skip to content

Commit

Permalink
Fix volume storageclass name
Browse files Browse the repository at this point in the history
  • Loading branch information
futuretea authored and guangbochen committed Jul 28, 2021
1 parent 420b467 commit c90059b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/volume/resource_volume_constructor.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *Constructor) Setup() util.Processors {
return err
}
c.Volume.Annotations[builder.AnnotationKeyImageID] = helper.BuildID(imageNamespace, imageName)
storageClassName := builder.BuildImageStorageClassName(imageNamespace, imageName)
storageClassName := builder.BuildImageStorageClassName("", imageName)
c.Volume.Spec.PVC.StorageClassName = pointer.StringPtr(storageClassName)
}
return nil
Expand Down

0 comments on commit c90059b

Please sign in to comment.