feat: add pgbouncer check to overview, auto-sync ArgoCD after upgrade
Some checks failed
Build & Release / build (push) Has been cancelled

This commit is contained in:
Ryan Moon
2026-04-03 22:00:10 -05:00
parent 32a9368e9d
commit 8ec3b4d247
3 changed files with 34 additions and 3 deletions

View File

@@ -113,6 +113,17 @@ export async function getConfigMap(namespace: string, name: string): Promise<Rec
return cm.data ?? {};
}
export async function syncArgoApp(name: string) {
await k8sFetch(`/apis/argoproj.io/v1alpha1/namespaces/argocd/applications/${name}`, {
method: "PATCH",
headers: { "Content-Type": "application/merge-patch+json" },
body: JSON.stringify({
metadata: { annotations: { "argocd.argoproj.io/refresh": "hard" } },
operation: { sync: { prune: true } },
}),
}, [404]);
}
export async function rolloutRestart(namespace: string, deployment: string) {
return (await k8sFetch(`/apis/apps/v1/namespaces/${namespace}/deployments/${deployment}`, {
method: "PATCH",