diff --git a/modules/acm/README.md b/modules/acm/README.md index 769bcf97b..de785bccd 100644 --- a/modules/acm/README.md +++ b/modules/acm/README.md @@ -74,6 +74,7 @@ data "google_client_config" "default" {} | enable\_policy\_controller | Whether to enable the ACM Policy Controller on the cluster | `bool` | `true` | no | | enable\_referential\_rules | Enables referential constraints which reference another object in it definition and are therefore eventually consistent. | `bool` | `true` | no | | hierarchy\_controller | Configurations for Hierarchy Controller. See [Hierarchy Controller docs](https://cloud.google.com/anthos-config-management/docs/how-to/installing-hierarchy-controller) for more details | `map(any)` | `null` | no | +| https\_proxy | URL for the HTTPS proxy to be used when communicating with the Git repo. | `string` | `null` | no | | install\_template\_library | Whether to install the default Policy Controller template library | `bool` | `true` | no | | location | GCP location used to reach cluster. | `string` | n/a | yes | | policy\_dir | Subfolder containing configs in ACM Git repo. If un-set, uses Config Management default. | `string` | `""` | no | diff --git a/modules/acm/feature.tf b/modules/acm/feature.tf index bd928551d..3bb977388 100644 --- a/modules/acm/feature.tf +++ b/modules/acm/feature.tf @@ -47,6 +47,7 @@ resource "google_gke_hub_feature_membership" "main" { sync_branch = var.sync_branch != "" ? var.sync_branch : null sync_rev = var.sync_revision != "" ? var.sync_revision : null secret_type = var.secret_type + https_proxy = var.https_proxy } } diff --git a/modules/acm/variables.tf b/modules/acm/variables.tf index c225a45a7..f9bf8a41f 100644 --- a/modules/acm/variables.tf +++ b/modules/acm/variables.tf @@ -90,6 +90,12 @@ variable "secret_type" { default = "ssh" } +variable "https_proxy" { + description = "URL for the HTTPS proxy to be used when communicating with the Git repo." + type = string + default = null +} + variable "create_ssh_key" { description = "Controls whether a key will be generated for Git authentication" type = bool