Skip to content

Commit a04c947

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support routeUpdateWaitTime field for Deployment Strategies
Users can specify a non trivial amount of wait time after each route update for deployment strategies. PiperOrigin-RevId: 546929254
1 parent f1f8ba4 commit a04c947

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

google/cloud/deploy/v1/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ load(
349349

350350
csharp_proto_library(
351351
name = "deploy_csharp_proto",
352-
extra_opts = [],
352+
extra_opts = [""],
353353
deps = [":deploy_proto"],
354354
)
355355

google/cloud/deploy/v1/cloud_deploy.proto

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,12 @@ message KubernetesConfig {
527527
// Required. Name of the Kubernetes Deployment whose traffic is managed by
528528
// the specified HTTPRoute and Service.
529529
string deployment = 3 [(google.api.field_behavior) = REQUIRED];
530+
531+
// Optional. The time to wait for route updates to propagate. The maximum
532+
// configurable time is 3 hours, in seconds format. If unspecified, there is
533+
// no wait time.
534+
google.protobuf.Duration route_update_wait_time = 4
535+
[(google.api.field_behavior) = OPTIONAL];
530536
}
531537

532538
// Information about the Kubernetes Service networking configuration.
@@ -867,17 +873,17 @@ message Target {
867873
// Destination to which the Skaffold configuration is applied during a
868874
// rollout.
869875
oneof deployment_target {
870-
// Information specifying a GKE Cluster.
871-
GkeCluster gke = 15;
876+
// Optional. Information specifying a GKE Cluster.
877+
GkeCluster gke = 15 [(google.api.field_behavior) = OPTIONAL];
872878

873-
// Information specifying an Anthos Cluster.
874-
AnthosCluster anthos_cluster = 17;
879+
// Optional. Information specifying an Anthos Cluster.
880+
AnthosCluster anthos_cluster = 17 [(google.api.field_behavior) = OPTIONAL];
875881

876-
// Information specifying a Cloud Run deployment target.
877-
CloudRunLocation run = 18;
882+
// Optional. Information specifying a Cloud Run deployment target.
883+
CloudRunLocation run = 18 [(google.api.field_behavior) = OPTIONAL];
878884

879-
// Information specifying a multiTarget.
880-
MultiTarget multi_target = 19;
885+
// Optional. Information specifying a multiTarget.
886+
MultiTarget multi_target = 19 [(google.api.field_behavior) = OPTIONAL];
881887
}
882888

883889
// Optional. This checksum is computed by the server based on the value of

google/cloud/deploy/v1/log_enums.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ enum Type {
2929
// A Pub/Sub notification failed to be sent.
3030
TYPE_PUBSUB_NOTIFICATION_FAILURE = 1;
3131

32+
// Resource state changed.
33+
TYPE_RESOURCE_STATE_CHANGE = 3;
34+
35+
// A process aborted.
36+
TYPE_PROCESS_ABORTED = 4;
37+
3238
// Deprecated: This field is never used. Use release_render log type instead.
3339
TYPE_RENDER_STATUES_CHANGE = 2 [deprecated = true];
3440
}

0 commit comments

Comments
 (0)