UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit a9d8a4c3 authored by Michael Martin's avatar Michael Martin
Browse files

Merge branch 'fix-thanos-values' into 'master'

dig some values in case the values are not set

See merge request !5097
parents 01dc4776 1fc5f7a9
No related branches found
No related tags found
1 merge request!5097dig some values in case the values are not set
Pipeline #3641935 passed
...@@ -40,6 +40,7 @@ istio: ...@@ -40,6 +40,7 @@ istio:
thanos: thanos:
gateways: gateways:
- istio-system/{{ default "public" .Values.addons.thanos.ingress.gateway }} - istio-system/{{ default "public" .Values.addons.thanos.ingress.gateway }}
{{- with .Values.addons.thanos.objectStorage }} {{- with .Values.addons.thanos.objectStorage }}
{{- if and (eq $.Values.addons.thanos.strategy "scalable") (not (and .endpoint .region)) }} {{- if and (eq $.Values.addons.thanos.strategy "scalable") (not (and .endpoint .region)) }}
minio: minio:
...@@ -60,6 +61,11 @@ monitoring: ...@@ -60,6 +61,11 @@ monitoring:
storegateway: storegateway:
enabled: false enabled: false
{{- if .Values.kiali.enabled }}
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
query: query:
dnsDiscovery: dnsDiscovery:
...@@ -78,15 +84,65 @@ query: ...@@ -78,15 +84,65 @@ query:
{{- if (dig "values" "storegateway" "enabled" false .Values.addons.thanos) }} {{- if (dig "values" "storegateway" "enabled" false .Values.addons.thanos) }}
- dns+thanos-storegateway.thanos.svc.cluster.local:10901 - dns+thanos-storegateway.thanos.svc.cluster.local:10901
{{- end }} {{- end }}
{{- if .Values.addons.thanos.sso.enabled }} {{- if or .Values.addons.thanos.sso.enabled .Values.kiali.enabled }}
{{- $thanosAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $thanosAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
podLabels: podLabels:
{{- if .Values.addons.thanos.sso.enabled }}
{{- $thanosAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $thanosAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
{{ $thanosAuthserviceKey }}: {{ $thanosAuthserviceValue }} {{ $thanosAuthserviceKey }}: {{ $thanosAuthserviceValue }}
{{- end }}
{{- if .Values.kiali.enabled }}
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- end }} {{- end }}
{{- if not (.Values.addons.thanos.objectStorage.endpoint | empty) }} {{- if and (dig "queryFrontend" "enabled" true .Values.addons.thanos.values) $.Values.kiali.enabled }}
queryFrontend:
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- if and (dig "bucketweb" "enabled" false .Values.addons.thanos.values) .Values.kiali.enabled }}
bucketweb:
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- if and (dig "ruler" "enabled" false .Values.addons.thanos.values) .Values.kiali.enabled }}
ruler:
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- if and (dig "receive" "enabled" false .Values.addons.thanos.values) .Values.kiali.enabled }}
receive:
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- if and (dig "bucketweb" "enabled" false .Values.addons.thanos.values) .Values.kiali.enabled }}
receiveDistributor:
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- if or (dig "compactor" "enabled" false .Values.addons.thanos.values) (not (.Values.addons.thanos.objectStorage.endpoint | empty)) }}
compactor:
enabled: true
{{- if .Values.kiali.enabled }}
podLabels:
{{- include "kialiAppLabel" . | nindent 4 }}
{{- include "kialiVersionLabel" . | nindent 4 }}
{{- end }}
{{- end }}
{{- if not (.Values.addons.thanos.objectStorage.endpoint | empty) }}
objstoreConfig: |- objstoreConfig: |-
type: s3 type: s3
config: config:
...@@ -101,12 +157,8 @@ storegateway: ...@@ -101,12 +157,8 @@ storegateway:
useEndpointGroup: true useEndpointGroup: true
endpoint: {{ .Values.addons.thanos.objectStorage.endpoint }} endpoint: {{ .Values.addons.thanos.objectStorage.endpoint }}
compactor:
enabled: true
query: query:
extraFlags: extraFlags:
- "--endpoint=dns+monitoring-monitoring-kube-thanos-discovery.monitoring.svc.cluster.local:{{- dig "values" "query" "containerPorts" "grpc" 10901 .Values.addons.thanos }}" - "--endpoint=dns+monitoring-monitoring-kube-thanos-discovery.monitoring.svc.cluster.local:{{- dig "values" "query" "containerPorts" "grpc" 10901 .Values.addons.thanos }}"
{{- end }} {{- end }}
{{- end }} {{- end }}
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