From 7a011ca1db5aaf44f3b34f2c778e82a08efc6dc2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 12 Nov 2020 08:55:15 -0800 Subject: [PATCH] Detect two-digit Kubernetes patch versions Detects two-digit patch versions for the current Kubernetes version (such as 1.17.13). Fixes #890. --- scripts/common/discover.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common/discover.sh b/scripts/common/discover.sh index 7ba287faf5..db5f7b9c39 100644 --- a/scripts/common/discover.sh +++ b/scripts/common/discover.sh @@ -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