Retire gitea-db Make targets (complete 4a91b85; RAPPS-WP-0019-T05)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 276069@bnt-lap001 Assistant-Session: 2e192b3d-b3e8-4403-94d4-d55a2c8b476c
This commit is contained in:
parent
7fbba919c5
commit
8bf107eb85
2 changed files with 5 additions and 13 deletions
|
|
@ -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:<slug> ESTIMATE_EUR=<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`
|
||||
|
|
|
|||
16
Makefile
16
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue