Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#53 from openshift-cherrypick-robot/…
Browse files Browse the repository at this point in the history
…cherry-pick-52-to-release-4.11

[release-4.11] Bug 2102782: UPSTREAM: 2101343: fix: changed the csistoragecapacity check namespace
  • Loading branch information
openshift-ci[bot] authored Jul 1, 2022
2 parents 0c7c708 + 59cae8a commit 86277ec
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 86277ec

Please sign in to comment.