Skip to content

Commit 295a170

Browse files
Google APIscopybara-github
authored andcommitted
feat: support GPU zonal redundancy setting in Cloud Run services
PiperOrigin-RevId: 758382964
1 parent b4fd697 commit 295a170

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

google/cloud/run/v2/condition.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ message Condition {
105105

106106
// An internal error occurred. Further information may be in the message.
107107
INTERNAL = 16;
108+
109+
// User-provided VPC network was not found.
110+
VPC_NETWORK_NOT_FOUND = 17;
108111
}
109112

110113
// Reasons specific to Revision resource.

google/cloud/run/v2/execution_template.proto

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ message ExecutionTemplate {
5454
// rules.
5555
map<string, string> annotations = 2;
5656

57-
// Specifies the maximum desired number of tasks the execution should run at
58-
// given time. Must be <= task_count.
59-
// When the job is run, if this field is 0 or unset, the maximum possible
60-
// value will be used for that execution.
61-
// The actual number of tasks running in steady state will be less than this
62-
// number when there are fewer tasks waiting to be completed remaining,
63-
// i.e. when the work left to do is less than max parallelism.
64-
int32 parallelism = 3;
57+
// Optional. Specifies the maximum desired number of tasks the execution
58+
// should run at given time. When the job is run, if this field is 0 or unset,
59+
// the maximum possible value will be used for that execution. The actual
60+
// number of tasks running in steady state will be less than this number when
61+
// there are fewer tasks waiting to be completed remaining, i.e. when the work
62+
// left to do is less than max parallelism.
63+
int32 parallelism = 3 [(google.api.field_behavior) = OPTIONAL];
6564

6665
// Specifies the desired number of tasks the execution should run.
6766
// Setting to 1 means that parallelism is limited to 1 and the success of

google/cloud/run/v2/revision.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,16 @@ message Revision {
306306
// The node selector for the revision.
307307
NodeSelector node_selector = 40;
308308

309+
// Optional. Output only. True if GPU zonal redundancy is disabled on this
310+
// revision.
311+
optional bool gpu_zonal_redundancy_disabled = 48 [
312+
(google.api.field_behavior) = OPTIONAL,
313+
(google.api.field_behavior) = OUTPUT_ONLY
314+
];
315+
316+
// Output only. Email address of the authenticated creator.
317+
string creator = 49 [(google.api.field_behavior) = OUTPUT_ONLY];
318+
309319
// Output only. A system-generated fingerprint for this version of the
310320
// resource. May be used to detect modification conflict during updates.
311321
string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];

google/cloud/run/v2/revision_template.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,8 @@ message RevisionTemplate {
124124

125125
// Optional. The node selector for the revision template.
126126
NodeSelector node_selector = 21 [(google.api.field_behavior) = OPTIONAL];
127+
128+
// Optional. True if GPU zonal redundancy is disabled on this revision.
129+
optional bool gpu_zonal_redundancy_disabled = 24
130+
[(google.api.field_behavior) = OPTIONAL];
127131
}

0 commit comments

Comments
 (0)