Skip to content

Commit d2b168e

Browse files
committed
Cleanup values
1 parent dcd7cbf commit d2b168e

File tree

3 files changed

+9
-34
lines changed

3 files changed

+9
-34
lines changed

locals.tf

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ locals {
1313
prometheus_ingress_hosts = jsonencode(var.prometheus_ingress_hosts)
1414
prometheus_ingress_tls = jsonencode(var.prometheus_ingress_tls)
1515

16-
prometheus_operator_image_repository = var.prometheus_operator_image_repository
17-
prometheus_operator_image_tag = var.prometheus_operator_image_tag
18-
promethues_operator_nodeSelector = var.promethues_operator_nodeSelector
19-
prometheus_alertmanagerSpec_nodeSelector = var.prometheus_alertmanagerSpec_nodeSelector
20-
prometheusSpec_nodeSelector = var.prometheusSpec_nodeSelector
16+
prometheus_operator_image_repository = var.prometheus_operator_image_repository
17+
prometheus_operator_image_tag = var.prometheus_operator_image_tag
18+
promethues_operator_nodeselector = var.promethues_operator_nodeselector
19+
prometheus_alertmanager_nodeselector = var.prometheus_alertmanager_nodeselector
20+
prometheus_nodeselector = var.prometheus_nodeselector
2121
}
2222

2323
grafana_values = {
24-
################################
25-
######## GRAFANA LOCALS ########
26-
################################
2724
replicas = var.replicas
2825
grafana_image_repository = var.grafana_image_repository
2926
grafana_image_tag = var.grafana_image_tag
@@ -91,10 +88,6 @@ locals {
9188

9289
grafana_main_config = indent(2, var.grafana_main_config)
9390

94-
grafana_okta_enabled = var.grafana_okta_enabled
95-
grafana_oauth_client_id = var.grafana_oauth_client_id
96-
grafana_oauth_client_secret = var.grafana_oauth_client_secret
97-
9891
grafana_image_repository = var.grafana_image_repository
9992
grafana_image_tag = var.grafana_image_tag
10093

templates/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ prometheus:
24312431
## Define which Nodes the Pods are scheduled on.
24322432
## ref: https://kubernetes.io/docs/user-guide/node-selection/
24332433
##
2434-
nodeSelector: ${prometheusSpec_nodeSelector}
2434+
nodeSelector: ${prometheus_nodeselector}
24352435

24362436
## Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods.
24372437
## The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not

variables.tf

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,19 @@ variable "prometheus_operator_image_tag" {
133133
default = "v0.60.1"
134134
}
135135

136-
variable "promethues_operator_nodeSelector" {
136+
variable "promethues_operator_nodeselector" {
137137
description = "Promethues Operator node selector"
138138
type = any
139139
default = ""
140140
}
141141

142-
variable "prometheus_alertmanagerSpec_nodeSelector" {
142+
variable "prometheus_alertmanager_nodeselector" {
143143
description = "Alertmanager Spec node selector"
144144
type = any
145145
default = ""
146146
}
147147

148-
variable "prometheusSpec_nodeSelector" {
148+
variable "prometheus_nodeselector" {
149149
description = "prometheus Spec node selector"
150150
type = any
151151
default = ""
@@ -482,24 +482,6 @@ grafana_net:
482482
EOF
483483
}
484484

485-
variable "grafana_okta_enabled" {
486-
description = "okta config to enable"
487-
type = bool
488-
default = false
489-
}
490-
491-
variable "grafana_oauth_client_id" {
492-
description = "client_id of the App"
493-
type = string
494-
default = ""
495-
}
496-
497-
variable "grafana_oauth_client_secret" {
498-
description = "client_secret between app and authorisation server"
499-
type = string
500-
default = ""
501-
}
502-
503485
### CLUSTER Config where grafana is deployed ###
504486
variable "cluster_name" {
505487
description = "Cluster Name where Grafana is deployed"

0 commit comments

Comments
 (0)