An open API service indexing awesome lists of open source software.

https://github.com/bostrt/oc-flogin


https://github.com/bostrt/oc-flogin

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# What is?

OpenShift client plugin that finds and uses `kubeconfig` and `kubeadmin-password` file to login to a OpenShift 4 cluster.

# Install

Install somewhere on your `$PATH`:

```
# sudo wget -P /usr/local/bin https://raw.githubusercontent.com/bostrt/oc-flogin/master/oc-flogin
# sudo chmod +x /usr/local/bin/oc-flogin
```

# Usage

```
# oc flogin ~/installations/test-cluster
Using /home/user/installations/test-cluster/auth/kubeconfig
Login successful.

You have access to 60 projects, the list has been suppressed. You can list all projects with 'oc projects'

Using project "openshift-operators".

# oc-flogin ~/clusters -D 4
Multiple kubeconfig file found. Please select one from the list
[0] /home/user/clusters/aws/ocp4.4/auth/kubeconfig
[1] /home/user/clusters/aws/ocp4.5/authkubeconfig

Please select the kubeconfig file: 0
Login with user/password from /home/user/clusters/aws/ocp4.4/auth/kubeconfig
Login successful.
```

That's about it, nothing real special.