Skip to content

Commit 7e80f4c

Browse files
Lingling PengLingling Peng
authored andcommitted
try to guard the root
1 parent 5ecd582 commit 7e80f4c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

deployments/stacks/dpe-k8s-deployments/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ locals {
22
git_revision = var.git_revision
33
}
44
module "sage-aws-eks-autoscaler" {
5+
count = var.enable_autoscaler ? 1 : 0
56
source = "spacelift.io/sagebionetworks/sage-aws-eks-autoscaler/aws"
67
version = "0.9.0"
78
cluster_name = var.cluster_name

deployments/stacks/dpe-k8s-deployments/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,8 @@ variable "docker_access_token" {
119119
type = string
120120
default = ""
121121
}
122+
123+
variable "enable_autoscaler" {
124+
type = bool
125+
default = true
126+
}

modules/sage-aws-k8s-node-autoscaler/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ resource "helm_release" "ocean-kubernetes-controller" {
104104
}
105105

106106
module "ocean-aws-k8s" {
107-
count = var.enable_autoscaler ? 1 : 0
108107
source = "spotinst/ocean-aws-k8s/spotinst"
109108
version = "1.4.0"
110109

modules/sage-aws-k8s-node-autoscaler/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,4 @@ variable "desired_capacity" {
5353
variable "single_az" {
5454
description = "Single AZ"
5555
type = bool
56-
}
57-
58-
variable "enable_autoscaler" {
59-
type = bool
60-
default = true
6156
}

0 commit comments

Comments
 (0)