Skip to content

Commit

Permalink
Add empty map for k3s_install_env_vars by default
Browse files Browse the repository at this point in the history
Because we can iterate over null, I prefer to have an empty map as
default value for k3s_install_env_vars
  • Loading branch information
xunleii committed May 17, 2023
1 parent 2e1a2d1 commit 15fc0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 15fc0c8

Please sign in to comment.