-
Notifications
You must be signed in to change notification settings - Fork 13
/
main.tf
49 lines (43 loc) · 912 Bytes
/
main.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
terraform {
required_version = ">= 1.3"
required_providers {
helm = {
source = "hashicorp/helm"
version = ">= 2.12"
}
}
}
variable "enable_argocd" {
type = bool
default = true
}
variable "kubeflow_values" {
description = "Extra values"
type = list(string)
default = []
}
resource "helm_release" "argo_cd" {
count = var.enable_argocd ? 1 : 0
name = "argocd"
namespace = "argocd"
chart = "argo-cd"
repository = "https://argoproj.github.io/argo-helm"
version = "6.4.1"
create_namespace = true
values = [
<<EOF
dex:
enabled: false
EOF
]
}
resource "helm_release" "kubeflow" {
name = "kubeflow"
namespace = "argocd"
chart = "${path.module}/helm/kubeflow"
wait_for_jobs = true
values = var.kubeflow_values
depends_on = [
helm_release.argo_cd
]
}