Upgrading Faber (Zero-Downtime Two-Step Guide)
Faber uses additive CRD schema evolution and idempotent SQLite/PostgreSQL schema migrations so upgrades stay safe and reversible. Always split upgrades into two ordered steps: apply CRDs and the Helm chart first, then roll out pinned image digests second.
Why Two Steps
Section titled “Why Two Steps”- Helm does not upgrade CRDs automatically:
helm upgradeskips manifests undercrds/. Applying updatedfaberops.dev/v1alpha1CRDs before starting a newer controller guarantees new fields and CEL validation rules exist inkube-apiserverbefore the controller reads or writes them. - Digest rollout separation: Updating RBAC, chart templates, and CRDs independently from container image digests makes it straightforward to verify manifest diffs and roll back an image digest without reverting schema updates.
Step 1: Apply CRDs and Upgrade the Helm Chart
Section titled “Step 1: Apply CRDs and Upgrade the Helm Chart”1.1 Pull and Verify the Chart
Section titled “1.1 Pull and Verify the Chart”Verify the Cosign signature on the OCI Helm chart before extracting CRDs (see SECURITY.md for full Cosign verification flags):
helm pull oci://ghcr.io/faberops/charts/faber --version 2.0.0 --untar --untardir /tmp/faber-chart1.2 Apply Updated CRDs First
Section titled “1.2 Apply Updated CRDs First”Apply all 9 faberops.dev/v1alpha1 CRDs using server-side apply:
kubectl apply --server-side -f /tmp/faber-chart/faber/crds/If you use the bundled agentSandbox subchart (agentSandbox.enabled=true), also apply the vendored agent-sandbox CRDs:
kubectl apply --server-side -f /tmp/faber-chart/faber/charts/agent-sandbox/crds/Confirm all CRDs are established:
kubectl get crds | grep faberops.dev1.3 Upgrade the Helm Release
Section titled “1.3 Upgrade the Helm Release”Run helm upgrade while keeping your existing pinned image digests (or letting the chart target the release tag if you do not pin digests separately):
helm upgrade faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ -f values.yamlFor GitOps-managed clusters (Flux HelmRelease or Argo CD Application), commit the CRD manifests (or configure crds: CreateReplace in Flux HelmRelease.spec.upgrade) in a first PR or sync wave before bumping the chart version.
Step 2: Roll Out Pinned Image Digests
Section titled “Step 2: Roll Out Pinned Image Digests”Once CRDs and RBAC changes are reconciled, update image.digest and (if Tier 1 sandboxes are enabled) sandbox.image.digest to the target immutable SHA-256 digests:
image: repository: ghcr.io/faberops/faber-controller tag: v2.0.0 digest: "sha256:REPLACE_WITH_CONTROLLER_DIGEST"
sandbox: image: repository: ghcr.io/faberops/faber-sandbox tag: v2.0.0 digest: "sha256:REPLACE_WITH_SANDBOX_DIGEST"Apply the digest update and verify the rollout:
helm upgrade faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ -f values.yaml
kubectl -n faber rollout status deploy/faberRelease Notes: v1.6.0 to v1.7.0
Section titled “Release Notes: v1.6.0 to v1.7.0”Upgrading from v1.6.0 to v1.7.0 requires no CRD schema changes or database migrations and preserves full chart-first upgrade compatibility:
- Zero-network default: New
catalog.*Helm values (catalog.sources,catalog.refreshInterval,catalog.registryAuthExistingSecret,catalog.registryAuthSecretKey) are omitted from the controller Deployment when unset, so existingv1.6.0controller pods continue to start cleanly during Step 1 before you roll outv1.7.0images in Step 2. - Embedded Core Catalog: After Step 2 rolls out
v1.7.0, the Web GUI Catalog Browser (/catalog) and/api/v1/catalogAPI serve the embedded starter recipes, inputs, tools, and outputs automatically with zero outbound network calls. - Optional OCI catalogs: To browse external OCI registries such as
oci://ghcr.io/faberops/catalog:v1or a private corporate registry from the Web GUI, configurecatalog.sources(andcatalog.registryAuthExistingSecretfor private registries) after Step 2 completes, and allow HTTPS egress to your registry host ifnetworkPolicy.enabled=true. - New
faberctl catalogCLI: Upgradefaberctltov1.7.0to use the 10 newfaberctl catalogsubcommands (search,inspect,install,diff,upgrade,init,validate,test,build,publish) andFABER_CATALOG_TOKEN. See FaberOps Catalogs.
Persistence and Zero-Downtime Behavior
Section titled “Persistence and Zero-Downtime Behavior”- PostgreSQL HA (
store.driver=postgres,replicaCount >= 2): Usesstrategy: RollingUpdate. Starting replicas acquire a PostgreSQL session advisory lock (pg_advisory_lock) to serialize idempotent schema migrations, establishLISTEN faber_run_eventsbefore reporting/readyz, and transfer reconciler leadership via Kubernetes Lease with zero HTTP/SSE downtime. - SQLite (
store.driver=sqlite,replicaCount=1): Usesstrategy: Recreatebecause theReadWriteOncePVC can attach to one pod at a time. ActiveWaitingApprovalcheckpoints persist safely across restarts in/data/faber.db. - In-flight Tier 1 sandboxes: Any interrupted sandbox claim is cleaned up automatically by
OrphanRunSweeper(controller.orphanSweepInterval, default5m).
Rollback
Section titled “Rollback”Because CRD schema updates are additive, rolling back an image digest only requires reverting image.digest and sandbox.image.digest (or running helm rollback faber <revision> -n faber) without deleting CRDs or losing WaitingApproval checkpoints.
Post-Upgrade Verification
Section titled “Post-Upgrade Verification”kubectl -n faber get deploy,podskubectl -n faber get maintenancepolicy,gitopsrepository,modelprofilefaberctl --server https://faber.example.com version