diff --git a/examples/hcloud-k3s/main.tf b/examples/hcloud-k3s/main.tf index 21a8331..424e783 100644 --- a/examples/hcloud-k3s/main.tf +++ b/examples/hcloud-k3s/main.tf @@ -1,5 +1,3 @@ -provider "hcloud" {} - data "hcloud_image" "ubuntu" { name = "ubuntu-20.04" } diff --git a/variables.tf b/variables.tf index 09c586b..cca6c3e 100644 --- a/variables.tf +++ b/variables.tf @@ -12,7 +12,7 @@ variable "k3s_version" { variable "k3s_install_env_vars" { description = "map of enviroment variables that are passed to the k3s installation script (see https://docs.k3s.io/reference/env-variables)" type = map(string) - default = null + default = {} validation { condition = !can(var.k3s_install_env_vars["INSTALL_K3S_VERSION"])