fix(k8s): Correct API call signatures for k8s client v1.4

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kelly
2025-12-11 08:47:27 -07:00
parent 8206dce821
commit 6f0a58f5d2

View File

@@ -118,11 +118,7 @@ router.post('/workers/scale', async (req: Request, res: Response) => {
await client.patchNamespacedDeploymentScale({
name: WORKER_DEPLOYMENT,
namespace: NAMESPACE,
body: {
spec: { replicas },
},
}, undefined, undefined, undefined, undefined, undefined, {
headers: { 'Content-Type': 'application/strategic-merge-patch+json' },
body: { spec: { replicas } },
});
console.log(`[K8s] Scaled ${WORKER_DEPLOYMENT} to ${replicas} replicas`);