Skip to content

Commit

Permalink
rename variable to hcloud_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 23, 2024
1 parent e7f89d9 commit 263a12f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion main-infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ provider "hcloud" {
}

locals {
labels = merge(var.labels, {
labels = merge(var.hcloud_labels, {
env = var.name
})
}
Expand Down
11 changes: 5 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ variable "worker_count" {
default = 1
}

variable "labels" {
description = "Additional labels that are added to all Hetzner Cloud resources"
type = map(string)
default = {}
}

# Hetzner Cloud
variable "hcloud_token" {
description = "Hetzner Cloud API token"
Expand All @@ -53,6 +47,11 @@ variable "hcloud_image" {
type = string
default = "ubuntu-24.04"
}
variable "hcloud_labels" {
description = "Additional labels that are added to all Hetzner Cloud resources"
type = map(string)
default = {}
}

# K3S
variable "k3s_channel" {
Expand Down

0 comments on commit 263a12f

Please sign in to comment.