apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: docusaurus
  namespace: argocd
  finalizers:
  - resources-finalizer.argocd.argoproj.io
  annotations:
    argocd-image-updater.argoproj.io/image-list: docusaurus=zot0213.kro.kr/docusaurus:latest
    argocd-image-updater.argoproj.io/docusaurus.update-strategy: digest
    argocd-image-updater.argoproj.io/docusaurus.pull-secret: pullsecret:argocd/zot-creds
    argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/gitea-creds
    argocd-image-updater.argoproj.io/git-branch: main
    argocd-image-updater.argoproj.io/docusaurus.helm.image-tag: image.tag
spec:
  project: default
  sources:
  - repoURL: https://github0213.com/K3S-HOME/web-apps.git
    targetRevision: main
    path: charts/web-app
    helm:
      valueFiles:
      - $values/docusaurus/helm-values.yaml
  - repoURL: https://github0213.com/K3S-HOME/applications.git
    targetRevision: main
    ref: values
  destination:
    server: https://kubernetes.default.svc
    namespace: docusaurus
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
      allowEmpty: false
    syncOptions:
    - CreateNamespace=true
    - PrunePropagationPolicy=foreground
    - PruneLast=true
    retry:
      limit: 5
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
    managedNamespaceMetadata:
      labels:
        goldilocks.fairwinds.com/enabled: 'true'
  revisionHistoryLimit: 10
