Rename file and do not run ruler when no mimir

Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
Michel Hollands 2023-10-19 10:28:59 +01:00
parent 687c77c0f6
commit bc5cdadb9f
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.local.metrics.enabled }}
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }} {{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@ -91,8 +92,6 @@ spec:
runAsUser: 10001 runAsUser: 10001
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
serviceAccount: meta-mimir
serviceAccountName: meta-mimir
terminationGracePeriodSeconds: 180 terminationGracePeriodSeconds: 180
topologySpreadConstraints: topologySpreadConstraints:
- labelSelector: - labelSelector:
@ -124,3 +123,4 @@ spec:
name: rules name: rules
name: rules name: rules
{{- end }} {{- end }}
{{- end }}

View File

@ -1,3 +1,4 @@
{{- if .Values.local.metrics.enabled }}
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }} {{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }}
--- ---
apiVersion: v1 apiVersion: v1
@ -16,3 +17,4 @@ data:
{{ ($.Files.Glob "src/rules/tempo-rules.yaml").AsConfig | indent 2 }} {{ ($.Files.Glob "src/rules/tempo-rules.yaml").AsConfig | indent 2 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}