diff --git a/ocs_ci/utility/utils.py b/ocs_ci/utility/utils.py index 4ff2ac1584a..66e1836277f 100644 --- a/ocs_ci/utility/utils.py +++ b/ocs_ci/utility/utils.py @@ -1127,6 +1127,10 @@ def get_openshift_client( "No backups exist and new binary was unable to be verified." ) + if not os.path.exists("kubectl"): + log.info("Creating kubectl link to oc binary.") + os.link("oc", "kubectl") + # return to the previous working directory os.chdir(previous_dir)