File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ To deploy this config:
54
54
| channel | The channel to use for this ASM installation. | ` string ` | ` "" ` | no |
55
55
| cluster\_ location | The cluster location for this ASM installation. | ` string ` | n/a | yes |
56
56
| cluster\_ name | The unique name to identify the cluster in ASM. | ` string ` | n/a | yes |
57
+ | create\_ system\_ namespace | Determines whether the module creates the istio-system namespace. | ` bool ` | ` true ` | no |
57
58
| enable\_ cni | Determines whether to enable CNI for this ASM installation. Required to use Managed Data Plane (MDP). | ` bool ` | ` false ` | no |
58
59
| enable\_ fleet\_ registration | Determines whether the module registers the cluster to the fleet. | ` bool ` | ` false ` | no |
59
60
| enable\_ mesh\_ feature | Determines whether the module enables the mesh feature on the fleet. | ` bool ` | ` false ` | no |
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ data "google_container_cluster" "asm" {
34
34
}
35
35
36
36
resource "kubernetes_namespace" "system" {
37
+ count = var. create_system_namespace ? 1 : 0
38
+
37
39
metadata {
38
40
name = " istio-system"
39
41
}
@@ -42,7 +44,7 @@ resource "kubernetes_namespace" "system" {
42
44
resource "kubernetes_config_map" "asm_options" {
43
45
metadata {
44
46
name = " asm-options"
45
- namespace = kubernetes_namespace. system . metadata [0 ]. name
47
+ namespace = try ( kubernetes_namespace. system [ 0 ] . metadata [0 ]. name , " istio-system " )
46
48
}
47
49
48
50
data = {
Original file line number Diff line number Diff line change @@ -98,3 +98,9 @@ variable "module_depends_on" {
98
98
type = list (any )
99
99
default = []
100
100
}
101
+
102
+ variable "create_system_namespace" {
103
+ description = " Determines whether the module creates the istio-system namespace."
104
+ type = bool
105
+ default = true
106
+ }
You can’t perform that action at this time.
0 commit comments