From 4e16dc19a26b4f17822f9c85509e084b1e974c35 Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:36:45 +0100 Subject: [PATCH] fix: Deprecate Kubernetes versions under v1.19 + support Openshift 3.11 (#222) Signed-off-by: odubajDT --- istio-configuration/configure-istio.sh | 26 ++++++++++++++++++++++++++ quickstart/expose-keptn.sh | 25 +++++++++++++++++++++++++ quickstart/multistage-delivery.sh | 24 ++++++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/istio-configuration/configure-istio.sh b/istio-configuration/configure-istio.sh index cfe9bd2..a3185f1 100755 --- a/istio-configuration/configure-istio.sh +++ b/istio-configuration/configure-istio.sh @@ -17,6 +17,31 @@ fi echo "External IP for istio-ingressgateway is ${INGRESS_IP}, creating configmaps..." +K8S_VERSION=$(kubectl version -ojson) +K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | jq -r .serverVersion.minor) + +if [[ "$K8S_VERSION_MINOR" < "19" ]] +then +echo "Detected Kubernetes version < 1.19" +# Applying ingress-manifest +kubectl apply -f - <