Skip to content

Commit

Permalink
lookup floating ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu committed May 20, 2021
1 parent fbed65d commit 1f73486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/k3s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ locals {
valid_cni = ["weave", "calico", "cilium", "flannel", "default"]
validate_cni = index(local.valid_cni, local.cni)
loadbalancer = var.loadbalancer
floating_ip = try(var.floating_ip.ip_address, "")
floating_ip = lookup(var.floating_ip, "ip_address", "")

# Set overlay interface from map, but optionally allow override
overlay_interface = var.overlay_interface == "" ? lookup(var.cni_to_overlay_interface_map, local.cni, "cni0") : var.overlay_interface
Expand Down

0 comments on commit 1f73486

Please sign in to comment.