diff --git a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go index 2bb0db5b99a6..309be70ff891 100644 --- a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go +++ b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go @@ -89,6 +89,7 @@ var ( regexp.MustCompile("Reservation (.*) is incorrect for the requested resources"), regexp.MustCompile("Zone does not currently have sufficient capacity for the requested resources"), regexp.MustCompile("Reservation (.*) does not have sufficient capacity for the requested resources."), + regexp.MustCompile("Specified reservation (.*) does not have available resources for the request."), } ) diff --git a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client_test.go b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client_test.go index 136494e83ce9..7bc6483a5214 100644 --- a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client_test.go +++ b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client_test.go @@ -209,6 +209,12 @@ func TestErrors(t *testing.T) { expectedErrorCode: "OTHER", expectedErrorClass: cloudprovider.OtherErrorClass, }, + { + errorCodes: []string{"CONDITION_NOT_MET"}, + errorMessage: "Specified reservation 'rsv-name' does not have available resources for the request.", + expectedErrorCode: "INVALID_RESERVATION", + expectedErrorClass: cloudprovider.OtherErrorClass, + }, } for _, tc := range testCases { for _, errorCode := range tc.errorCodes {