apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: batch
  namespace: argocd
spec:
  project: default
  destination:
    server: https://kubernetes.default.svc
    namespace: batch
  sources:
    - repoURL: ghcr.io/purisev
      chart: universal-helm-chart
      targetRevision: 3.3.0
      helm:
        releaseName: batch
        valueFiles:
          - $values/docs/02-examples/05-cronjobs/values.yaml
    - repoURL: https://github.com/purisev/universal-helm-chart.git
      targetRevision: v3.3.0
      ref: values
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true
