$ pip3 install requests
PROTOCOL = https or http
DOMAINNAME = openshift.example.com # OpenShift domain name
PORT = 6443 # API access port
ocp_username = "admin" #your openshift username
ocp_password = "admin@123" #your openshift password
verify_ssl = False #Is enabled OpenShift SSL layer, True or False
host = "https://api.openshift.example.com:6443" # f"{PROTOCOL}://api.{DOMAINNAME}:{PORT}"
initial_kwargs = {
"ocp_username": ocp_username,
"ocp_password": ocp_password,
"verify_ssl": verify_ssl,
"host": host,
}
$ python3 openshift_auth.py