-
Notifications
You must be signed in to change notification settings - Fork 82
fix: add missing dependencies #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,4 +32,6 @@ resource "google_project_iam_member" "gke_admin" { | |
| # https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_key#private_key | ||
| resource "google_service_account_key" "gke_cluster_access_key" { | ||
| service_account_id = google_service_account.gke_cluster_access.name | ||
|
|
||
| depends_on = [google_project_iam_member.gke_admin] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed to ensure the service account roles aren't destroy when the keys are still used as otherwise cleanup operations might fail. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| output "loadbalancer" { | ||
| value = google_compute_address.public_ingress.address | ||
|
|
||
| depends_on = [helm_release.ingress_nginx] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The loadbalancer only works when ingress-nginx is provisioned. |
||
| } | ||
|
|
||
| output "project_id" { | ||
|
|
@@ -23,6 +25,10 @@ output "credentials" { | |
| sensitive = true | ||
| } | ||
|
|
||
| output "cluster_name" { | ||
| value = google_container_cluster.gke.name | ||
| } | ||
|
|
||
| output "gar_repository_id" { | ||
| value = var.gar_repository_id == null ? "" : google_artifact_registry_repository.repo[0].id | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to ensure the cluster isn't destroyed before the cluster resource definition is to allow Humanitec to properly cleanup all apps depending on this cluster.