Skip to content

Commit 21c7772

Browse files
authored
Merge pull request #754 from pohly/automated-cherry-pick-of-#753-origin-release-3.2
Automated cherry pick of #753: fix: changed the csistoragecapacity check namespace
2 parents 7f08eff + f901220 commit 21c7772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/csi-provisioner/csi-provisioner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func main() {
493493
Name: "#%123-invalid-name",
494494
},
495495
}
496-
createdCapacity, err := clientset.StorageV1().CSIStorageCapacities("default").Create(ctx, invalidCapacity, metav1.CreateOptions{})
496+
createdCapacity, err := clientset.StorageV1().CSIStorageCapacities(namespace).Create(ctx, invalidCapacity, metav1.CreateOptions{})
497497
switch {
498498
case err == nil:
499499
klog.Fatalf("creating an invalid v1.CSIStorageCapacity didn't fail as expected, got: %s", createdCapacity)

0 commit comments

Comments
 (0)