Skip to content

Commit 0fcee94

Browse files
committed
Disable wait on foundation kustomizations to fix startup delays
Root cause: Flux dependency polling causes cascading delays during startup. When wait:true is enabled, each kustomization waits for health checks AND dependencies use 30s polling intervals instead of immediate reconciliation. Issue: fluxcd/kustomize-controller#1412 - Dependencies poll every 30s instead of reacting to ready events - Status becomes stale, showing "dependency not ready" even when ready - Cascading effect: each layer adds 30-60s delay - Total startup time: 5-10 minutes instead of <1 minute Solution: Disable wait on foundation-layer kustomizations: - snapshot-controller: Creates CRDs and controller (no health check needed) - ceph-csi (app): Creates namespace only (already fixed in parent) - external-secrets: Creates CRDs and operator (dependencies handle health) Impact: - Startup time reduced from minutes to seconds - Dependencies still enforced (dependsOn unchanged) - Child kustomizations still wait for parents - Health checks happen at application layer, not infrastructure The dependency chain remains intact: 1. CRDs deploy immediately (no wait) 2. Operators deploy immediately after CRDs (no wait) 3. Applications wait for operators via dependencies 4. Storage classes wait for CSI drivers
1 parent 48e8fe4 commit 0fcee94

File tree

3 files changed

+3
-3
lines changed
  • kubernetes/apps/2-foundation

3 files changed

+3
-3
lines changed

kubernetes/apps/2-foundation/ceph-csi/app/ks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
name: flux-system
2626
namespace: flux-system
2727
targetNamespace: ceph-csi
28-
wait: true
28+
wait: false
2929
timeout: 5m
3030
retryInterval: 30s
3131
decryption:

kubernetes/apps/2-foundation/external-secrets/external-secrets/ks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
name: flux-system
1919
namespace: flux-system
2020
targetNamespace: external-secrets
21-
wait: true
21+
wait: false
2222
timeout: 5m
2323
retryInterval: 30s
2424
healthChecks:

kubernetes/apps/2-foundation/snapshot-controller/ks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ spec:
2020
name: flux-system
2121
namespace: flux-system
2222
targetNamespace: snapshot-controller
23-
wait: true
23+
wait: false
2424
timeout: 5m
2525
retryInterval: 30s

0 commit comments

Comments
 (0)