Skip to content

[release-4.19] OCPBUGS-56899: Fix dynamic-system-reserved-calc.sh when only true parameter is used #5094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions templates/common/_base/files/kubelet-auto-sizing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ contents:
function dynamic_node_sizing {
rm -f ${NODE_SIZES_ENV}
dynamic_memory_sizing
dynamic_cpu_sizing $2
set_es $1
dynamic_cpu_sizing $1
set_es $2
#dynamic_ephemeral_sizing
#dynamic_pid_sizing
}
Expand All @@ -140,9 +140,9 @@ contents:
fi
new_version=$(jq .version $NODE_AUTO_SIZING_VERSION_FILE)
if [ $1 == "true" ]; then
dynamic_node_sizing $4 $new_version
dynamic_node_sizing $new_version $4
elif [ $1 == "false" ]; then
static_node_sizing $2 $3 $4
else
echo "Unrecognized command line option. Valid options are \"true\" or \"false\""
fi
fi