Skip to content

Commit

Permalink
🐛 Fix GKE cloud test
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Nov 8, 2023
1 parent f9421b5 commit 4b4526f
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 173 deletions.
1 change: 1 addition & 0 deletions .github/terraform/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ resource "google_container_cluster" "cluster" {
resource "google_container_node_pool" "node_pool" {
name = "mondoo-operator-pool-${random_string.suffix.result}"
location = "us-central1-a"
project = var.project_id
cluster = google_container_cluster.cluster.id
node_count = 1

Expand Down
20 changes: 20 additions & 0 deletions .github/terraform/gke/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@ resource "local_file" "kubeconfig" {
depends_on = [google_container_cluster.cluster]
content = module.gke_auth.kubeconfig_raw
filename = "kubeconfig"
}

output "cluster_name" {
value = google_container_cluster.cluster.name
}

output "cluster_location" {
value = google_container_cluster.cluster.location
}

output "cluster_project" {
value = google_container_cluster.cluster.project
}

output "cluster_endpoint" {
value = google_container_cluster.cluster.endpoint
}

output "cluster_ca_cert" {
value = nonsensitive(module.gke_auth.cluster_ca_certificate)
}
Loading

0 comments on commit 4b4526f

Please sign in to comment.