Skip to content

Commit

Permalink
Merge pull request #10823 from dahorak/extract-also-kubectl-when-extr…
Browse files Browse the repository at this point in the history
…acting-oc-from-image

get also kubectl binary when extracting oc from image
  • Loading branch information
petr-balogh authored Nov 7, 2024
2 parents c225623 + cf40bb8 commit 4fa79a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocs_ci/utility/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4fa79a7

Please sign in to comment.