feat: add opentelemetry-collector helmfile setup

This commit is contained in:
2025-06-23 14:05:54 +02:00
parent 927172f756
commit 18901db46f
5 changed files with 156 additions and 0 deletions
@@ -0,0 +1,38 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: opentelemetry-collector
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: otel
server: 'https://kubernetes.default.svc'
project: sys
syncPolicy:
# managedNamespaceMetadata:
# labels:
# component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
{{- if .Values.otel.autosync }}
automated:
prune: true
selfHeal: true
{{- end }}
sources:
- repoURL: 'https://open-telemetry.github.io/opentelemetry-helm-charts'
targetRevision: 0.107.0
chart: opentelemetry-collector
helm:
valueFiles:
- $values/values/opentelemetry-collector/values.yaml
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: main
ref: values
{{- end }}