Skip to content

Commit

Permalink
feat: Add maxAttempts to retry policy for KMS gRPC service config
Browse files Browse the repository at this point in the history
feat: Add Bazel exports_files entry for KMS gRPC service config

PiperOrigin-RevId: 362932396
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 15, 2021
1 parent 1305ca4 commit 81e3025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/cloud/kms/v1/BUILD.bazel
Expand Up @@ -3,6 +3,9 @@ load("@rules_proto//proto:defs.bzl", "proto_library")
# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

# Reading the default service config is useful for custom gRPC clients.
exports_files(["cloudkms_grpc_service_config.json"])

##############################################################################
# Common
##############################################################################
Expand Down
1 change: 1 addition & 0 deletions google/cloud/kms/v1/cloudkms_grpc_service_config.json
Expand Up @@ -117,6 +117,7 @@
"initialBackoff": "0.100s",
"maxBackoff": "60s",
"backoffMultiplier": 1.3,
"maxAttempts": 5,
"retryableStatusCodes": [
"UNAVAILABLE",
"DEADLINE_EXCEEDED"
Expand Down

0 comments on commit 81e3025

Please sign in to comment.