apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: prometheus-operator
  namespace: argocd
spec:
  project: default
  source:
    repoURL: 'https://github.com/your-org/observability-stack.git'
    targetRevision: HEAD
    path: charts/prometheus-operator
    helm:
      valueFiles:
        - ../../manifests/prometheus-operator/values.yaml
  destination:
    server: https://kubernetes.default.svc
    namespace: monitoring
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
