-
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
fix: add missing dependencies #7
Conversation
| module "res_defs" { | ||
| source = "../htc_res_defs" | ||
| k8s_cluster_name = var.gke_cluster_name | ||
| k8s_cluster_name = module.k8s.cluster_name |
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.
| 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] |
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 service account roles aren't destroy when the keys are still used as otherwise cleanup operations might fail.
| output "loadbalancer" { | ||
| value = google_compute_address.public_ingress.address | ||
|
|
||
| depends_on = [helm_release.ingress_nginx] |
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.
The loadbalancer only works when ingress-nginx is provisioned.
TobiasBabin
left a comment
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.
Successfully tested round trip (terraform apply/destroy) using the new dependencies.
Add a few missing dependencies.
More comments below.