File tree Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,44 @@ Type: `string`
82
82
83
83
Default: ` "" `
84
84
85
+ ### set-list
86
+
87
+ Description: A list of additional settings to apply to the helm chart using the terraform ` set{} ` parameter. Example:
88
+ ```
89
+ set-list = [
90
+ {
91
+ "name" = "prometheus.enabled",
92
+ "value" = "false",
93
+ "type" = "auto"
94
+ },
95
+ ]
96
+ ```
97
+
98
+ Type:
99
+
100
+ ``` hcl
101
+ list(object({
102
+ name = string,
103
+ value = string,
104
+ type = string,
105
+ }))
106
+ ```
107
+
108
+ Default: ` [] `
109
+
110
+ ### values
111
+
112
+ Description: A list of additional values to apply to the helm chart using the 'values = [ ...] ' parameter. Example:
113
+ ```
114
+ values = [
115
+ "<yaml>",
116
+ ]
117
+ ```
118
+
119
+ Type: ` list(string) `
120
+
121
+ Default: ` [] `
122
+
85
123
## Outputs
86
124
87
125
No outputs.
Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ resource "helm_release" "cert-manager" {
16
16
name = " installCRDs"
17
17
value = " true"
18
18
}
19
+
20
+ dynamic "set" {
21
+ for_each = var. set-list
22
+ content {
23
+ name = lookup (set . value , " name" , null )
24
+ value = lookup (set . value , " value" , null )
25
+ type = lookup (set . value , " type" , null )
26
+ }
27
+ }
28
+
29
+ values = var. values
30
+
19
31
}
20
32
21
33
locals {
Original file line number Diff line number Diff line change @@ -21,3 +21,37 @@ variable "cluster-issuers-yaml" {
21
21
default = " "
22
22
description = " The YAML code to define cluster issuers for cert-manager. Example: https://github.com/adfinis-sygroup/helm-charts/blob/master/charts/cert-manager-issuers/examples/letsencrypt-clusterissuers.yaml"
23
23
}
24
+
25
+ variable "set-list" {
26
+ type = list (object ({
27
+ name = string ,
28
+ value = string ,
29
+ type = string ,
30
+ }))
31
+ default = []
32
+ description = << EOT
33
+ A list of additional settings to apply to the helm chart using the terraform `set{}` parameter. Example:
34
+ ```
35
+ set-list = [
36
+ {
37
+ "name" = "prometheus.enabled",
38
+ "value" = "false",
39
+ "type" = "auto"
40
+ },
41
+ ]
42
+ ```
43
+ EOT
44
+ }
45
+
46
+ variable "values" {
47
+ type = list (string )
48
+ default = []
49
+ description = << EOT
50
+ A list of additional values to apply to the helm chart using the 'values = [...]' parameter. Example:
51
+ ```
52
+ values = [
53
+ "<yaml>",
54
+ ]
55
+ ```
56
+ EOT
57
+ }
You can’t perform that action at this time.
0 commit comments