Skip to content

Commit

Permalink
chore(infra-apps): Add fail for kube-event-exporter deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Jan 16, 2025
1 parent 40d4609 commit fccf253
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 61 deletions.
25 changes: 2 additions & 23 deletions 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.227.0
version: 0.227.1
home: https://github.com/adfinis/helm-charts/tree/main/charts/infra-apps
sources:
- https://github.com/adfinis/helm-charts
Expand All @@ -18,25 +18,4 @@ annotations:
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- kind: changed
description: "chore: Update velero chart from 6.7.0 to 8.1.0 (app version 1.13.2 -> 1.15.0)"
links:
- name: "Bump Velero to 1.15.0 (Upgrade Guide)"
url: "https://velero.io/docs/v1.15/upgrade-to-1.15/"
- name: "Bump Velero to 1.15.0 (Changelog)"
url: https://github.com/vmware-tanzu/velero/releases/tag/v1.15.0
- name: "feat: add extraArgs to Velero node agent configuration"
url: https://github.com/vmware-tanzu/helm-charts/commit/5e02307abf51850be91eb77f1f39ad9fb10cd603
- name: "fix: fix imagePullSecrets to velero server serviceaccount"
url: https://github.com/vmware-tanzu/helm-charts/commit/fb5a08a6f0fcb6078c89656a09fbb88e9776644a
- name: "feat: Adds resources and limits for repository maintenance job"
url: https://github.com/vmware-tanzu/helm-charts/commit/42fed361e1482c85a28c1da32ad72e6b2e03635b
- name: "feat: Adds --keep-latest-jobs-count for repository maintenance job"
url: https://github.com/vmware-tanzu/helm-charts/commit/721abcba0b378a2b2695b79d056be68c903a81f1
- name: "fix: maintenance Job resource requests"
url: https://github.com/vmware-tanzu/helm-charts/commit/88ecfa4609678199ea1265c1d89c7b17d3b645d7
- name: "fix: render schedule annotations only if present in values"
url: https://github.com/vmware-tanzu/helm-charts/commit/47b2f729b9ebe38508ecc046560da01922546df6
- name: "fix: add version label to deployment"
url: https://github.com/vmware-tanzu/helm-charts/commit/bbb36ccf357d6baf7f13accbc0b169e6efceb3d4
- name: "feat: allow configuring updateStrategy of node-agent DaemonSet"
url: https://github.com/vmware-tanzu/helm-charts/commit/e4e793b1d57579a5a71862ebd3ac9fcf822e85aa
description: "Fail installations of deprecated kube-event-exporter"
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.

2 changes: 0 additions & 2 deletions charts/infra-apps/ci/default-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ rbacManager:
TODO: add values in values.yaml
kured:
enabled: true
kubeEventExporter:
enabled: true
velero:
enabled: true
mimir:
Expand Down
36 changes: 1 addition & 35 deletions charts/infra-apps/templates/kubernetes-event-exporter.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
{{ if .Values.kubeEventExporter.enabled }}
{{ template "argoconfig.application" (list . "infra-apps.kubeEventExporter") }}
{{ fail "kube-event-exporter is DEPRECATED, use otel-collector instead" }}
{{ end }}

{{- define "infra-apps.kubeEventExporter" -}}{{- $app := unset .Values.kubeEventExporter "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 fccf253

Please sign in to comment.