redhat-cop / openshift-toolkit

A collection of code samples to help you get started with OpenShift
Apache License 2.0
234 stars 150 forks source link

use oc client to fix terminating #127

Closed mcanoy closed 4 years ago

mcanoy commented 4 years ago

Updates the script to give the user the option to use the oc client instead of certs. Assumes the user has the correct privileges. Leverages the oc client to get the users token and current server then makes the curl request.

old way (still available) leveraging certs:

bash fix-terminating.sh <cluster-url> <namespace> 

optional new way

bash fix-terminating.sh -c <namespace>