Skip to content

Commit

Permalink
Merge pull request #288 from kbst/test-gke-version
Browse files Browse the repository at this point in the history
Use gke version data source for tests
  • Loading branch information
pst authored Jul 23, 2022
2 parents a2c5bc0 + 6e251a7 commit 063e2d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/gke_zero_cluster.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
data "google_container_engine_versions" "gke_zero" {
project = "terraform-kubestack-testing"
location = "europe-west1"
version_prefix = "1."
}

module "gke_zero" {
providers = {
kubernetes = kubernetes.gke_zero
Expand All @@ -12,7 +18,7 @@ module "gke_zero" {
name_prefix = "kbstacctest"
base_domain = "infra.serverwolken.de"

cluster_min_master_version = "1.19"
cluster_min_master_version = data.google_container_engine_versions.gke_zero.default_cluster_version

cluster_machine_type = "e2-medium"
cluster_min_node_count = 1
Expand Down

0 comments on commit 063e2d8

Please sign in to comment.