We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ce0b6b + b69d112 commit 060df8bCopy full SHA for 060df8b
main.tf
@@ -54,6 +54,7 @@ EOF
54
}
55
56
resource "kubernetes_namespace" "mysqldb" {
57
+ count = var.create_namespace ? 1 : 0
58
metadata {
59
annotations = {}
60
variables.tf
@@ -63,5 +63,10 @@ variable "cluster_name" {
63
type = string
64
default = ""
65
description = "Name of the EKS cluster"
66
+}
67
68
+variable "create_namespace" {
69
+ type = string
70
+ description = "Set it to true to create given namespace"
71
+ default = true
72
0 commit comments