Skip to content

Commit

Permalink
Merge pull request #57 from cncf-tags/fix/worker-plan
Browse files Browse the repository at this point in the history
Fix setting plan for worker nodes
  • Loading branch information
rossf7 committed Feb 14, 2024
2 parents 5f3cf07 + 598189e commit e9f3d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/equinix-metal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "equinix_metal_device" "control_plane" {
resource "equinix_metal_device" "worker" {
for_each = var.worker_nodes
hostname = "${var.cluster_name}-worker-${each.key}"
plan = each.plan
plan = each.value.plan
metro = var.device_metro
operating_system = var.device_os
billing_cycle = var.billing_cycle
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/equinix-metal/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ variable "ssh_private_key_path" {
}

variable "worker_nodes" {
description = "List of worker node names"
description = "Map of worker nodes and config"
type = map(object({
labels = map(string)
plan = string
Expand Down

0 comments on commit e9f3d85

Please sign in to comment.