---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-git-dotfiles
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-git-dotfiles
  prune: true
  # Setting spec.wait to true makes Flux wait for the Job to complete before
  # it is considered ready.
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-git-dotfiles-kube10001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-git-dotfiles-kube10001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube10001 Kustomization
  # will wait until all the Jobs in maintenance-git-dotfiles-kube10001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-git-dotfiles
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-guix
  prune: true
  # Setting spec.wait to true makes Flux wait for the Job to complete before
  # it is considered ready.
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-pull-kube10001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-guix-pull-kube10001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube10001 Kustomization
  # will wait until all the Jobs in maintenance-git-dotfiles-kube10001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix
  - name: maintenance-git-dotfiles-kube10001
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-system-reconfigure-kube10001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-guix-system-reconfigure-kube10001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube10001 Kustomization
  # will wait until all the Jobs in maintenance-guix-pull-kube10001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix-pull-kube10001
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-package-manifest-kube10001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster3/maintenance-guix-package-manifest-kube10001
  prune: true
  # This means that the maintenance-guix-package-manifest-kube10001 Kustomization
  # will wait until all the Jobs in maintenance-guix-pull-kube10001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix-pull-kube10001
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
