From 1176f318ca7b62e042463f94fb426a948b49ed16 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 23 Oct 2023 10:59:30 +0100 Subject: [PATCH] Force Resource limits to Strings fixes #121 --- kubernetes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes.js b/kubernetes.js index d801253..02e1a3c 100644 --- a/kubernetes.js +++ b/kubernetes.js @@ -271,10 +271,10 @@ const createDeployment = async (project, options) => { localPod.spec.containers[0].env.push({ name: 'FORGE_LICENSE_TYPE', value: 'ee' }) } if (stack.memory) { - localPod.spec.containers[0].env.push({ name: 'FORGE_MEMORY_LIMIT', value: stack.memory }) + localPod.spec.containers[0].env.push({ name: 'FORGE_MEMORY_LIMIT', value: stack.memory.toString() }) } if (stack.cpu) { - localPod.spec.containers[0].env.push({ name: 'FORGE_CPU_LIMIT', value: stack.cpu }) + localPod.spec.containers[0].env.push({ name: 'FORGE_CPU_LIMIT', value: stack.cpu.toString() }) } const credentialSecret = await project.getSetting('credentialSecret')