Skip to content

Commit 86277ec

Browse files
Merge pull request kubernetes-csi#53 from openshift-cherrypick-robot/cherry-pick-52-to-release-4.11
[release-4.11] Bug 2102782: UPSTREAM: 2101343: fix: changed the csistoragecapacity check namespace
2 parents 0c7c708 + 59cae8a commit 86277ec

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)