configmap-tempo.yaml 729 B

123456789101112131415161718192021222324
  1. {{- if not .Values.useExternalConfig }}
  2. apiVersion: v1
  3. {{- if eq .Values.configStorageType "Secret" }}
  4. kind: Secret
  5. {{- else }}
  6. kind: ConfigMap
  7. {{- end }}
  8. metadata:
  9. name: {{ tpl .Values.externalConfigSecretName . }}
  10. labels:
  11. {{- include "tempo.labels" (dict "ctx" .) | nindent 4 }}
  12. namespace: {{ .Release.Namespace | quote }}
  13. {{- if eq .Values.configStorageType "Secret" }}
  14. data:
  15. tempo-query.yaml: {{ tpl .Values.queryFrontend.query.config . | b64enc }}
  16. tempo.yaml: {{ include "tempo.calculatedConfig" . | b64enc }}
  17. {{- else }}
  18. data:
  19. tempo-query.yaml: |
  20. {{- tpl .Values.queryFrontend.query.config . | nindent 4 }}
  21. tempo.yaml: |
  22. {{ include "tempo.calculatedConfig" . | nindent 4 }}
  23. {{- end -}}
  24. {{- end }}