Skip to content

Commit

Permalink
bug 1464020. Correct the memory param to use underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
jcantrill committed Jun 29, 2017
1 parent 2c6f41e commit 84deaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openshift-auth-proxy",
"version": "0.1.0",
"version": "0.1.1",
"description": "Reverse proxy to authorize requests against OpenShift 3",
"main": "openshift-auth-proxy.js",
"bin": "./openshift-auth-proxy.js",
Expand Down
3 changes: 1 addition & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ if echo "${OCP_AUTH_PROXY_MEMORY_LIMIT:-}" | grep -qE "^([[:digit:]]+)([GgMm])?i
num="${DEFAULT_MIN}"
fi

NODE_OPTIONS="--max-old-space-size=$((num / BYTES_PER_MEG))"
export NODE_OPTIONS
export NODE_OPTIONS="${NODE_OPTIONS:---max_old_space_size=$((num / BYTES_PER_MEG))}"
else
echo "Unable to process the OCP_AUTH_PROXY_MEMORY_LIMIT: '${OCP_AUTH_PROXY_MEMORY_LIMIT}'."
echo "It must be a number, optionally followed by 'G'(Gigabytes) or 'M' (Megabytes), e.g. 64M"
Expand Down

0 comments on commit 84deaa0

Please sign in to comment.