Skip to content

Commit

Permalink
Merge pull request #21 from SCT-Engineering/feature-namespaces
Browse files Browse the repository at this point in the history
Create telemetry namespace
  • Loading branch information
morga471 committed Feb 27, 2025
2 parents ff29aae + 6db7514 commit eb86e47
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,12 @@ resource "kubernetes_namespace" "operators" {
name = var.operators_ns
}
}

resource "kubernetes_namespace" "telemetry" {
metadata {
name = var.telemetry_ns
labels = {
istio-injection = "enabled"
}
}
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ variable "operators_ns" {
default = "operators"
}

variable "telemetry_ns" {
description = "Namespace to create where telemetry will be installed."
type = string
default = "telemetry"
}

variable "tag_costallocation" {
description = "Tag CostAllocation (default)"
type = string
Expand Down

0 comments on commit eb86e47

Please sign in to comment.