Skip to content

Commit

Permalink
remove helm function required
Browse files Browse the repository at this point in the history
  • Loading branch information
trouaux committed Nov 27, 2024
1 parent 6d0aa6f commit 72b3af0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions thanos/charts/templates/ruler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,19 @@ spec:

# The labels to add to any alert when communicating with Alertmanager
labels:
region: {{ required ".Values.global.region missing" $.Values.global.region }}
region: {{ .Values.global.region }}
{{- if $.Values.ruler.externalClusterLabels.enabled }}
cluster: {{ if $.Values.global.cluster }}{{ $.Values.global.cluster }}{{ else }}{{ $.Values.global.region }}
{{- end }}
cluster_type: {{ required ".Values.global.clusterType missing" $.Values.global.clusterType }}
cluster_type: {{ .Values.global.clusterType }}
{{- else }}
cluster: {{ required ".Values.global.region missing" $.Values.global.region }}
cluster: {{ .Values.global.region }}
{{- end }}
alertQueryUrl: {{ $.Values.ruler.externalUrl }} # ???
{{ if required "$.Values.ruler.alertmanagers.hosts missing" $.Values.ruler.alertmanagers.hosts }}
{{ .Values.ruler.alertmanagers.hosts }}
alertmanagersConfig:
name: {{ include "release.name" . }}-alertmanager-config # ???
key: alertManagerConfig.yaml
{{- end }}

{{- if and $.Values.global.linkerd_enabled $.Values.global.linkerd_requested }}
podMetadata:
Expand Down

0 comments on commit 72b3af0

Please sign in to comment.