Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kube-hetzner/terraform-hcloud-kub…
Browse files Browse the repository at this point in the history
…e-hetzner
  • Loading branch information
mysticaltech committed Oct 7, 2022
2 parents 70bf636 + 1c42c95 commit 1a6e745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "agents" {
ssh_private_key = var.ssh_private_key
ssh_additional_public_keys = var.ssh_additional_public_keys
firewall_ids = [hcloud_firewall.k3s.id]
placement_group_id = var.placement_group_disable ? 0 : element(hcloud_placement_group.agent.*.id, ceil(each.value.index / 10))
placement_group_id = var.placement_group_disable ? 0 : hcloud_placement_group.agent[floor(each.value.index / 10)].id
location = each.value.location
server_type = each.value.server_type
ipv4_subnet_id = hcloud_network_subnet.agent[[for i, v in var.agent_nodepools : i if v.name == each.value.nodepool_name][0]].id
Expand Down
2 changes: 1 addition & 1 deletion control_planes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "control_planes" {
ssh_private_key = var.ssh_private_key
ssh_additional_public_keys = var.ssh_additional_public_keys
firewall_ids = [hcloud_firewall.k3s.id]
placement_group_id = var.placement_group_disable ? 0 : element(hcloud_placement_group.control_plane.*.id, ceil(each.value.index / 10))
placement_group_id = var.placement_group_disable ? 0 : hcloud_placement_group.control_plane[floor(each.value.index / 10)].id
location = each.value.location
server_type = each.value.server_type
ipv4_subnet_id = hcloud_network_subnet.control_plane[[for i, v in var.control_plane_nodepools : i if v.name == each.value.nodepool_name][0]].id
Expand Down

0 comments on commit 1a6e745

Please sign in to comment.