stolostron / deploy

Deploy Development Builds of Open Cluster Management (OCM) on RedHat Openshift Container Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG][DEPLOY] Uninstall script fails to detect oc 4.10 versions

leo8a opened this issue · comments

Describe the bug
uninstall.sh fails to detect installed oc 4.10 versions. Code can be found here.

To Reproduce
Steps to reproduce the behavior:
Install oc version 4.10+
./uninstall.sh

Reproducing steps:

  1. Clone repo
[root@bastion-aio1-8a integration-work]# git clone https://github.com/stolostron/deploy.git /opt/rhacm_deploy
Cloning into '/opt/rhacm_deploy'...
remote: Enumerating objects: 4666, done.
remote: Counting objects: 100% (1060/1060), done.
remote: Compressing objects: 100% (243/243), done.
remote: Total 4666 (delta 1013), reused 824 (delta 817), pack-reused 3606
Receiving objects: 100% (4666/4666), 1.73 MiB | 12.99 MiB/s, done.
Resolving deltas: 100% (3898/3898), done.
  1. Execute the uninstall.sh script
[root@bastion-aio1-8a integration-work]# cd /opt/rhacm_deploy
[root@bastion-aio1-8a rhacm_deploy]# ./uninstall.sh
Testing connection
oc cli version 4.3 or greater required. Please visit https://access.redhat.com/downloads/content/290/ver=4.3/rhel---8/4.3.9/x86_64/product-software.
  1. Check the actual version of the oc tool
[root@bastion-aio1-8a rhacm_deploy]# oc version 
Client Version: 4.10.11
Server Version: 4.9.19
Kubernetes Version: v1.22.3+2cb6068