Skip to content

Commit

Permalink
chore(thanos): make fail
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Tauro <toni.tauro@adfinis.com>
  • Loading branch information
eyenx committed Jul 20, 2023
1 parent a654406 commit ddc67cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 37 deletions.
2 changes: 1 addition & 1 deletion charts/infra-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: infra-apps
description: Argo CD app-of-apps config for infrastructure components
type: application
version: 0.167.0
version: 0.168.0
home: https://github.com/adfinis/helm-charts/tree/main/charts/infra-apps
sources:
- https://github.com/adfinis/helm-charts
Expand Down
2 changes: 1 addition & 1 deletion charts/infra-apps/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 1 addition & 35 deletions charts/infra-apps/templates/thanos.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
{{ if .Values.thanos.enabled }}
{{ template "argoconfig.application" (list . "infra-apps.thanos") }}
{{ fail("thanos is DEPRECATED, use mimir instead") }}
{{ end }}

{{- define "infra-apps.thanos" -}}{{- $app := unset .Values.thanos "enabled" -}}{{- $name := default $app.namespace $app.name -}}
metadata:
name: {{ template "common.fullname" . }}-{{ $name }}
{{- with $app.annotations }}
annotations:
{{ toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if $app.project }}
project: {{ $app.project | quote }}
{{- end }}
source:
repoURL: {{ $app.repoURL | quote }}
chart: {{ $app.chart | quote }}
targetRevision: {{ $app.targetRevision | quote }}
helm:
releaseName: {{ $name | quote }}
values: |-
nameOverride: {{ $name | quote }}
{{- $app.values | toYaml | nindent 8 }}
{{- if $app.destination }}
destination:
{{ $app.destination | toYaml | nindent 4 }}
{{- end }}
{{- if $app.syncPolicy }}
syncPolicy:
{{ $app.syncPolicy | toYaml | nindent 4 }}
{{- end }}
{{- if $app.ignoreDifferences }}
ignoreDifferences:
{{ $app.ignoreDifferences | toYaml | nindent 4 }}
{{- end }}
{{- end -}}

0 comments on commit ddc67cb

Please sign in to comment.