UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 182f2798 authored by Andrew Shoell's avatar Andrew Shoell
Browse files

Merge branch 'mgm-prometheus-label-fix' into 'master'

SKIP UPGRADE always add "app: prometheus" label to prometheus pod

See merge request !5283
parents a8920161 c33bb303
No related branches found
No related tags found
1 merge request!5283SKIP UPGRADE always add "app: prometheus" label to prometheus pod
Pipeline #3686696 passed
......@@ -221,10 +221,9 @@ prometheus:
enableFeatures:
- remote-write-receiver
{{- end }}
{{- if or $istioInjection .Values.monitoring.sso.enabled .Values.addons.vault.enabled .Values.kiali.enabled }}
podMetadata:
{{- if or .Values.monitoring.sso.enabled (and .Values.networkPolicies.enabled .Values.addons.vault.enabled) .Values.kiali.enabled }}
labels:
app: prometheus
{{- if .Values.monitoring.sso.enabled }}
{{- $prometheusAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $prometheusAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
......@@ -233,7 +232,6 @@ prometheus:
{{- if and .Values.networkPolicies.enabled .Values.addons.vault.enabled }}
vault-ingress: "true"
{{- end }}
{{- end }}
{{- if or $istioInjection .Values.addons.vault.enabled }}
annotations:
{{- if $istioInjection }}
......@@ -251,7 +249,6 @@ prometheus:
vault.hashicorp.com/role: "prometheus"
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.addons.vault.enabled }}
additionalScrapeConfigs:
- job_name: vault
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment