From ddcf0852cacd8e8253a60bd9a49040b13f8282f3 Mon Sep 17 00:00:00 2001 From: DanielZhangQD Date: Mon, 23 Mar 2020 15:58:43 +0800 Subject: [PATCH] update variable name --- deploy/aliyun/main.tf | 2 +- deploy/aliyun/variables.tf | 2 +- deploy/modules/aliyun/tidb-cluster/main.tf | 2 +- deploy/modules/aliyun/tidb-cluster/variables.tf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/aliyun/main.tf b/deploy/aliyun/main.tf index 961d1864ff..9f4d5d319d 100644 --- a/deploy/aliyun/main.tf +++ b/deploy/aliyun/main.tf @@ -83,5 +83,5 @@ module "tidb-cluster" { tidb_instance_type = var.tidb_instance_type tidb_count = var.tidb_count monitor_instance_type = var.monitor_instance_type - create = var.create + create_tidb_cluster = var.create_tidb_cluster } diff --git a/deploy/aliyun/variables.tf b/deploy/aliyun/variables.tf index ca00a3bb6f..77fc156445 100644 --- a/deploy/aliyun/variables.tf +++ b/deploy/aliyun/variables.tf @@ -113,7 +113,7 @@ variable "vpc_cidr" { default = "192.168.0.0/16" } -variable "create" { +variable "create_tidb_cluster" { description = "whether creating tidb-cluster helm release" default = false } diff --git a/deploy/modules/aliyun/tidb-cluster/main.tf b/deploy/modules/aliyun/tidb-cluster/main.tf index ff31caa8be..9774ec891f 100644 --- a/deploy/modules/aliyun/tidb-cluster/main.tf +++ b/deploy/modules/aliyun/tidb-cluster/main.tf @@ -12,5 +12,5 @@ module "tidb-cluster" { base_values = file("${path.module}/values/default.yaml") kubeconfig_filename = var.ack.kubeconfig_filename service_ingress_key = "ip" - create = var.create + create = var.create_tidb_cluster } diff --git a/deploy/modules/aliyun/tidb-cluster/variables.tf b/deploy/modules/aliyun/tidb-cluster/variables.tf index 08662b60c2..4853487649 100644 --- a/deploy/modules/aliyun/tidb-cluster/variables.tf +++ b/deploy/modules/aliyun/tidb-cluster/variables.tf @@ -66,7 +66,7 @@ variable "local_exec_interpreter" { default = ["/bin/sh", "-c"] } -variable "create" { +variable "create_tidb_cluster" { description = "whether creating tidb-cluster helm release" default = false }