feat: add pgbouncer check to overview, auto-sync ArgoCD after upgrade
Some checks failed
Build & Release / build (push) Has been cancelled
Some checks failed
Build & Release / build (push) Has been cancelled
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user