Skip to content

Commit

Permalink
Merge pull request #753 from nbalacha/namespace-fix
Browse files Browse the repository at this point in the history
fix: changed the csistoragecapacity check namespace
  • Loading branch information
k8s-ci-robot authored Jun 27, 2022
2 parents 7f08eff + 20a4836 commit b676558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/csi-provisioner/csi-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func main() {
Name: "#%123-invalid-name",
},
}
createdCapacity, err := clientset.StorageV1().CSIStorageCapacities("default").Create(ctx, invalidCapacity, metav1.CreateOptions{})
createdCapacity, err := clientset.StorageV1().CSIStorageCapacities(namespace).Create(ctx, invalidCapacity, metav1.CreateOptions{})
switch {
case err == nil:
klog.Fatalf("creating an invalid v1.CSIStorageCapacity didn't fail as expected, got: %s", createdCapacity)
Expand Down

0 comments on commit b676558

Please sign in to comment.