apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: immich-application
  namespace: argocd
  annotations:
    argocd-image-updater.argoproj.io/image-list: ghcr.io/immich-app/immich-server # no version constraints, use newest
    argocd-image-updater.argoproj.io/write-back-method: declarative # write back to git
spec:
  project: default
  sources:
    - chart: immich
      repoURL: https://immich-app.github.io/immich-charts
      targetRevision: 0.2.0
      helm:
        releaseName: immich
        valueFiles:
          - $values/apps/immich/values.yaml
    - repoURL: 'https://github.com/moll-re/k3s-infra.git'
      targetRevision: main
      ref: values
  destination:
    server: https://kubernetes.default.svc
    namespace: immich