-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtensorboard.tf
27 lines (22 loc) · 1.01 KB
/
tensorboard.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
data "kustomization_build" "tensorboard-ui" {
path = "github.com/kubeflow/manifests.git/apps/tensorboard/tensorboards-web-app/upstream/overlays/istio?ref=${var.kf_version}"
}
resource "kubectl_manifest" "tensorboard-ui" {
for_each = var.deploy_tensorboard ? data.kustomization_build.tensorboard-ui.ids : []
yaml_body = yamlencode(jsondecode(data.kustomization_build.tensorboard-ui.manifests[each.value]))
wait = true
depends_on = [
kustomization_resource.istio-resources,
]
}
data "kustomization_build" "tensorboard-controller" {
path = "github.com/kubeflow/manifests.git/apps/tensorboard/tensorboard-controller/upstream/overlays/kubeflow?ref=${var.kf_version}"
}
resource "kubectl_manifest" "tensorboard-controller" {
for_each = var.deploy_tensorboard ? data.kustomization_build.tensorboard-controller.ids : []
yaml_body = yamlencode(jsondecode(data.kustomization_build.tensorboard-controller.manifests[each.value]))
wait = true
depends_on = [
kubectl_manifest.tensorboard-ui,
]
}