Skip to content

Commit 4c2442f

Browse files
feat: [deploy] added support routeUpdateWaitTime field for Deployment Strategies (#4408)
* 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 Source-Link: googleapis/googleapis@a04c947 Source-Link: googleapis/googleapis-gen@7863319 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiNzg2MzMxOWRlMTkyZjA5MTk3NmNkMThlMjU5NGNkN2RmYmZlNzcyNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 198cb4b commit 4c2442f

5 files changed

Lines changed: 135 additions & 12 deletions

File tree

packages/google-cloud-deploy/protos/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

packages/google-cloud-deploy/protos/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
}

packages/google-cloud-deploy/protos/protos.d.ts

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-deploy/protos/protos.js

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-deploy/protos/protos.json

Lines changed: 25 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)