diff --git a/.claude/rules/stack-and-commands.md b/.claude/rules/stack-and-commands.md index f3a6cde..fa374d6 100644 --- a/.claude/rules/stack-and-commands.md +++ b/.claude/rules/stack-and-commands.md @@ -12,7 +12,7 @@ make apps-pg-status # shared apps-pg cluster health (read-only) make pg-status # confirms retired Bitnami postgresql-ha is absent make valkey-status # confirms Valkey is absent make consumption-preflight CONSUMING_ENTITY=entity: ESTIMATE_EUR= -make db-deploy | apps-pg-deploy # production-touching +make forgejo-db-deploy | apps-pg-deploy # production-touching ``` `pg-deploy` and `valkey-deploy` are fail-closed. `*-status` / `*-logs` diff --git a/Makefile b/Makefile index 18b2496..140e8a4 100644 --- a/Makefile +++ b/Makefile @@ -58,18 +58,10 @@ CREDENTIAL_HELPER_PURPOSE ?= flex-auth-openbao-smoke ##@ CloudNative PG (cnpg) — primary database operator -db-deploy: ## Apply Gitea cnpg Cluster (creates gitea-db in databases namespace) - $(KUBECTL) apply -f helm/gitea-db-cluster.yaml - -db-status: ## Show cnpg cluster health - $(KUBECTL) cnpg status gitea-db -n databases 2>/dev/null || \ - $(KUBECTL) get cluster gitea-db -n databases -o wide - -db-shell: ## Open psql shell on gitea-db primary - $(KUBECTL) cnpg psql gitea-db -n databases -- -U gitea gitea - -db-logs: ## Tail gitea-db primary logs - $(KUBECTL) logs -n databases -l cnpg.io/cluster=gitea-db -f --tail=50 +db-deploy db-status db-shell db-logs: ## Retired Gitea-era gitea-db targets; use forgejo-db-* + @echo "gitea-db was the CoulombCore-era Gitea database and does not exist on railiance01." >&2 + @echo "Use forgejo-db-deploy / forgejo-db-status / forgejo-db-shell (RAPPS-WP-0019-T05)." >&2 + @exit 2 ##@ Forgejo database (railiance01 production forge)