modify nav..
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-13 16:55:40 +09:00
parent 09480540ec
commit be6509a4f6
8 changed files with 184 additions and 60 deletions
+10 -2
View File
@@ -63,6 +63,14 @@ export type LauncherBackendDeployResult = {
logs: string;
};
export type DeploymentResourceLimits = {
replicas?: number;
cpuRequest?: string;
cpuLimit?: string;
memoryRequest?: string;
memoryLimit?: string;
};
export type LauncherBuildEnvVariable = {
key: string;
value: string;
@@ -281,10 +289,10 @@ export function getLauncherBackendDeployment() {
return apiRequest<LauncherBackendDeployment>('/launcher/backend-deployment');
}
export function deployLauncherBackend(image: string) {
export function deployLauncherBackend(image: string, resources?: DeploymentResourceLimits) {
return apiRequest<LauncherBackendDeployResult>('/launcher/backend-deployment', {
method: 'POST',
body: JSON.stringify({ image })
body: JSON.stringify({ image, resources: resources && Object.keys(resources).length ? resources : undefined })
});
}