From 5b06cb265cf3004e809d0b0319530e8e179c6cdb Mon Sep 17 00:00:00 2001 From: Abhinav Dahiya Date: Wed, 20 Feb 2019 09:52:00 -0800 Subject: [PATCH] *: remove cluster_name from terraform config All the resources now use `cluster_id` as the prefix and all the DNS records are created under `cluster_domain`. Therefore there is no need for `cluster_name` in terraform configuration. This also keep the calculation for the `clsuter_domain` in single location ie Go code outside of terraform. --- data/data/config.tf | 6 +++--- data/data/libvirt/main.tf | 16 ++++++---------- data/data/openstack/main.tf | 8 ++------ pkg/asset/cluster/tfvars.go | 4 ++-- pkg/tfvars/tfvars.go | 14 +++++++------- 5 files changed, 20 insertions(+), 28 deletions(-) diff --git a/data/data/config.tf b/data/data/config.tf index 2dff8cf565e..08d9a2c06b7 100644 --- a/data/data/config.tf +++ b/data/data/config.tf @@ -34,12 +34,12 @@ This applies only to cloud platforms. EOF } -variable "cluster_name" { +variable "cluster_domain" { type = "string" description = <