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" {
3030}
3131
3232data "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 1919output "kubeconfig_raw" {
2020 sensitive = true
2121 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+ })
2328}
2429
2530# Terraform providers (kubernetes, helm)
You can’t perform that action at this time.
0 commit comments