terraform-kubernetes-installer icon indicating copy to clipboard operation
terraform-kubernetes-installer copied to clipboard

Add terraform-kubernetes-installer version / commit as a Terraform output variable

Open jlamillan opened this issue 6 years ago • 0 comments

In order to maintain some relationship between a cluster and the version of terraform-kubernetes-installer it was deployed with, we should be exporting the version / commit id as an output variable in outputs.tf as follows:

output "terraform-kubernetes-installer-version" {
  value = "$ git rev-parse HEAD"
}

That way, they can always sync to terraform-kubernetes-installer-version and have a clean terraform plan.

jlamillan avatar Feb 03 '18 00:02 jlamillan