Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #48 from veggiemonk/bug-tf
Browse files Browse the repository at this point in the history
Evaluation of latest_node_version outside of ternary operation (unknown values during apply)
  • Loading branch information
robmorgan authored Jun 21, 2019
2 parents 7b8d4c1 + e626944 commit 443a2c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gke-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ resource "google_container_cluster" "cluster" {
# ---------------------------------------------------------------------------------------------------------------------

locals {
kubernetes_version = var.kubernetes_version != "latest" ? var.kubernetes_version : data.google_container_engine_versions.location.latest_node_version
latest_version = data.google_container_engine_versions.location.latest_node_version
kubernetes_version = var.kubernetes_version != "latest" ? var.kubernetes_version : local.latest_version
network_project = var.network_project != "" ? var.network_project : var.project
}

Expand Down

0 comments on commit 443a2c0

Please sign in to comment.