Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #32 from gruntwork-io/yori-fix-basic-tiller
Browse files Browse the repository at this point in the history
Forgot environment variables
  • Loading branch information
yorinasub17 authored May 6, 2019
2 parents 08b878b + a1651f5 commit d4d2c46
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/gke-basic-tiller/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ module "tiller" {
resource "null_resource" "wait_for_tiller" {
provisioner "local-exec" {
command = "kubergrunt helm wait-for-tiller --tiller-namespace ${local.tiller_namespace} --tiller-deployment-name ${module.tiller.deployment_name} --expected-tiller-version ${local.tiller_version} ${local.kubectl_auth_config}"

# Use environment variables for Kubernetes credentials to avoid leaking into the logs
environment = {
KUBECTL_SERVER_ENDPOINT = "${data.template_file.gke_host_endpoint.rendered}"
KUBECTL_CA_DATA = "${base64encode(data.template_file.cluster_ca_certificate.rendered)}"
KUBECTL_TOKEN = "${data.template_file.access_token.rendered}"
}
}
}

Expand Down
7 changes: 7 additions & 0 deletions examples/gke-private-tiller/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ module "tiller" {
resource "null_resource" "wait_for_tiller" {
provisioner "local-exec" {
command = "kubergrunt helm wait-for-tiller --tiller-namespace ${local.tiller_namespace} --tiller-deployment-name ${module.tiller.deployment_name} --expected-tiller-version ${local.tiller_version} ${local.kubectl_auth_config}"

# Use environment variables for Kubernetes credentials to avoid leaking into the logs
environment = {
KUBECTL_SERVER_ENDPOINT = "${data.template_file.gke_host_endpoint.rendered}"
KUBECTL_CA_DATA = "${base64encode(data.template_file.cluster_ca_certificate.rendered)}"
KUBECTL_TOKEN = "${data.template_file.access_token.rendered}"
}
}
}

Expand Down

0 comments on commit d4d2c46

Please sign in to comment.