Skip to content

Commit

Permalink
Force Resource limits to Strings
Browse files Browse the repository at this point in the history
fixes #121
  • Loading branch information
hardillb committed Oct 23, 2023
1 parent bbd8f33 commit 1176f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1176f31

Please sign in to comment.