Skip to content

Commit 3e91f91

Browse files
Merge pull request kubernetes-sigs#70 from dfajmon/rebase-v1.14.2
STOR-2012: Rebase to upstream v1.14.2 for OCP 4.18
2 parents e60404e + c479221 commit 3e91f91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ func codeForGCEOpError(err computev1.OperationErrorErrors) codes.Code {
11291129
"RESOURCE_NOT_FOUND": codes.NotFound,
11301130
"RESOURCE_ALREADY_EXISTS": codes.AlreadyExists,
11311131
"RESOURCE_IN_USE_BY_ANOTHER_RESOURCE": codes.InvalidArgument,
1132-
"OPERATION_CANCELED_BY_USER": codes.Aborted,
1132+
"OPERATION_CANCELED_BY_USER": codes.Canceled,
11331133
"QUOTA_EXCEEDED": codes.ResourceExhausted,
11341134
"ZONE_RESOURCE_POOL_EXHAUSTED": codes.Unavailable,
11351135
"ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS": codes.Unavailable,

pkg/gce-cloud-provider/compute/gce-compute_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestCodeForGCEOpError(t *testing.T) {
122122
{
123123
name: "OPERATION_CANCELED_BY_USER error",
124124
inputErr: computev1.OperationErrorErrors{Code: "OPERATION_CANCELED_BY_USER"},
125-
expCode: codes.Aborted,
125+
expCode: codes.Canceled,
126126
},
127127
{
128128
name: "QUOTA_EXCEEDED error",

0 commit comments

Comments
 (0)