Removing the Harbor maintenance fence after the QNAP PostgreSQL cutover
The Harbor stack in us-west-2 no longer carries the maintenance-fence kustomize component. That component was added to block writers while the registry’s database moved onto the QNAP PostgreSQL instance, and the commit that removes it marks the cutover as complete.
What the HCL change shows
In IaC/homelab/us-west-2/apps/harbor/stack.hcl, a three-line kustomize.components block containing only maintenance-fence has been deleted. The surrounding inputs map is otherwise unchanged. The fence component is a local convention that patches the Harbor deployment to reject write traffic—typically by scaling the registry pod to zero or setting a read-only annotation—so the database can be migrated without concurrent mutations.
Why the fence existed and why it goes now
The commit message ties the removal to a QNAP PostgreSQL cutover. During that migration the fence stayed in place to guarantee a quiet database. Once the new PostgreSQL endpoint was verified and the Harbor deployment re-pointed, the fence’s job was done. Leaving it would keep the registry read-only indefinitely, so the deletion is the explicit ‘writers resumed’ signal in Git.
Verification that the cutover stuck
No test changes accompany this push. The verification path is operational: after the fence is removed, the next Harbor push—whether a chart upgrade or a terraform apply—should reconcile a deployment that accepts docker push again. The concrete next check is a successful image push to the registry and a clean helm test or equivalent smoke test against the new database endpoint.
The pattern for platform teams running stateful cutovers
Wrap the read-only guard in a removable kustomize component, gate the component’s presence on a single line in the environment’s stack file, and delete that line in the same merge that declares the cutover complete. The Git history then shows: fence added, migration executed, fence removed—three commits that any auditor can trace without reading runbooks. Swap Harbor for any stateful workload and the same three-step structure applies.