Skip to content

Commit

Permalink
Specifiy terraform ack version.
Browse files Browse the repository at this point in the history
  • Loading branch information
shonge committed Dec 4, 2019
1 parent 8714a53 commit 6506e0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/modules/aliyun/tidb-operator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ resource "alicloud_security_group_rule" "cluster_worker_ingress" {
# Create a managed Kubernetes cluster
resource "alicloud_cs_managed_kubernetes" "k8s" {
name = var.cluster_name
// 'version' is a reserved parameter and it just is used to test. No Recommendation to expose it.
// https://github.com/terraform-providers/terraform-provider-alicloud/blob/master/alicloud/resource_alicloud_cs_kubernetes.go#L396-L401
version = var.k8s_version

// split and join: workaround for terraform's limitation of conditional list choice, similarly hereinafter
vswitch_ids = [
Expand Down
6 changes: 6 additions & 0 deletions deploy/modules/aliyun/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ variable "cluster_name" {
default = "my-cluster"
}

variable "k8s_version" {
description = "Kubernetes cluster version"
default = "1.14.8-aliyun.1"
type = string
}

variable "cluster_network_type" {
description = "Kubernetes network plugin, options: [flannel, terway]. Cannot change once created."
default = "flannel"
Expand Down

0 comments on commit 6506e0b

Please sign in to comment.