diff --git a/bootstrap/kustomizations/kustomization-cert-manager.yaml b/bootstrap/kustomizations/kustomization-cert-manager.yaml index 4d81b60..3983050 100644 --- a/bootstrap/kustomizations/kustomization-cert-manager.yaml +++ b/bootstrap/kustomizations/kustomization-cert-manager.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 15m path: ./cert-manager + dependsOn: + - name: external-dns prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-external-dns.yaml b/bootstrap/kustomizations/kustomization-external-dns.yaml index ada4c48..fbf39e0 100644 --- a/bootstrap/kustomizations/kustomization-external-dns.yaml +++ b/bootstrap/kustomizations/kustomization-external-dns.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 30m path: ./external-dns + dependsOn: + - name: sealed-secrets prune: true # remove any elements later removed from the above path timeout: 10m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-letsencrypt-wildcard-cert.yaml b/bootstrap/kustomizations/kustomization-letsencrypt-wildcard-cert.yaml index 0ba7283..e0c9625 100644 --- a/bootstrap/kustomizations/kustomization-letsencrypt-wildcard-cert.yaml +++ b/bootstrap/kustomizations/kustomization-letsencrypt-wildcard-cert.yaml @@ -7,8 +7,7 @@ spec: interval: 15m path: ./letsencrypt-wildcard-cert dependsOn: - - name: "cert-manager" - - name: "sealed-secrets" + - name: cert-manager prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-longhorn.yaml b/bootstrap/kustomizations/kustomization-longhorn.yaml index 343356d..536aac6 100644 --- a/bootstrap/kustomizations/kustomization-longhorn.yaml +++ b/bootstrap/kustomizations/kustomization-longhorn.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 15m path: ./longhorn + dependsOn: + - name: nfs-subdir-external-provisioner prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-config--metallb-system.yaml b/bootstrap/kustomizations/kustomization-metallb-config.yaml similarity index 85% rename from bootstrap/kustomizations/kustomization-config--metallb-system.yaml rename to bootstrap/kustomizations/kustomization-metallb-config.yaml index 6f6312d..037b8ac 100644 --- a/bootstrap/kustomizations/kustomization-config--metallb-system.yaml +++ b/bootstrap/kustomizations/kustomization-metallb-config.yaml @@ -1,12 +1,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: config--metallb-system + name: metallb-config namespace: flux-system spec: interval: 15m - dependsOn: - - name: metallb--metallb-system + dependsOn: + - name: metallb-system path: ./metallb-config prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h diff --git a/bootstrap/kustomizations/kustomization-metallb.yaml b/bootstrap/kustomizations/kustomization-metallb-system.yaml similarity index 93% rename from bootstrap/kustomizations/kustomization-metallb.yaml rename to bootstrap/kustomizations/kustomization-metallb-system.yaml index 7fd0fbd..7f72eda 100644 --- a/bootstrap/kustomizations/kustomization-metallb.yaml +++ b/bootstrap/kustomizations/kustomization-metallb-system.yaml @@ -1,7 +1,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: metallb--metallb-system + name: metallb-system namespace: flux-system spec: interval: 15m diff --git a/bootstrap/kustomizations/kustomization-nfs-subdir-external-provisioner.yaml b/bootstrap/kustomizations/kustomization-nfs-subdir-external-provisioner.yaml index 52834a8..232b11a 100644 --- a/bootstrap/kustomizations/kustomization-nfs-subdir-external-provisioner.yaml +++ b/bootstrap/kustomizations/kustomization-nfs-subdir-external-provisioner.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 15m path: ./nfs-subdir-external-provisioner + dependsOn: + - name: traefik-config prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-reflector.yaml b/bootstrap/kustomizations/kustomization-reflector.yaml index 670afc6..7cc2eff 100644 --- a/bootstrap/kustomizations/kustomization-reflector.yaml +++ b/bootstrap/kustomizations/kustomization-reflector.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 15m path: ./reflector + dependsOn: + - name: letsencrypt-wildcard-cert prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-sealed-secrets.yaml b/bootstrap/kustomizations/kustomization-sealed-secrets.yaml index e063fcc..a2a9232 100644 --- a/bootstrap/kustomizations/kustomization-sealed-secrets.yaml +++ b/bootstrap/kustomizations/kustomization-sealed-secrets.yaml @@ -6,6 +6,9 @@ metadata: spec: interval: 15m path: ./sealed-secrets + dependsOn: + - name: metallb-system + - name: metallb-config prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/bootstrap/kustomizations/kustomization-traefik-config.yaml b/bootstrap/kustomizations/kustomization-traefik-config.yaml new file mode 100644 index 0000000..e608bba --- /dev/null +++ b/bootstrap/kustomizations/kustomization-traefik-config.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: traefik-config + namespace: flux-system +spec: + interval: 15m + path: ./traefik-config + dependsOn: + - name: traefik + prune: true # remove any elements later removed from the above path + timeout: 2m # if not set, this defaults to interval duration, which is 1h + sourceRef: + kind: GitRepository + name: flux-system diff --git a/bootstrap/kustomizations/kustomization-traefik.yaml b/bootstrap/kustomizations/kustomization-traefik.yaml index 62cca47..bbe40cb 100644 --- a/bootstrap/kustomizations/kustomization-traefik.yaml +++ b/bootstrap/kustomizations/kustomization-traefik.yaml @@ -6,6 +6,8 @@ metadata: spec: interval: 15m path: ./traefik + dependsOn: + - name: reflector prune: true # remove any elements later removed from the above path timeout: 2m # if not set, this defaults to interval duration, which is 1h sourceRef: diff --git a/traefik/bazarr-middleware.yaml b/traefik-config/bazarr-middleware.yaml similarity index 100% rename from traefik/bazarr-middleware.yaml rename to traefik-config/bazarr-middleware.yaml diff --git a/traefik/prowlarr-middleware.yaml b/traefik-config/prowlarr-middleware.yaml similarity index 100% rename from traefik/prowlarr-middleware.yaml rename to traefik-config/prowlarr-middleware.yaml diff --git a/traefik/radarr-middleware.yaml b/traefik-config/radarr-middleware.yaml similarity index 100% rename from traefik/radarr-middleware.yaml rename to traefik-config/radarr-middleware.yaml diff --git a/traefik/sonarr-middleware.yaml b/traefik-config/sonarr-middleware.yaml similarity index 100% rename from traefik/sonarr-middleware.yaml rename to traefik-config/sonarr-middleware.yaml