{{- if (include "thanos.querier.createSDConfigmap" .) }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "thanos.fullname" . }}-querier-sd-configmap
  labels: {{- include "thanos.labels" . | nindent 4 }}
    app.kubernetes.io/component: querier
data:
  servicediscovery.yml: |-
    {{- include "thanos.tplValue" (dict "value" .Values.querier.sdConfig "context" $) | nindent 4 }}
{{ end }}
