# clusters/atlas/flux-system/applications/health/kustomization.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: health
  namespace: flux-system
  annotations:
    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
    atlas.bstein.dev/suspend-reason: "Health stack is staged pending account and mail flows."
spec:
  interval: 10m
  suspend: true
  path: ./services/health
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
  targetNamespace: health
  dependsOn:
    - name: keycloak
    - name: postgres
    - name: vault
  healthChecks:
    - apiVersion: apps/v1
      kind: Deployment
      name: wger
      namespace: health
  wait: false
