Skip to content

Commit dd8b0ec

Browse files
feat: [deploy] Add deploy parameters for cloud deploy (#4367)
* feat: Add deploy parameters for cloud deploy PiperOrigin-RevId: 542243817 Source-Link: googleapis/googleapis@1ef8cc2 Source-Link: googleapis/googleapis-gen@a021b9b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiYTAyMWI5YjVhOGM4MzY1NjUzZmNhZmJiNmU5OGE2NDRiYTFjNDVlNCJ9 * 🦉 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 1cb66bd commit dd8b0ec

4 files changed

Lines changed: 645 additions & 1 deletion

File tree

packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,22 @@ message Stage {
415415

416416
// Optional. The strategy to use for a `Rollout` to this stage.
417417
Strategy strategy = 5 [(google.api.field_behavior) = OPTIONAL];
418+
419+
// Optional. The deploy parameters to use for the target in this stage.
420+
repeated DeployParameters deploy_parameters = 6
421+
[(google.api.field_behavior) = OPTIONAL];
422+
}
423+
424+
// DeployParameters contains deploy parameters information.
425+
message DeployParameters {
426+
// Required. Values are deploy parameters in key-value pairs.
427+
map<string, string> values = 1 [(google.api.field_behavior) = REQUIRED];
428+
429+
// Optional. Deploy parameters are applied to targets with match labels.
430+
// If unspecified, deploy parameters are applied to all targets (including
431+
// child targets of a multi-target).
432+
map<string, string> match_target_labels = 2
433+
[(google.api.field_behavior) = OPTIONAL];
418434
}
419435

420436
// Strategy contains deployment strategy information.
@@ -877,6 +893,10 @@ message Target {
877893
// When no configurations are specified, execution will use the default
878894
// specified in `DefaultPool`.
879895
repeated ExecutionConfig execution_configs = 16;
896+
897+
// Optional. The deploy parameters to use for this target.
898+
map<string, string> deploy_parameters = 20
899+
[(google.api.field_behavior) = OPTIONAL];
880900
}
881901

882902
// Configuration of the environment to use when calling Skaffold.
@@ -1412,6 +1432,10 @@ message Release {
14121432

14131433
// Output only. Information around the state of the Release.
14141434
ReleaseCondition condition = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
1435+
1436+
// Optional. The deploy parameters to use for all targets in this release.
1437+
map<string, string> deploy_parameters = 25
1438+
[(google.api.field_behavior) = OPTIONAL];
14151439
}
14161440

14171441
// Description of an a image to use during Skaffold rendering.

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

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

0 commit comments

Comments
 (0)