Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Mar 7, 2022
1 parent 27086f2 commit d995247
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,21 @@ EOF
}

function configure_kubelet() {
NEW_FLAGE=$(echo "${OLD_FLAGS%\"*} --container-runtime=remote --container-runtime-endpoint=${CRI_SOCK}\"")
NEW_FLAGS=$(echo "${OLD_FLAGS%\"*} --container-runtime=remote --container-runtime-endpoint=${CRI_SOCK}\"")

case "${FORCE}" in
[yY][eE][sS] | [yY])
: # Skip
;;
*)

echo "============= Diff kubeadm-flags.env with new =============="
diff "${KUBEADM_FLAGS_ENV}" <(echo "${NEW_FLAGE}") || :
echo "============== The original kubeadm-flags.env =============="
echo cat "${KUBEADM_FLAGS_ENV}"
cat "${KUBEADM_FLAGS_ENV}"
echo "================ Configure kubelet ========================="
echo "cp ${KUBEADM_FLAGS_ENV} ${KUBEADM_FLAGS_ENV}.bak"
echo "cat <<EOF > ${KUBEADM_FLAGS_ENV}"
echo "${NEW_FLAGE}"
echo "${NEW_FLAGS}"
echo "EOF"
echo "systemctl daemon-reload"
echo "systemctl restart kubelet"
Expand Down Expand Up @@ -164,7 +165,7 @@ function configure_kubelet() {

cp "${KUBEADM_FLAGS_ENV}" "${KUBEADM_FLAGS_ENV}.bak"
cat <<EOF >${KUBEADM_FLAGS_ENV}
${NEW_FLAGE}
${NEW_FLAGS}
EOF
systemctl daemon-reload
systemctl restart kubelet
Expand Down

0 comments on commit d995247

Please sign in to comment.