Skip to content

Commit

Permalink
add default value to karpenter_default_subnet_selector_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
uchinda-sph committed Feb 20, 2024
1 parent 6d84409 commit 1e8f602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion karpenter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ locals {
{
nodeclass_name = "default"
karpenter_subnet_selector_maps = [{
tags = var.karpenter_subnet_selector_tags,
tags = var.karpenter_default_subnet_selector_tags,
}
]
karpenter_node_role = aws_iam_role.workers.name
Expand Down
5 changes: 4 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,10 @@ variable "karpenter_chart_version" {
default = "v0.32.1"
}

variable "karpenter_subnet_selector_tags" {
variable "karpenter_default_subnet_selector_tags" {
description = "Subnet selector tags for Karpenter nodes"
type = map(string)
default = {
"kubernetes.io/role/internal-elb" = "1"
}
}

0 comments on commit 1e8f602

Please sign in to comment.