diff --git a/deploy/aliyun/main.tf b/deploy/aliyun/main.tf index f194dd67c7..a5ae6c5443 100644 --- a/deploy/aliyun/main.tf +++ b/deploy/aliyun/main.tf @@ -31,10 +31,10 @@ module "tidb-operator" { region = var.ALICLOUD_REGION access_key = var.ALICLOUD_ACCESS_KEY - secret_key = var.ALICLOUD_SECRET_KEY + secret_key = var.ALICLOUD_SECRET_KEY cluster_name = var.cluster_name operator_version = var.operator_version - operator_helm_values = var.operator_helm_values + operator_helm_values = var.operator_helm_values == "" ? "" : file(var.operator_helm_values) k8s_pod_cidr = var.k8s_pod_cidr k8s_service_cidr = var.k8s_service_cidr vpc_cidr = var.vpc_cidr diff --git a/deploy/aliyun/variables.tf b/deploy/aliyun/variables.tf index 95d0b4b93a..55b208cd57 100644 --- a/deploy/aliyun/variables.tf +++ b/deploy/aliyun/variables.tf @@ -14,10 +14,16 @@ variable "operator_version" { } variable "operator_helm_values" { + description = "The helm values file for TiDB Operator, path is relative to current working dir" type = string default = "" } +variable "override_values" { + description = "The helm values file for TiDB Cluster, path is relative to current working dir" + default = "" +} + variable "bastion_ingress_cidr" { description = "Bastion ingress security rule cidr, it is highly recommended to set this in favor of safety" default = "0.0.0.0/0"