question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chectl inject should support oc CLI

See original GitHub issue

Is your enhancement related to a problem? Please describe.

Currently, chectl workspace inject -k command uses kubectl to copy a kubeconfig file from local machine to the plugin sidecar. It was introduced in the PR https://github.com/che-incubator/chectl/pull/33 and supposed to be used with Che deployed on minikube, with Che Kubernetes Plugin.

chectl workspace inject -k command may be also helpful with Che deployed on minishift. For that, it has be improved to use oc CLI as well.

Describe the solution you’d like

chectl may detect which platform is currently used (minikube/minishift) and use kubectl or oc CLI.

Describe alternatives you’ve considered

From Mario’s comment:

An alternative is to check if kubectl is installed locally and if it’s not check for oc. kubectl and oc are interchangeable so it doesn’t matter if the platform is openshift or kubernetes: kubectl works on an openshift cluster and oc works on a kubernetes cluster.

Additional context

kubectl cp command usage in chectl sources https://github.com/che-incubator/chectl/blob/1744186acbf0b78404cb1fd267e8ce1a9985144e/src/commands/workspace/inject.ts#L173

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
l0rdcommented, Feb 11, 2020

chectl may detect which platform is currently used (minikube/minishift) and use kubectl or oc CLI.

An alternative is to check if kubectl is installed locally and if it’s not check for oc. kubectl and oc are interchangeable so it doesn’t matter if the platform is openshift or kubernetes: kubectl works on an openshift cluster and oc works on a kubernetes cluster.

0reactions
mmorhuncommented, Feb 14, 2020

Also need to implement the command for Openshift case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Che on OpenShift using the chectl management tool
You can install Che on OpenShift. Prerequisites. An active oc session with administrative permissions to the OpenShift cluster. See Getting started with the ......
Read more >
Getting started with the OpenShift CLI
With the OpenShift command-line interface (CLI), the oc command, you can create applications and manage OpenShift Container Platform projects from a ...
Read more >
Administration guide Red Hat OpenShift Dev Spaces 3.1
To prepare a OpenShift Dev Spaces installation, learn about OpenShift Dev Spaces ecosystem and deployment constraints: Section 1.1, “Supported platforms” ...
Read more >
User · Quay
S sunix che-oc, 11/28/2019, normal ... S sunix chectl, 05/31/2022, normal. S sunix uppercase-service, (Empty Repository), normal. S sunix che-theia-rust ...
Read more >
Search OpenShift CI
#1954848, bug, 19 months ago, OC help wrong example NEW ... #1960553, bug, 17 months ago, Can add quay.io to blockedRegistries that cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found