Skip to content

inconsistent behaviour of "ocm cluster login" w.r.t. the --token flag #412

Description

@porridge

AFAICT, ocm cluster login:

  • without --token, prompts for a username and password and logs oc in
  • with --token, just opens a page in the browser and exits 0

This makes it hard to incorporate ocm cluster login in a shell script.

Instead, with --token the tool should prompt for a username (or take it from --username) and after (optionally) displaying the page, prompt for the token, and then execute oc with it to log in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions