Skip to content

Commit

Permalink
Merge pull request #122 from FlowFuse/resource-values-strings
Browse files Browse the repository at this point in the history
Force Resource limits to Strings
  • Loading branch information
hardillb authored Oct 23, 2023
2 parents bbd8f33 + 9fda5fe commit 7c1bb45
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}` })
}
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}` })
}

const credentialSecret = await project.getSetting('credentialSecret')
Expand Down

0 comments on commit 7c1bb45

Please sign in to comment.