https://github.com/bostrt/oc-flogin
https://github.com/bostrt/oc-flogin
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bostrt/oc-flogin
- Owner: bostrt
- Created: 2020-07-05T00:24:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T22:15:30.000Z (over 5 years ago)
- Last Synced: 2025-02-12T20:35:15.117Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.