Skip to content

Commit 0c1ef96

Browse files
committed
Split values yaml to easily update values
1 parent 0180638 commit 0c1ef96

File tree

5 files changed

+1117
-718
lines changed

5 files changed

+1117
-718
lines changed

locals.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ locals {
1818
promethues_operator_nodeSelector = var.promethues_operator_nodeSelector
1919
prometheus_alertmanagerSpec_nodeSelector = var.prometheus_alertmanagerSpec_nodeSelector
2020
prometheusSpec_nodeSelector = var.prometheusSpec_nodeSelector
21+
}
2122

23+
grafana_values = {
2224
################################
2325
######## GRAFANA LOCALS ########
2426
################################

main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ resource "helm_release" "kube_prometheus_stack" {
99
max_history = var.max_history
1010
timeout = var.chart_timeout
1111

12-
values = [
12+
values = compact(distinct(concat([
1313
templatefile("${path.module}/templates/values.yaml", local.values),
14-
]
14+
templatefile("${path.module}/templates/grafana_values.yaml", local.grafana_values),
15+
])))
1516
}

0 commit comments

Comments
 (0)