25 lines
676 B
YAML
25 lines
676 B
YAML
{{- if .Values.thanos.enabled }}
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: {{ .Values.thanos.namespace | default "observability" }}
|
|
labels:
|
|
{{- include "template.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- include "template.annotations" . | nindent 4 }}
|
|
{{- range .Values.thanos.secretNamespaces }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
namespace: {{ .name | default "observability" }}
|
|
name: thanos-object-storage-config
|
|
labels:
|
|
{{- include "template.labels" $ | nindent 4 }}
|
|
annotations:
|
|
{{- include "template.annotations" $ | nindent 4 }}
|
|
data:
|
|
thanos.yaml: |-
|
|
{{ tpl ($.Files.Get "thanos.yaml") $ | b64enc }}
|
|
{{- end }}
|
|
{{- end }} |