Skip to content

Commit 06375c4

Browse files
author
Lukas Metzner
authored
feat: allow setting HCLOUD_ENDPOINT env for hccm (#83)
Allow setting the HCLOUD_ENDPOINT environment variable via Terraform variables for the hcloud-cloud-controller-manager.
1 parent b9ac34a commit 06375c4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

main-setup.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ resource "helm_release" "hcloud_cloud_controller_manager" {
180180
value = tostring(var.use_cloud_routes)
181181
type = "string"
182182
}
183+
184+
set {
185+
name = "env.HCLOUD_ENDPOINT.value"
186+
value = var.hccm_hcloud_endpoint
187+
}
183188
}
184189

185190
resource "helm_release" "hcloud_csi_driver" {

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ variable "hcloud_labels" {
5353
default = {}
5454
}
5555

56+
# hcloud-cloud-controller-manager
57+
variable "hccm_hcloud_endpoint" {
58+
description = "Sets the HCLOUD_ENDPOINT environment variable in the hcloud-cloud-controller-manager helm chart"
59+
type = string
60+
default = "https://api.hetzner.cloud/v1"
61+
}
62+
5663
# K3S
5764
variable "k3s_channel" {
5865
description = "k3S channel used for the environment"

0 commit comments

Comments
 (0)