Updated Kube Cred Manager Daemon Set to support cluster shutdown
| | |
| | | echo "Gather info..." |
| | | echo "----------------------------------------------------------------------" |
| | | # context |
| | | intapi=$(oc get infrastructures.config.openshift.io cluster -o "jsonpath={.status.apiServerURL}") |
| | | intapi=$(oc get infrastructures.config.openshift.io cluster -o "jsonpath={.status.apiServerInternalURL}") |
| | | context="$(oc --config=/etc/kubernetes/kubeconfig config current-context)" |
| | | # cluster |
| | | cluster="$(oc --config=/etc/kubernetes/kubeconfig config view -o "jsonpath={.contexts[?(@.name==\"$context\")].context.cluster}")" |