File tree 22 files changed +359
-121
lines changed
22 files changed +359
-121
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ module "kind" {
4
4
}
5
5
6
6
module "prometheus" {
7
- depends_on = [module . kind ]
8
- source = " ../../../modules/prometheus"
7
+ depends_on = [module . kind ]
8
+ source = " ../../../modules/helm-release"
9
+ release_name = var. prometheus_release_name
10
+ repository_url = var. prometheus_repository_url
11
+ chart_version = var. prometheus_chart_version
12
+ chart_name = var. prometheus_chart_name
13
+ values = var. prometheus_values
9
14
}
Original file line number Diff line number Diff line change @@ -3,3 +3,45 @@ variable "prefix" {
3
3
type = string
4
4
default = " mc"
5
5
}
6
+
7
+ variable "prometheus_release_name" {
8
+ description = " The name of the Helm release."
9
+ type = string
10
+ default = " prometheus"
11
+ }
12
+
13
+ variable "prometheus_repository_url" {
14
+ description = " The URL of the Helm repository."
15
+ type = string
16
+ default = " https://prometheus-community.github.io/helm-charts"
17
+ }
18
+
19
+ variable "prometheus_chart_version" {
20
+ description = " The version of the Helm chart to install."
21
+ type = string
22
+ default = " 68.4.3"
23
+ }
24
+
25
+ variable "prometheus_chart_name" {
26
+ description = " The name of the Helm chart to install."
27
+ type = string
28
+ default = " kube-prometheus-stack"
29
+ }
30
+
31
+ variable "prometheus_values" {
32
+ description = " Configuration for set blocks, this corresponds to Helm values.yaml"
33
+ type = list (object ({
34
+ name = string
35
+ value = string
36
+ }))
37
+ default = [
38
+ {
39
+ name = " global.prometheus.enabled"
40
+ value = " true"
41
+ },
42
+ {
43
+ name = " global.grafana.enabled"
44
+ value = " true"
45
+ }
46
+ ]
47
+ }
Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ module "gke" {
7
7
}
8
8
9
9
module "retina" {
10
- depends_on = [module . gke ]
11
- source = " ../../../modules/retina"
12
- retina_version = var. retina_version
13
- values = var. values
10
+ depends_on = [module . gke ]
11
+ source = " ../../../modules/helm-release"
12
+ release_name = var. retina_release_name
13
+ repository_url = var. retina_repository_url
14
+ chart_version = var. retina_chart_version
15
+ chart_name = var. retina_chart_name
16
+ values = var. retina_values
14
17
}
Original file line number Diff line number Diff line change @@ -22,15 +22,48 @@ variable "machine_type" {
22
22
default = " e2-standard-4"
23
23
}
24
24
25
- variable "retina_version " {
26
- description = " The tag to apply to all resources ."
25
+ variable "retina_release_name " {
26
+ description = " The name of the Helm release ."
27
27
type = string
28
+ default = " retina"
28
29
}
29
30
30
- variable "values" {
31
+ variable "retina_repository_url" {
32
+ description = " The URL of the Helm repository."
33
+ type = string
34
+ default = " oci://ghcr.io/microsoft/retina/charts"
35
+ }
36
+
37
+ variable "retina_chart_version" {
38
+ description = " The version of the Helm chart to install."
39
+ type = string
40
+ default = " v0.0.24"
41
+ }
42
+
43
+ variable "retina_chart_name" {
44
+ description = " The name of the Helm chart to install."
45
+ type = string
46
+ default = " retina"
47
+ }
48
+
49
+ variable "retina_values" {
31
50
description = " Configuration for set blocks, this corresponds to Helm values.yaml"
32
51
type = list (object ({
33
52
name = string
34
53
value = string
35
54
}))
55
+ default = [
56
+ {
57
+ name = " image.tag"
58
+ value = " v0.0.24"
59
+ },
60
+ {
61
+ name = " operator.tag"
62
+ value = " v0.0.24"
63
+ },
64
+ {
65
+ name = " logLevel"
66
+ value = " info"
67
+ }
68
+ ]
36
69
}
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ module "kind" {
5
5
6
6
module "retina" {
7
7
depends_on = [module . kind ]
8
- source = " ../../../modules/retina"
9
- retina_version = var. retina_version
8
+ source = " ../../../modules/helm-release"
9
+ release_name = var. retina_release_name
10
+ repository_url = var. retina_repository_url
11
+ chart_version = var. retina_chart_version
12
+ chart_name = var. retina_chart_name
13
+ values = var. retina_values
10
14
}
Original file line number Diff line number Diff line change @@ -4,8 +4,48 @@ variable "prefix" {
4
4
default = " mc"
5
5
}
6
6
7
- variable "retina_version " {
8
- description = " The tag to apply to all resources ."
7
+ variable "retina_release_name " {
8
+ description = " The name of the Helm release ."
9
9
type = string
10
- default = " v0.0.23"
10
+ default = " retina"
11
+ }
12
+
13
+ variable "retina_repository_url" {
14
+ description = " The URL of the Helm repository."
15
+ type = string
16
+ default = " oci://ghcr.io/microsoft/retina/charts"
17
+ }
18
+
19
+ variable "retina_chart_version" {
20
+ description = " The version of the Helm chart to install."
21
+ type = string
22
+ default = " v0.0.24"
23
+ }
24
+
25
+ variable "retina_chart_name" {
26
+ description = " The name of the Helm chart to install."
27
+ type = string
28
+ default = " retina"
29
+ }
30
+
31
+ variable "retina_values" {
32
+ description = " Configuration for set blocks, this corresponds to Helm values.yaml"
33
+ type = list (object ({
34
+ name = string
35
+ value = string
36
+ }))
37
+ default = [
38
+ {
39
+ name = " image.tag"
40
+ value = " v0.0.24"
41
+ },
42
+ {
43
+ name = " operator.tag"
44
+ value = " v0.0.24"
45
+ },
46
+ {
47
+ name = " logLevel"
48
+ value = " info"
49
+ }
50
+ ]
11
51
}
Original file line number Diff line number Diff line change @@ -7,8 +7,13 @@ module "aks" {
7
7
}
8
8
9
9
module "retina" {
10
- depends_on = [module . aks ]
11
- source = " ../../modules/retina"
10
+ depends_on = [module . aks ]
11
+ source = " ../../modules/helm-release"
12
+ release_name = var. retina_release_name
13
+ repository_url = var. retina_repository_url
14
+ chart_version = var. retina_chart_version
15
+ chart_name = var. retina_chart_name
16
+ values = var. retina_values
12
17
}
13
18
14
19
output "kubeconfig_command" {
Original file line number Diff line number Diff line change @@ -29,7 +29,51 @@ variable "prefix" {
29
29
variable "labels" {
30
30
description = " A map of labels to add to all resources."
31
31
type = map (string )
32
- default = {
33
- " env" = " test"
34
- }
32
+ default = {}
33
+ }
34
+
35
+ variable "retina_release_name" {
36
+ description = " The name of the Helm release."
37
+ type = string
38
+ default = " retina"
39
+ }
40
+
41
+ variable "retina_repository_url" {
42
+ description = " The URL of the Helm repository."
43
+ type = string
44
+ default = " oci://ghcr.io/microsoft/retina/charts"
45
+ }
46
+
47
+ variable "retina_chart_version" {
48
+ description = " The version of the Helm chart to install."
49
+ type = string
50
+ default = " v0.0.24"
51
+ }
52
+
53
+ variable "retina_chart_name" {
54
+ description = " The name of the Helm chart to install."
55
+ type = string
56
+ default = " retina"
57
+ }
58
+
59
+ variable "retina_values" {
60
+ description = " Configuration for set blocks, this corresponds to Helm values.yaml"
61
+ type = list (object ({
62
+ name = string
63
+ value = string
64
+ }))
65
+ default = [
66
+ {
67
+ name = " image.tag"
68
+ value = " v0.0.24"
69
+ },
70
+ {
71
+ name = " operator.tag"
72
+ value = " v0.0.24"
73
+ },
74
+ {
75
+ name = " logLevel"
76
+ value = " info"
77
+ }
78
+ ]
35
79
}
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ module "gke" {
7
7
}
8
8
9
9
module "retina" {
10
- depends_on = [module . gke ]
11
- source = " ../../modules/retina"
10
+ depends_on = [module . gke ]
11
+ source = " ../../modules/helm-release"
12
+ release_name = var. retina_release_name
13
+ repository_url = var. retina_repository_url
14
+ chart_version = var. retina_chart_version
15
+ chart_name = var. retina_chart_name
16
+ values = var. retina_values
12
17
}
Original file line number Diff line number Diff line change @@ -21,3 +21,49 @@ variable "machine_type" {
21
21
type = string
22
22
default = " e2-standard-4"
23
23
}
24
+
25
+ variable "retina_release_name" {
26
+ description = " The name of the Helm release."
27
+ type = string
28
+ default = " retina"
29
+ }
30
+
31
+ variable "retina_repository_url" {
32
+ description = " The URL of the Helm repository."
33
+ type = string
34
+ default = " oci://ghcr.io/microsoft/retina/charts"
35
+ }
36
+
37
+ variable "retina_chart_version" {
38
+ description = " The version of the Helm chart to install."
39
+ type = string
40
+ default = " v0.0.24"
41
+ }
42
+
43
+ variable "retina_chart_name" {
44
+ description = " The name of the Helm chart to install."
45
+ type = string
46
+ default = " retina"
47
+ }
48
+
49
+ variable "retina_values" {
50
+ description = " Configuration for set blocks, this corresponds to Helm values.yaml"
51
+ type = list (object ({
52
+ name = string
53
+ value = string
54
+ }))
55
+ default = [
56
+ {
57
+ name = " image.tag"
58
+ value = " v0.0.24"
59
+ },
60
+ {
61
+ name = " operator.tag"
62
+ value = " v0.0.24"
63
+ },
64
+ {
65
+ name = " logLevel"
66
+ value = " info"
67
+ }
68
+ ]
69
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ module "kind" {
4
4
}
5
5
6
6
module "retina" {
7
- depends_on = [module . kind ]
8
- source = " ../../modules/retina"
7
+ depends_on = [module . kind ]
8
+ source = " ../../modules/helm-release"
9
+ release_name = var. retina_release_name
10
+ repository_url = var. retina_repository_url
11
+ chart_version = var. retina_chart_version
12
+ chart_name = var. retina_chart_name
13
+ values = var. retina_values
9
14
}
Original file line number Diff line number Diff line change @@ -2,4 +2,50 @@ variable "prefix" {
2
2
description = " A prefix to add to all resources."
3
3
type = string
4
4
default = " mc"
5
- }
5
+ }
6
+
7
+ variable "retina_release_name" {
8
+ description = " The name of the Helm release."
9
+ type = string
10
+ default = " retina"
11
+ }
12
+
13
+ variable "retina_repository_url" {
14
+ description = " The URL of the Helm repository."
15
+ type = string
16
+ default = " oci://ghcr.io/microsoft/retina/charts"
17
+ }
18
+
19
+ variable "retina_chart_version" {
20
+ description = " The version of the Helm chart to install."
21
+ type = string
22
+ default = " v0.0.24"
23
+ }
24
+
25
+ variable "retina_chart_name" {
26
+ description = " The name of the Helm chart to install."
27
+ type = string
28
+ default = " retina"
29
+ }
30
+
31
+ variable "retina_values" {
32
+ description = " Configuration for set blocks, this corresponds to Helm values.yaml"
33
+ type = list (object ({
34
+ name = string
35
+ value = string
36
+ }))
37
+ default = [
38
+ {
39
+ name = " image.tag"
40
+ value = " v0.0.24"
41
+ },
42
+ {
43
+ name = " operator.tag"
44
+ value = " v0.0.24"
45
+ },
46
+ {
47
+ name = " logLevel"
48
+ value = " info"
49
+ }
50
+ ]
51
+ }
You can’t perform that action at this time.
0 commit comments