I'm trying to update a cloud run service using the NodeJs client library (@google-cloud/run).
For a service without GPU the request succeeds, but when I attach a GPU (using pulumi/terraform) I'm no longer able to update the service.
Code to reproduce:
const client = new ServicesClient({
projectId,
})
const request: protos.google.cloud.run.v2.IUpdateServiceRequest = {
// name format: projects/<projectNumber>/locations/<location>/services/<serviceId>
service: { name },
updateMask: { paths: [] },
}
const [operation] = await client.updateService(request)
const [response] = await operation.promise()
console.log(response)
Error:
Error: 13 INTERNAL: Internal error encountered.
at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/src/call.ts:82:17)
at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/src/client.ts:360:55)
at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/src/client-interceptors.ts:458:34)
at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/src/client-interceptors.ts:419:48)