cluster.fun/terraform/kubernetes-manifests.tf

23 lines
594 B
Terraform
Raw Normal View History

2020-05-02 17:41:31 +00:00
resource "kubectl_manifest" "manifests" {
2020-05-02 20:46:36 +00:00
for_each = fileset(path.module, "../manifests/*")
2020-05-02 17:41:31 +00:00
yaml_body = file(each.key)
}
resource "kubectl_manifest" "tekton-install" {
2020-05-02 20:46:36 +00:00
for_each = fileset(path.module, "../tekton/1-Install/*")
2020-05-02 17:41:31 +00:00
yaml_body = file(each.key)
}
resource "kubectl_manifest" "tekton-setup" {
2020-05-02 20:46:36 +00:00
for_each = fileset(path.module, "../tekton/2-Setup/*")
2020-05-02 17:41:31 +00:00
yaml_body = file(each.key)
}
resource "kubectl_manifest" "tekton" {
2020-05-02 20:46:36 +00:00
for_each = fileset(path.module, "../tekton/{bindings,conditions,eventlisteners,pipelines,tasks,triggertemplates}/*")
2020-05-02 17:41:31 +00:00
yaml_body = file(each.key)
}