# clusters/atlas/flux-system/applications/nextcloud-mail-sync/kustomization.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: nextcloud-mail-sync
  namespace: flux-system
  annotations:
    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
    atlas.bstein.dev/suspend-reason: "Mail sync resumes after Nextcloud and Mailu are active."
spec:
  interval: 10m
  suspend: true
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
  path: ./services/nextcloud-mail-sync
  targetNamespace: nextcloud
  timeout: 2m
  dependsOn:
    - name: keycloak
