File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,3 @@ data "google_container_cluster" "gke_cluster" {
30
30
}
31
31
32
32
data "google_client_config" "provider" {}
33
-
34
- data "template_file" "kubeconfig" {
35
- template = file (" ${ path . module } /templates/kubeconfig-template.yaml.tpl" )
36
-
37
- vars = {
38
- context = local.context
39
- cluster_ca_certificate = local.cluster_ca_certificate
40
- endpoint = local.endpoint
41
- token = data.google_client_config.provider.access_token
42
- }
43
- }
Original file line number Diff line number Diff line change 19
19
output "kubeconfig_raw" {
20
20
sensitive = true
21
21
description = " A kubeconfig file configured to access the GKE cluster."
22
- value = data. template_file . kubeconfig . rendered
22
+ value = templatefile (" ${ path . module } /templates/kubeconfig-template.yaml.tpl" , {
23
+ context = local.context
24
+ cluster_ca_certificate = local.cluster_ca_certificate
25
+ endpoint = local.endpoint
26
+ token = data.google_client_config.provider.access_token
27
+ })
23
28
}
24
29
25
30
# Terraform providers (kubernetes, helm)
You can’t perform that action at this time.
0 commit comments