Skip to content

Commit

Permalink
Merge pull request #80 from huats/fixdeploymentshortflag
Browse files Browse the repository at this point in the history
Removing the short flag from kubectl
  • Loading branch information
chihyuwu authored Aug 15, 2024
2 parents 53cefcb + d2cae9f commit 6c990fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config_file="${SOURCE_PATH}/config/client-info.yml"
plugin_dir="/var/lib/kubelet/plugins/$plugin_name"

parse_version(){
ver=$(kubectl version --short | grep Server | awk '{print $3}')
ver=$(kubectl version | grep Server | awk '{print $3}')
major=$(echo "${ver##*v}" | cut -d'.' -f1)
minor=$(echo "${ver##*v}" | cut -d'.' -f2)

Expand Down Expand Up @@ -106,4 +106,4 @@ case "$1" in
print_usage
exit 1
;;
esac
esac

0 comments on commit 6c990fc

Please sign in to comment.