# clusters/atlas/flux-system/applications/jenkins/kustomization.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: jenkins
  namespace: flux-system
  annotations:
    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
    atlas.bstein.dev/suspend-reason: "CI controller changes are applied only during planned maintenance."
spec:
  interval: 10m
  suspend: true
  path: ./services/jenkins
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
  targetNamespace: jenkins
  dependsOn:
    - name: helm
  healthChecks:
    - apiVersion: apps/v1
      kind: Deployment
      name: jenkins
      namespace: jenkins
    - apiVersion: v1
      kind: Service
      name: jenkins
      namespace: jenkins
  wait: false
  timeout: 20m
