forked from yevgenis-shapiro/terraform-terrakube-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
argocd.tf
34 lines (29 loc) · 791 Bytes
/
argocd.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
###-argocd
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
namespace = "argocd"
version = "4.10.0"
create_namespace = true
timeout = 300
values = [
file("config/argo-values.yaml")
]
depends_on = [kind_cluster.default]
}
resource "null_resource" "wait_for_argocd" {
triggers = {
key = uuid()
}
provisioner "local-exec" {
command = <<EOF
printf "\nWaiting for the argocd controller will be installed...\n"
kubectl wait --namespace ${helm_release.argocd.namespace} \
--for=condition=ready pod \
--selector=app.kubernetes.io/component=server \
--timeout=60s
EOF
}
depends_on = [helm_release.argocd]
}