From c90059b9c1a14414aa6a53160936977094018b2a Mon Sep 17 00:00:00 2001 From: futuretea Date: Tue, 27 Jul 2021 07:52:14 +0800 Subject: [PATCH] Fix volume storageclass name --- internal/provider/volume/resource_volume_constructor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/volume/resource_volume_constructor.go b/internal/provider/volume/resource_volume_constructor.go index 942a36c7..f4a25586 100644 --- a/internal/provider/volume/resource_volume_constructor.go +++ b/internal/provider/volume/resource_volume_constructor.go @@ -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