Skip to content

Commit

Permalink
Remove the redundant conditional statement (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2ush authored Mar 11, 2021
1 parent bd903ad commit a1d8ded
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,7 @@ echo "$(jq --arg mebibytes_to_reserve "${mebibytes_to_reserve}Mi" --arg cpu_mill
'. += {kubeReserved: {"cpu": $cpu_millicores_to_reserve, "ephemeral-storage": "1Gi", "memory": $mebibytes_to_reserve}}' $KUBELET_CONFIG)" > $KUBELET_CONFIG

if [[ "$USE_MAX_PODS" = "true" ]]; then
if [[ -n "$MAX_PODS" ]]; then
echo "$(jq ".maxPods=$MAX_PODS" $KUBELET_CONFIG)" > $KUBELET_CONFIG
else
echo "No entry for $INSTANCE_TYPE in $MAX_PODS_FILE. Not setting max pods for kubelet"
fi
echo "$(jq ".maxPods=$MAX_PODS" $KUBELET_CONFIG)" > $KUBELET_CONFIG
fi

mkdir -p /etc/systemd/system/kubelet.service.d
Expand Down

0 comments on commit a1d8ded

Please sign in to comment.