Skip to content

Commit

Permalink
fix: when user doesn't specify cluster_name, then the cluster won't…
Browse files Browse the repository at this point in the history
… start

This was fixed by assigning the object's key as the `cluster_name`.
  • Loading branch information
caerulescens committed Sep 4, 2024
1 parent a44f146 commit 3e26bac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "minikube_cluster" {
binary_mirror = each.value.binary_mirror
cache_images = each.value.cache_images
cert_expiration = each.value.cert_expiration
cluster_name = each.value.cluster_name
cluster_name = each.key
cni = each.value.cni
container_runtime = each.value.container_runtime
cpus = each.value.cpus
Expand Down
1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ variable "minikube_clusters" {
binary_mirror = optional(string)
cache_images = optional(bool)
cert_expiration = optional(number)
cluster_name = optional(string)
cni = optional(string)
container_runtime = optional(string)
cpus = optional(number)
Expand Down

0 comments on commit 3e26bac

Please sign in to comment.