Skip to content

Commit

Permalink
Allows empty value and sets default value for maxRetries of cloud run…
Browse files Browse the repository at this point in the history
… job (GoogleCloudPlatform#7425)

* send empty value

* add client side default

* remove defaul_from_api
  • Loading branch information
yanweiguo authored and Madhura Phadnis committed Apr 12, 2023
1 parent 1190de6 commit fbbcad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mmv1/products/cloudrunv2/Job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ properties:
name: "maxRetries"
description: |-
Number of retries allowed per Task, before marking this Task failed.
default_from_api: true
send_empty_value: true
default_value: 3
- !ruby/object:Api::Type::String
name: "observedGeneration"
output: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ resource "google_cloud_run_v2_job" "default" {
connector = google_vpc_access_connector.connector.id
egress = "ALL_TRAFFIC"
}
max_retries = 2
max_retries = 0
}
}
Expand Down

0 comments on commit fbbcad4

Please sign in to comment.