Skip to content

Commit

Permalink
CASMTRIAGE-7405 remove --short from kubectl version cmd in check_mast…
Browse files Browse the repository at this point in the history
…er_taints.sh
  • Loading branch information
leliasen-hpe committed Oct 18, 2024
1 parent 3796ebc commit c1cf722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goss-testing/scripts/check_master_taints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
# the following taint is expected in CSM 1.6+ which has K8s 1.24+
taint="node-role.kubernetes.io/control-plane:NoSchedule"

k8s_version=$(kubectl version --short -o json | jq -r '.serverVersion')
k8s_version=$(kubectl version -o json | jq -r '.serverVersion')
major=$(echo $k8s_version | jq -r '.major')
minor=$(echo $k8s_version | jq -r '.minor')
if [[ $major -ne 1 ]]; then
Expand Down

0 comments on commit c1cf722

Please sign in to comment.