This commit is contained in:
Marcel Richter
2024-03-18 13:48:19 +01:00
parent 69f3ab4218
commit 239f3f2cd3
2 changed files with 10 additions and 8 deletions

View File

@@ -1,8 +1,10 @@
# The cluster should be healthy after cilium is installed
data "talos_cluster_health" "this" {
depends_on = [data.helm_template.cilium]
client_configuration = data.talos_client_configuration.this.client_configuration
endpoints = local.control_plane_public_ipv4_list
control_plane_nodes = local.control_plane_private_ipv4_list
worker_nodes = local.worker_private_ipv4_list
}
# It's actually not helpful because of https://github.com/siderolabs/talos/issues/7967#issuecomment-2003751512
#data "talos_cluster_health" "this" {
# depends_on = [data.helm_template.cilium]
# client_configuration = data.talos_client_configuration.this.client_configuration
# endpoints = local.control_plane_public_ipv4_list
# control_plane_nodes = local.control_plane_private_ipv4_list
# worker_nodes = local.worker_private_ipv4_list
#}

View File

@@ -24,5 +24,5 @@ data "kubectl_file_documents" "hcloud_ccm" {
resource "kubectl_manifest" "apply_hcloud_ccm" {
for_each = data.kubectl_file_documents.hcloud_ccm.manifests
yaml_body = each.value
depends_on = [data.talos_cluster_health.this]
depends_on = [data.helm_template.cilium]
}