oc logout is not working when logged in with system:admin
Issue
- How to get logged out from
system:admin
? - While trying to get logged out from
system:admin
getting an error.
# oc whoami
system:admin
# oc logout
error: You must have a token in order to logout.
- While trying to run the command getting an error.
# oc login -u system:admin
Logged in as "system:admin" using existing credentials.
# oc whoami -t
error: no token is currently in use for this session
Environment
- Red Hat OpenShift Container Platform 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.