Skip to content

Commit af2b4b7

Browse files
authored
feat: add option to configure helm timeout (#791)
1 parent 1324559 commit af2b4b7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

anthos-attached-clusters/modules/attached-install-manifest/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module "attached_install_manifest" {
2020
| attached\_cluster\_fleet\_project | GCP fleet project ID where the cluster will be attached | `string` | n/a | yes |
2121
| attached\_cluster\_name | Name for the attached cluster resource | `string` | n/a | yes |
2222
| gcp\_location | GCP location to create the attached resource in | `string` | `"us-west1"` | no |
23+
| helm\_timeout | (Optional) Time in seconds to wait for Helm operations to complete. | `number` | `null` | no |
2324
| platform\_version | Platform version of the attached cluster resource | `string` | n/a | yes |
2425
| temp\_dir | Directory name to temporarily write out the helm chart for bootstrapping the attach process | `string` | `""` | no |
2526

anthos-attached-clusters/modules/attached-install-manifest/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ resource "helm_release" "local" {
5252
name = local.helm_chart_name
5353
chart = local.helm_chart_dir
5454
depends_on = [local_file.bootstrap_helm_chart, local_file.bootstrap_manifests]
55+
timeout = var.helm_timeout
5556
}

anthos-attached-clusters/modules/attached-install-manifest/variables.tf

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2024 Google LLC
2+
* Copyright 2024-2025 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,3 +40,9 @@ variable "attached_cluster_name" {
4040
description = "Name for the attached cluster resource"
4141
type = string
4242
}
43+
44+
variable "helm_timeout" {
45+
description = "(Optional) Time in seconds to wait for Helm operations to complete."
46+
type = number
47+
default = null
48+
}

0 commit comments

Comments
 (0)