Skip to content

Commit 278e2f4

Browse files
authored
Merge pull request #344 from kbst/remove-duplicate-variables
Fix duplicate variables from previous PRs, defaults for maintenance exclusions
2 parents f5280ec + 0c77b85 commit 278e2f4

File tree

5 files changed

+2
-39
lines changed

5 files changed

+2
-39
lines changed

google/_modules/gke/cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "google_container_cluster" "current" {
7474
}
7575

7676
dynamic "maintenance_exclusion" {
77-
for_each = var.maintenance_exclusion_start_time != null ? [1] : []
77+
for_each = var.maintenance_exclusion_start_time != "" ? [1] : []
7878

7979
content {
8080
start_time = var.maintenance_exclusion_start_time

google/_modules/gke/node_pool/variables.tf

+1-14
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,6 @@ variable "network_config" {
165165
create_pod_range = bool
166166
pod_ipv4_cidr_block = string
167167
})
168-
description = "Additional network configuration for the node pool."
169-
}
170-
171-
variable "ephemeral_storage_local_ssd_config" {
172-
type = object({
173-
local_ssd_count = number
174-
})
175-
description = "`ephemeral_storage_local_ssd_config` block, useful for node groups with local SSD. Defaults to `null`"
168+
description = "Configure additional pod IP address range for the node pool. Defaults to `null`"
176169
default = null
177170
}
178-
179-
variable "labels" {
180-
type = map(string)
181-
description = "Kubernetes labels to set on the nodes created by the node pool. Merged with Kubestack default labels."
182-
default = {}
183-
}

google/cluster/node-pool/configuration.tf

-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,4 @@ locals {
4646
network_config = local.cfg["network_config"]
4747

4848
instance_tags = local.cfg["instance_tags"]
49-
50-
ephemeral_storage_local_ssd_config = local.cfg["ephemeral_storage_local_ssd_config"]
51-
52-
guest_accelerator = local.cfg["guest_accelerator"]
5349
}

google/cluster/node-pool/main.tf

-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,4 @@ module "node_pool" {
4343
guest_accelerator = local.guest_accelerator
4444

4545
network_config = local.network_config
46-
47-
ephemeral_storage_local_ssd_config = local.ephemeral_storage_local_ssd_config
48-
49-
guest_accelerator = local.guest_accelerator
5046
}

google/cluster/node-pool/variables.tf

-16
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ variable "configuration" {
2929

3030
labels = optional(map(string))
3131

32-
labels = optional(map(string))
33-
3432
extra_oauth_scopes = optional(list(string))
3533

3634
node_workload_metadata_config = optional(string)
@@ -58,20 +56,6 @@ variable "configuration" {
5856
}))
5957

6058
instance_tags = optional(list(string))
61-
62-
ephemeral_storage_local_ssd_config = optional(object({
63-
local_ssd_count = number
64-
}))
65-
66-
guest_accelerator = optional(object({
67-
type = string
68-
count = number
69-
gpu_partition_size = optional(string)
70-
gpu_sharing_config = optional(object({
71-
gpu_sharing_strategy = optional(string)
72-
max_shared_clients_per_gpu = optional(number)
73-
}))
74-
}))
7559
}))
7660

7761
description = "Map with per workspace cluster configuration."

0 commit comments

Comments
 (0)