File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
1
locals {
2
2
istio_base = {
3
- helm_config = {
3
+ default_helm_config = {
4
4
name = try (var. istio_ingress_extra_configs . istiobase_release_name , " base" )
5
5
chart = " base"
6
6
repository = " https://istio-release.storage.googleapis.com/charts"
@@ -63,11 +63,11 @@ locals {
63
63
64
64
istiod_helm_config = merge (
65
65
local. istiod . default_helm_config ,
66
- var. istio_ingress_extra_configs . istiod
66
+ try ( var. istio_ingress_extra_configs . istiod , {})
67
67
)
68
68
69
69
istio_base_helm_config = merge (
70
- local. istio_base . helm_config ,
71
- var. istio_ingress_extra_configs . istio_base
70
+ local. istio_base . default_helm_config ,
71
+ try ( var. istio_ingress_extra_configs . istio_base , {})
72
72
)
73
73
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module "istio_base" {
3
3
count = try (var. istio_ingress_extra_configs . install_istiobase , true ) ? 1 : 0
4
4
5
5
manage_via_gitops = var. manage_via_gitops
6
- helm_config = local. istio_base . helm_config
6
+ helm_config = local. istio_base_helm_config
7
7
addon_context = var. addon_context
8
8
9
9
}
@@ -40,4 +40,3 @@ resource "kubectl_manifest" "istio_gateway_manifest" {
40
40
depends_on = [kubectl_manifest . istio_ingress_manifest ]
41
41
yaml_body = file (var. istio_manifests . istio_gateway_manifest_file_path [count . index ])
42
42
}
43
-
Original file line number Diff line number Diff line change @@ -37,9 +37,3 @@ variable "istio_ingress_extra_configs" {
37
37
type = any
38
38
default = {}
39
39
}
40
-
41
- variable "istiod_helm_config" {
42
- description = " Path to override-values.yaml for Istiod Helm Chart"
43
- type = any
44
- default = null
45
- }
You can’t perform that action at this time.
0 commit comments