diff --git a/main-setup.tf b/main-setup.tf index f074a43..dcb57eb 100644 --- a/main-setup.tf +++ b/main-setup.tf @@ -180,6 +180,11 @@ resource "helm_release" "hcloud_cloud_controller_manager" { value = tostring(var.use_cloud_routes) type = "string" } + + set { + name = "env.HCLOUD_ENDPOINT.value" + value = var.hccm_hcloud_endpoint + } } resource "helm_release" "hcloud_csi_driver" { diff --git a/variables.tf b/variables.tf index 45d89f2..951ff18 100644 --- a/variables.tf +++ b/variables.tf @@ -53,6 +53,13 @@ variable "hcloud_labels" { default = {} } +# hcloud-cloud-controller-manager +variable "hccm_hcloud_endpoint" { + description = "Sets the HCLOUD_ENDPOINT environment variable in the hcloud-cloud-controller-manager helm chart" + type = string + default = "https://api.hetzner.cloud/v1" +} + # K3S variable "k3s_channel" { description = "k3S channel used for the environment"