Skip to content

Commit dd14674

Browse files
committed
feat: add time delay for cilium setup in manifests
This commit introduces a time delay for the cilium setup in both the `manifest_hcloud_ccm.tf` and `manifest_cilium.tf` files. This delay helps ensure the cilium network is properly settled down before proceeding with the rest of the setup.
1 parent d9fddde commit dd14674

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

manifest_cilium.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ resource "time_sleep" "talos_settle_down" {
6666
create_duration = var.control_plane_count > 0 ? "1m" : "0s"
6767
depends_on = [data.talos_cluster_kubeconfig.this]
6868
}
69+
70+
resource "time_sleep" "cilium_settle_down" {
71+
create_duration = var.control_plane_count > 0 ? "1m" : "0s"
72+
depends_on = [kubectl_manifest.apply_cilium]
73+
}
74+

manifest_hcloud_ccm.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ data "kubectl_file_documents" "hcloud_ccm" {
2424
resource "kubectl_manifest" "apply_hcloud_ccm" {
2525
for_each = var.control_plane_count > 0 ? data.kubectl_file_documents.hcloud_ccm.manifests : {}
2626
yaml_body = each.value
27-
depends_on = [data.helm_template.cilium]
27+
depends_on = [time_sleep.cilium_settle_down]
2828
}

0 commit comments

Comments
 (0)