Qualifying maintenance image pulls on Talos via Harbor mirrors
This push adds a safety layer for the upcoming Talos maintenance window. A new helper (scripts/talos-harbor-mirrors.py) runs before stopping Registry and Jobservice, confirming that the required images (registry-photon, harbor-registryctl, harbor-jobservice) exist in Docker Hub caches and pulling them when needed. The accompanying test suite (scripts/ci/talos-harbor-mirrors-test.py) now covers unreviewed images, Docker Hub mirrors, and cache gaps, while the docs and architecture wiki note preserve database and registry blobs during the write fence.
New helper functions prepull_origin_images and prepull_registry_runtime
In scripts/talos-harbor-mirrors.py two private functions were introduced. prepull_origin_images walks each source, splits tag/digest/repository, builds an alias, then queries the client’s kubectl image list output to see whether the alias appears. If not and --execute is omitted the node is marked missing. When --execute is true the helper runs run(kubectl image pull …) and records pulled and verified or cached. prepull_registry_runtime performs the same flow for registry containers. Both functions return a JSON payload describing the operation for later verification.
Expanded test suite for Harbor image pulls
The test file scripts/ci/talos-harbor-mirrors-test.py grew by roughly 55 lines. It now loads the image catalog from scripts/config/harbor-images.json, defines components for harbor-jobservice, registry-photon, harbor-registryctl, and maps image sources. Four failure modes—None, unreviewed image, docker.io mirror, default mirror, and missing cache—are exercised via subTest. For each failure the script simulates a kubectl deployment, injects the appropriate image string, and reports result = "pulled and verified" or result = "cached". An optional --execute flag makes the helper actually pull images; without it the run only audits the cache.
Documentation and storage‑state preservation
docs/harbor-image-mirroring.md gained a step‑by‑step guide to run the helper before a maintenance window that stops Registry and Jobservice. openwiki/architecture/storage-and-state.md was updated to stress that the Harbor staged PostgreSQL move must keep the database and registry blobs across the write fence, and to qualify the restart images on eligible Talos nodes before stopping deployments.