Flux + ConfigHub Workflow
Use this skill when working in a Kubernetes GitOps repository deployed by Flux.
1. Check both sides before changing anything
- Repo intent (offline, no cluster needed): Run
/confighub:inventoryorconfighub mini inventory .to map everyKustomization,HelmRelease,GitRepository/OCIRepository, andflux-systempath. - Change history: Run
/confighub:why KEYorcub mini changes --why KEYto see why a setting currently has its value before modifying it. - Cluster state (if connected): Use the Flux MCP server (
flux-operator-mcp) orflux get kustomizations,helmreleases -Ato inspect live reconciliation and errors. Never guess cluster health from Git alone.
2. Choose the right path for this repo
- Read-only (
HelmReleaseor Kustomize): Answer inventory, drift, and "why did this change?" questions locally. Propose Git PR edits with clear reasons and let Flux reconcile as usual. Gated OCI delivery (Kustomize repos with
kustomize-flux):- Edit the Kustomize base or overlay and commit normally.
Propose the change to ConfigHub with its reason:
cub mini upload APP --component APP --change-desc "Why this change is needed"- Staging takes the update; production waits as a change order. Hand the exact printed
cub mini approve BASE/ORDERcommand to the person.
3. Show a compact status card
Summarize both Flux and ConfigHub state clearly:
╭─ ConfigHub × Flux · orders ────────────────────────────────────╮
│ ├── Inventory ✓ 1 Kustomization · overlays/{staging,prod} │
│ ├── Flux MCP ✓ prod synced (rev main@a1b2c3d) │
│ ├── Staging ✓ updated by agent ORDER_LIMIT: 100 → 250 │
│ └── Production ⏳ waiting for you prod stays at 100 │
│ └── your gate: cub mini approve BASE/ORDER │
╰────────────────────────────────────────────────────────────────╯4. Strict boundaries
- Never run
cub mini approve,cub mini deploy-from-hub, orcub mini back-to-gityourself. - Never bypass Flux with
kubectl applyorkubectl editon a production cluster. - Never put plaintext Kubernetes
Secretvalues in manifests or change descriptions.