Skip to content

Commit

Permalink
fix values file customization for tidb-operator on aliyun (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZhangQD authored Oct 9, 2019
1 parent 052ac67 commit 914eb9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/aliyun/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions deploy/aliyun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 914eb9b

Please sign in to comment.