Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Several small fixes #5

Merged
merged 3 commits into from
Jul 27, 2020
Merged

Several small fixes #5

merged 3 commits into from
Jul 27, 2020

Conversation

vinokurig
Copy link
Collaborator

@vinokurig vinokurig commented Jul 24, 2020

  • Fix an error with axios dependency
  • Skip the authentication if the login state is restored
  • Do not pass cerificate to the login command if Hosted Che
  • Update yarn.lock file

fixes eclipse-che/che#17471

Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
const osCommand = spawn('oc', ['login', server, '--certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt', '--token', token]);
const args = ['login', server, '--token', token];
if (!isHostedChe) {
args.push('--certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you extract the path to a constant? Just for paying attention on it, if the path is not changed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to keep it inline, this path is used only in a single place.

Copy link

@ericwill ericwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vinokurig vinokurig merged commit da685af into master Jul 27, 2020
@vinokurig vinokurig deleted the che-17471 branch August 11, 2021 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An error appears when starting a workspace with the OpenShift-connector plugin
3 participants