Repository navigation
Conversation
The deployed dev instance had no supported way to reset its data:
emptying it meant hand-running kubectl and psql against the cluster,
and the seed binary is not shipped in the backend image.
`just cluster::{backup,wipe,reseed} <context>` does it from a
laptop. Every recipe, including the private _wipe-db, takes the kube
context explicitly and refuses a cluster whose ingress does not
serve hackagon-dev.dscompute.ch; wipe and reseed take a pg_dumpall
first and ask for the context name to be typed back. Only the
`hackagon` database is recreated, so Keycloak and its logins
survive. reseed refuses unless HEAD contains origin/main and
components/backend matches it, since the seed migrates the schema
before writing anything.
sabinem
force-pushed
the
chore/just-cluster-recipes
branch
from
October 6, 2026 10:30
32d7e6d to
9c5705b
Compare
reseed now builds the seed and fetches the backend's config and database password before it confirms, backs up or wipes, so a compile error or a wrong resource name leaves dev untouched rather than empty. _wipe-db no longer restarts the backend behind an environment flag; wipe and reseed each bring it back through a named restore_backend in an EXIT trap. The backup is written to .partial and renamed only on success, the port-forward wait fails with a message, and the wait for backend pods gives up after two minutes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add just commands to seed, dump and reset the test data on the cluster's dev instance.