Skip to content

Commit b676558

Browse files
authored
Merge pull request kubernetes-csi#753 from nbalacha/namespace-fix
fix: changed the csistoragecapacity check namespace
2 parents 7f08eff + 20a4836 commit b676558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/csi-provisioner/csi-provisioner.go

+1-1
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)