Skip to content

Commit

Permalink
feat: Add deploy parameters for cloud deploy
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 542243817
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 21, 2023
1 parent 06f7999 commit 1ef8cc2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions google/cloud/deploy/v1/cloud_deploy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,22 @@ message Stage {

// Optional. The strategy to use for a `Rollout` to this stage.
Strategy strategy = 5 [(google.api.field_behavior) = OPTIONAL];

// Optional. The deploy parameters to use for the target in this stage.
repeated DeployParameters deploy_parameters = 6
[(google.api.field_behavior) = OPTIONAL];
}

// DeployParameters contains deploy parameters information.
message DeployParameters {
// Required. Values are deploy parameters in key-value pairs.
map<string, string> values = 1 [(google.api.field_behavior) = REQUIRED];

// Optional. Deploy parameters are applied to targets with match labels.
// If unspecified, deploy parameters are applied to all targets (including
// child targets of a multi-target).
map<string, string> match_target_labels = 2
[(google.api.field_behavior) = OPTIONAL];
}

// Strategy contains deployment strategy information.
Expand Down Expand Up @@ -877,6 +893,10 @@ message Target {
// When no configurations are specified, execution will use the default
// specified in `DefaultPool`.
repeated ExecutionConfig execution_configs = 16;

// Optional. The deploy parameters to use for this target.
map<string, string> deploy_parameters = 20
[(google.api.field_behavior) = OPTIONAL];
}

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

// Output only. Information around the state of the Release.
ReleaseCondition condition = 24 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. The deploy parameters to use for all targets in this release.
map<string, string> deploy_parameters = 25
[(google.api.field_behavior) = OPTIONAL];
}

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

0 comments on commit 1ef8cc2

Please sign in to comment.