File tree 4 files changed +20
-5
lines changed
4 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ variables-addon-irsa.tf
6
6
variables-addon-oidc.tf
7
7
README.md
8
8
.secrets.baseline
9
+ addon.tf
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ module "crds" {
10
10
enabled = local. crds_enabled
11
11
12
12
# variable priority var.crds_* (provided by the module user) > local.crds.* (universal addon default override) > default (universal addon default)
13
- namespace = " " # CRDs are cluster-wide resources
13
+ namespace = local . addon_namespace # CRDs are cluster-wide resources, but for a Helm release we need a namespace to be the same as the
14
14
15
15
helm_enabled = var. crds_helm_enabled != null ? var. crds_helm_enabled : try (local. crds . helm_enabled , true )
16
16
helm_release_name = local. crds_helm_release_name
17
17
helm_chart_name = local. crds_helm_chart_name
18
18
helm_chart_version = var. crds_helm_chart_version != null ? var. crds_helm_chart_version : local. crds . helm_chart_version
19
19
helm_atomic = var. crds_helm_atomic != null ? var. crds_helm_atomic : try (local. crds . helm_atomic , false )
20
20
helm_cleanup_on_fail = var. crds_helm_cleanup_on_fail != null ? var. crds_helm_cleanup_on_fail : try (local. crds . helm_cleanup_on_fail , false )
21
- helm_create_namespace = false # CRDs are cluster-wide resources
21
+ helm_create_namespace = var . crds_helm_create_namespace != null ? var . crds_helm_create_namespace : try (local . crds . helm_create_namespace , true )
22
22
helm_dependency_update = var. crds_helm_dependency_update != null ? var. crds_helm_dependency_update : try (local. crds . helm_dependency_update , false )
23
23
helm_description = var. crds_helm_description != null ? var. crds_helm_description : try (local. crds . helm_description , " " )
24
24
helm_devel = var. crds_helm_devel != null ? var. crds_helm_devel : try (local. crds . helm_devel , false )
Original file line number Diff line number Diff line change @@ -10,9 +10,17 @@ locals {
10
10
crds = {
11
11
name = " ingress-traefik-crds"
12
12
13
- helm_chart_name = " traefik-crds"
14
- helm_chart_version = " 1.2.0"
15
- helm_repo_url = " https://traefik.github.io/charts"
13
+ helm_chart_name = " traefik-crds"
14
+ helm_chart_version = " 1.2.0"
15
+ helm_repo_url = " https://traefik.github.io/charts"
16
+ helm_create_namespace = false # CRDs are cluster-wide resources
17
+
18
+ argo_sync_policy = {
19
+ automated = {}
20
+ syncOptions = [
21
+ " ServerSideApply=true"
22
+ ]
23
+ }
16
24
17
25
argo_kubernetes_manifest_wait_fields = {
18
26
" status.sync.status" = " Synced"
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ variable "crds_helm_repo_url" {
28
28
description = " Helm repository (required)."
29
29
}
30
30
31
+ variable "crds_helm_create_namespace" {
32
+ type = bool
33
+ default = null
34
+ description = " Create the Namespace if it does not yet exist. Defaults to `true`."
35
+ }
36
+
31
37
variable "crds_settings" {
32
38
type = map (any )
33
39
default = null
You can’t perform that action at this time.
0 commit comments