Skip to content

Commit

Permalink
create also kubectl link to oc binary when extracting oc from image
Browse files Browse the repository at this point in the history
- kubectl binary is used by some 3rd party scripts (e.g. ACM deployment
  script)

Signed-off-by: Daniel Horak <[email protected]>
  • Loading branch information
dahorak committed Nov 7, 2024
1 parent c225623 commit cf40bb8
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 cf40bb8

Please sign in to comment.