Skip to main content

No project description provided

Project description

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

pip install ocp-cluster-login

Usage

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 file in the GitHub Repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocp-cluster-login-0.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

ocp_cluster_login-0.1.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page