From 10133e253b963560be94accbeb6668cb81f3bc32 Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Fri, 24 Nov 2023 16:55:42 +0100 Subject: [PATCH] fix(e2e): Error in check crd support script --- script/check_crd_api_support.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/check_crd_api_support.sh b/script/check_crd_api_support.sh index b45ad83fad..fa9e3e4e45 100755 --- a/script/check_crd_api_support.sh +++ b/script/check_crd_api_support.sh @@ -53,9 +53,9 @@ fi crd_version=$("${client}" explain customresourcedefinitions | grep VERSION | awk '{print $2}') api="apiextensions.k8s.io" -if [ "${crd_version}" == "${api}/v1beta1" ]; then +if [ "${crd_version}" == "${api}/v1beta1" ] || [ "${crd_version}" == "v1beta1" ]; then echo "ERROR: CRD API version is too old to install camel-k in this way. Try using the client CLI app, which is able to convert the APIs." -elif [ "${crd_version}" != "${api}/v1" ]; then +elif [ "${crd_version}" != "${api}/v1" ] && [ "${crd_version}" != "v1" ]; then echo "ERROR: CRD API version '${crd_version}' is not supported." else echo "OK"