Skip to content

Commit a765812

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support for disabling Pod overprovisioning in the progressive deployment strategy configuration for a Kubernetes Target
PiperOrigin-RevId: 537857136
1 parent 3c7c76f commit a765812

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

google/cloud/deploy/v1/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ java_gapic_library(
8585
rest_numeric_enums = True,
8686
service_yaml = "clouddeploy_v1.yaml",
8787
test_deps = [
88-
":deploy_java_grpc",
8988
"//google/cloud/location:location_java_grpc",
9089
"//google/iam/v1:iam_java_grpc",
90+
":deploy_java_grpc",
9191
],
9292
transport = "grpc+rest",
9393
deps = [
@@ -238,7 +238,9 @@ php_gapic_library(
238238
rest_numeric_enums = True,
239239
service_yaml = "clouddeploy_v1.yaml",
240240
transport = "grpc+rest",
241-
deps = [":deploy_php_proto"],
241+
deps = [
242+
":deploy_php_proto",
243+
],
242244
)
243245

244246
# Open Source Packages
@@ -347,6 +349,7 @@ load(
347349

348350
csharp_proto_library(
349351
name = "deploy_csharp_proto",
352+
extra_opts = [],
350353
deps = [":deploy_proto"],
351354
)
352355

google/cloud/deploy/v1/cloud_deploy.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,13 @@ message KubernetesConfig {
521521
// Required. Name of the Kubernetes Deployment whose traffic is managed by
522522
// the specified Service.
523523
string deployment = 2 [(google.api.field_behavior) = REQUIRED];
524+
525+
// Optional. Whether to disable Pod overprovisioning. If Pod
526+
// overprovisioning is disabled then Cloud Deploy will limit the number of
527+
// total Pods used for the deployment strategy to the number of Pods the
528+
// Deployment has on the cluster.
529+
bool disable_pod_overprovisioning = 3
530+
[(google.api.field_behavior) = OPTIONAL];
524531
}
525532

526533
// The service definition configuration.
@@ -1175,7 +1182,7 @@ message DeleteTargetRequest {
11751182
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
11761183

11771184
// Optional. If set to true, then deleting an already deleted or non-existing
1178-
// DeliveryPipeline will succeed.
1185+
// `Target` will succeed.
11791186
bool allow_missing = 3 [(google.api.field_behavior) = OPTIONAL];
11801187

11811188
// Optional. If set, validate the request and preview the review, but do not

0 commit comments

Comments
 (0)