Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimak98/ocp-cluster-login
OpenShift Interactive Login CLI Tool
https://github.com/dimak98/ocp-cluster-login
cli interactive openshift openshift-cluster opensource python selenium
Last synced: 1 day ago
JSON representation
OpenShift Interactive Login CLI Tool
- Host: GitHub
- URL: https://github.com/dimak98/ocp-cluster-login
- Owner: dimak98
- License: mit
- Created: 2023-12-23T17:05:37.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2023-12-23T20:39:00.000Z (9 months ago)
- Last Synced: 2024-09-04T10:45:10.995Z (28 days ago)
- Topics: cli, interactive, openshift, openshift-cluster, opensource, python, selenium
- Language: Python
- Homepage:
- Size: 2.38 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![Logo](assets/logo.png)
# OCP Cluster Login
`ocp-cluster-login` is a Python tool designed to facilitate the login process to OpenShift clusters. It automates the web login flow using Selenium, making it easier to handle authentication for OpenShift clusters.
## Features
- Automates OpenShift web login process.
- Supports Chrome and Firefox web drivers.
- Checks if a user is already logged in before attempting to log in again.
- Handles timeouts and browser driver errors.## Prerequisites
Before you begin, ensure you have met the following requirements:
- Python 3.6 or higher.
- Selenium installed.
- Selenium WebDriver for Chrome or Firefox.## Installation
```bash
pip install ocp-cluster-login
```## Usage
```bash
ocp-cluster-login [-h] [-s SERVER] [-k] [-t TIMEOUT] [-d {chrome,firefox}]
```
The tool supports several command line arguments to customize its behavior:
- `-s`, `--server`: Specify the API server URL. Defaults to `https://api.ocp.domain.com:6443`.
- `-k`, `--insecure-skip-tls-verify`: Skip TLS verification if necessary.
- `-t`, `--timeout`: Set the timeout for waiting for login in seconds. Default is 60 seconds.
- `-d`, `--driver`: Choose the web driver. Supported drivers are `chrome` and `firefox`. Default is `chrome`.# Contributing
We welcome contributions to the OpenShift Interactive Login CLI Tool! If you'd like to contribute, please follow the guidelines outlined in our [CONTRIBUTING.md](CONTRIBUTING.md) file.