Post

Harbor's PostgreSQL maintenance fence is now selected in the stack

Harbor's PostgreSQL maintenance fence is now selected in the stack

This push wires the maintenance-fence Kustomize component into the Harbor stack so the database writer is fenced during maintenance. I added the component selection to the stack inputs and documented the expected order of operations in the storage notes.

Selecting the maintenance fence component

In IaC/homelab/us-west-2/apps/harbor/stack.hcl I added a kustomize block with components set to maintenance-fence. This makes the Harbor deployment render the fence alongside its normal resources, so the PostgreSQL writer is gated before any database copy begins. The change is limited to the stack input; the component itself is not modified here.

Documented transfer sequence

The storage notes now state that both maintenance inputs are selected during the transfer. The reconciled writer fence must be verified before the database copy, and normal sources are restored together only after the database and registry blob pair have been validated. I treat this as the intended procedure, not as proof that a transfer has already run.

Platform transfer pattern

A team running a stateful registry can reuse this pattern: render a maintenance component that fences the database writer, verify the fence is active before copying data, and restore normal sources as a single step after validation. Keeping the fence as a selectable component makes the maintenance window explicit in GitOps rather than an out-of-band toggle.

This post is licensed under CC BY 4.0 by the author.