Skip to content

Commit 060df8b

Browse files
Merge branch 'feature/skaf-967' into 'main'
added feature for enabling and disabling ns See merge request sq-ia/kubernetes/mysql!2
2 parents 9ce0b6b + b69d112 commit 060df8b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ EOF
5454
}
5555

5656
resource "kubernetes_namespace" "mysqldb" {
57+
count = var.create_namespace ? 1 : 0
5758
metadata {
5859
annotations = {}
5960

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@ variable "cluster_name" {
6363
type = string
6464
default = ""
6565
description = "Name of the EKS cluster"
66+
}
6667

68+
variable "create_namespace" {
69+
type = string
70+
description = "Set it to true to create given namespace"
71+
default = true
6772
}

0 commit comments

Comments
 (0)