Skip to content

Conversation

@johanneswuerbach
Copy link
Contributor

Add a few missing dependencies.

More comments below.

@johanneswuerbach johanneswuerbach requested a review from a team October 12, 2023 07:52
module "res_defs" {
source = "../htc_res_defs"
k8s_cluster_name = var.gke_cluster_name
k8s_cluster_name = module.k8s.cluster_name
Copy link
Contributor Author

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]
Copy link
Contributor Author

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]
Copy link
Contributor Author

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.

Copy link
Contributor

@TobiasBabin TobiasBabin left a 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.

@johanneswuerbach johanneswuerbach merged commit 234fc27 into humanitec-architecture:main Oct 12, 2023
@johanneswuerbach johanneswuerbach deleted the deps branch October 12, 2023 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants