OpenShift authentication via Azure made easy. A simple CLI tool to log into OpenShift clusters via Azure.
This script will use a custom Chrome instance controlled by puppeteer which will navigate the login for you and automatically get the token needed to login.
It will try to call the oc login
command so ensure that you have the oc binary on your path.
The cookies for the Microsoft/Azure login will be stored in your home directory in the folder: ~/.osa/profiles
. It will reuse the cookies for each time you run the command so you will only have to log in to Azure once in a while.
git clone [email protected]:david-marconis/osa.git # Clone this git repo
cd osa
npm install
npm link
osa [clusterHostName]
npm r osa -g
rm -r ~/.osa # This will delete the azure cookies stored locally.