Skip to content

Need an easy way to get the current token from a CLI session #3048

@liggitt

Description

@liggitt

Apparently, this isn't friendly enough:

token=$(oc config view --flatten -o template -t '{{with index .users 0}}{{.user.token}}{{end}}')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions