We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7065525 commit fd0a4c8Copy full SHA for fd0a4c8
Terraform/3-main.tf
@@ -43,9 +43,12 @@ resource "helm_release" "argocd" {
43
}
44
45
# Wait for ArgoCD to be ready before creating applications
46
-resource "time_sleep" "wait_for_argocd" {
+resource "null_resource" "wait_for_argocd" {
47
+ provisioner "local-exec" {
48
+ command = "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=argocd-server -n argocd --timeout=300s"
49
+ }
50
+
51
depends_on = [helm_release.argocd]
- create_duration = "60s"
52
53
54
# Create ArgoCD Application automatically
@@ -77,5 +80,5 @@ resource "kubernetes_manifest" "solar_system_app" {
77
80
78
81
79
82
- depends_on = [time_sleep.wait_for_argocd]
83
+ depends_on = [null_resource.wait_for_argocd]
84
0 commit comments