Skip to content

Commit

Permalink
update tag handling and gen
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 30, 2026
1 parent d9ec74a commit 6d39cfa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion clusters/csvd-dev-mcm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module "eks_deployment" {
tags = {
Owner = "matthew.c.morgan@census.gov"
Environment = "development"
CostCenter = "fs0000000078"
CostAllocation = "census:ocio:csvd"
}
organization = "census:ocio:csvd"
}
Expand Down
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ locals {
eks_ng_max_size = local.eks_defaults.ng_max_size
eks_ng_min_size = local.eks_defaults.ng_min_size
organization = var.cluster_config.organization
CostAllocation = var.cluster_config.organization
finops_project_name = local.organization_defaults.finops_project_name
finops_project_number = local.organization_defaults.finops_project_number
finops_project_role = local.organization_defaults.finops_project_role
CostAllocation = var.cluster_config.organization
tags = var.cluster_config.tags
}
modules = var.enable_modules
Expand Down Expand Up @@ -97,8 +97,9 @@ locals {
finops_project_name = local.organization_defaults.finops_project_name,
finops_project_number = local.organization_defaults.finops_project_number,
finops_project_role = local.organization_defaults.finops_project_role,
tags = var.cluster_config.tags,
CostAllocation = var.cluster_config.organization,
organization = var.cluster_config.organization,
tags = var.cluster_config.tags,
module_enablement_overrides = var.enable_modules
}),
"README.md" : templatefile("${path.module}/templates/README.md.tf.tpl", {
Expand Down
4 changes: 3 additions & 1 deletion templates/default-versions.hcl.tf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ locals {
"eks-prometheus" = "0.1.4"
"eks-tempo" = "0.1.4"
"eks" = "1.0.10"
"cluster" = "2025.20.04"
}
"2026.03.15" = {
"eks-arcgis" = false
Expand All @@ -49,7 +50,8 @@ locals {
"eks-postgresql" = false
"eks-prometheus" = "0.1.5"
"eks-tempo" = "0.1.6"
"eks" = "1.0.12"
"eks" = "1.0.14"
"cluster" = "2026.03.15"
}
}

Expand Down
2 changes: 1 addition & 1 deletion templates/root.hcl.tf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ locals {
finops_project_name = local.cluster_vars.locals.finops_project_name
finops_project_number = local.cluster_vars.locals.finops_project_number
finops_project_role = local.cluster_vars.locals.finops_project_role
is_eks_module = local.module_name == "eks"
is_eks_module = local.module_name == "eks" ? true : false
prefixes = local.prefix_vars.locals.prefixes
is_module_enabled = merge(
{ for module in local.versions.locals.core_modules : module => true },
Expand Down
11 changes: 8 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,15 @@ variable "namespaces" {
variable "enable_modules" {
description = "Map of modules to enable (internal use)"
type = object({
gogatekeeper = optional(bool, false)
prometheus = optional(bool, false)
gatekeeper = optional(bool, false)
grafana = optional(bool, false)
istio = optional(bool, false)
otel = optional(bool, false)
prometheus = optional(bool, false)
tempo = optional(bool, false)
loki = optional(bool, false)
kiali = optional(bool, false)
keycloak = optional(bool, false)
cribl = optional(bool, false)
})
default = {}
}
Expand Down

0 comments on commit 6d39cfa

Please sign in to comment.