Skip to content

Commit

Permalink
fix(e2e): Error in check crd support script
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer authored and squakez committed Nov 28, 2023
1 parent cd65517 commit 10133e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/check_crd_api_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 10133e2

Please sign in to comment.