-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodules.dev.tf
53 lines (41 loc) · 1.01 KB
/
modules.dev.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
50
51
52
53
provider "kubernetes" {
alias = "dev"
cluster_ca_certificate = module.google.dev_cluster_ca_certificate
host = module.google.dev_cluster_endpoint
token = data.google_client_config.provider.access_token
}
provider "helm" {
alias = "dev"
kubernetes {
cluster_ca_certificate = module.google.dev_cluster_ca_certificate
host = module.google.dev_cluster_endpoint
token = data.google_client_config.provider.access_token
}
}
#
# ---
#
module "kubernetes" {
depends_on = [
module.google,
module.google.dev_cluster_endpoint
]
source = "./kubernetes"
providers = {
kubernetes = kubernetes.dev
}
terraform_sa_email = var.gcp_serviceaccount_email
project_id = var.gcp_project_id
}
module "helm_dev" {
depends_on = [
module.google,
module.kubernetes,
]
source = "./helm/dev"
providers = {
kubernetes = kubernetes.dev
helm = helm.dev
}
github_token = var.github_token
}