- Move flat service manifests into structured subdirs (apps/, bootstrap-jobs/, repair-jobs/, migration-jobs/, validation-jobs/, node-ops/, networking/) - Retire oneoffs/ directories across services - Remove oceanus cluster and its host roles; add aether cluster + terraform scaffolding - Reorganize scripts/ into ops/, render/, sync/, manual-tests/ - Add Makefile with render/validate/test/flux targets and repo-structure tests - Update flux-system application CRs to the new paths - Add hermes-automated-triage-24h-plan knowledge doc (+ comms mirror) - Refresh knowledge catalogs, dashboards, vmalert rules, quality contract Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
13 lines
460 B
Bash
13 lines
460 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
for phase in Succeeded Failed; do
|
|
kubectl get pods -A --field-selector="status.phase=${phase}" \
|
|
-o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{"\n"}{end}' \
|
|
| while read -r namespace name; do
|
|
if [ -n "${namespace}" ] && [ -n "${name}" ]; then
|
|
kubectl delete pod -n "${namespace}" "${name}" --ignore-not-found --grace-period=0 --wait=false
|
|
fi
|
|
done
|
|
done
|