generated from getindata/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
36 lines (30 loc) · 1.06 KB
/
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
module "atlantis_repo_config" {
source = "getindata/atlantis-repo-config/null"
version = "2.3.0"
repos = var.repos
repos_common_config = var.repos_common_config
workflows = var.workflows
}
module "terraform_gke_helm_release" {
context = module.this.context
source = "getindata/helm-release/gke"
version = "1.1.1"
kubernetes_namespace = var.kubernetes_namespace
create_namespace = true
project_id = var.project_id
name = var.app.name
service_account_value_path = "serviceAccount.name"
descriptor_formats = {
gcp-service-account = {
labels = ["namespace", "environment", "name"]
format = "sa-%v-%v-%v"
}
}
values = concat([templatefile("${path.module}/template/values.yaml.tftpl", { repoConfig = indent(2, module.atlantis_repo_config.repos_config_yaml) })], var.values)
roles = var.role
app = {
name = var.app.name
chart = var.app.chart
repository = var.app.repository
}
}