Skip to content

Commit

Permalink
Merge pull request #892 from MikaelSmith/fix-two-digit-patch
Browse files Browse the repository at this point in the history
Detect two-digit Kubernetes patch versions
  • Loading branch information
laverya authored Nov 12, 2020
2 parents 460564c + 7a011ca commit 62e5f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/common/discover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ discoverCurrentKubernetesVersion() {
local fullCluster="$1"

set +e
CURRENT_KUBERNETES_VERSION=$(cat /etc/kubernetes/manifests/kube-apiserver.yaml 2>/dev/null | grep image: | grep -oE '[0-9]+.[0-9]+.[0-9]')
CURRENT_KUBERNETES_VERSION=$(cat /etc/kubernetes/manifests/kube-apiserver.yaml 2>/dev/null | grep image: | grep -oE '[0-9]+.[0-9]+.[0-9]+')
set -e

if [ -z "$CURRENT_KUBERNETES_VERSION" ]; then
Expand Down

0 comments on commit 62e5f7e

Please sign in to comment.