From 6998e0fbeb19d20ebda505ea5b160b45fd3b569c Mon Sep 17 00:00:00 2001 From: Garland Kan Date: Mon, 24 Jan 2022 14:15:00 -0800 Subject: [PATCH] Kubernetes - namespace (#244) --- terraform-modules/aws/kubernetes/namespace/main.tf | 9 +++++++++ .../aws/kubernetes/namespace/variables.tf | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 terraform-modules/aws/kubernetes/namespace/main.tf create mode 100644 terraform-modules/aws/kubernetes/namespace/variables.tf diff --git a/terraform-modules/aws/kubernetes/namespace/main.tf b/terraform-modules/aws/kubernetes/namespace/main.tf new file mode 100644 index 000000000..a2c378271 --- /dev/null +++ b/terraform-modules/aws/kubernetes/namespace/main.tf @@ -0,0 +1,9 @@ +resource "kubernetes_namespace" "this" { + metadata { + annotations = var.annotations + + labels = var.labels + + name = var.name + } +} diff --git a/terraform-modules/aws/kubernetes/namespace/variables.tf b/terraform-modules/aws/kubernetes/namespace/variables.tf new file mode 100644 index 000000000..dc01095c1 --- /dev/null +++ b/terraform-modules/aws/kubernetes/namespace/variables.tf @@ -0,0 +1,14 @@ +variable "name" { + type = string + description = "The namespace name" +} + +variable "annotations" { + type = map(any) + default = {} +} + +variable "labels" { + type = map(any) + default = {} +}