A utilities repository for https://github.com/RedHatQE/openshift-python-wrapper
Project description
openshift-python-utilities
Pypi: openshift-python-utilities
A utilities repository for openshift-restclient-python
Release new version
requirements:
- Export GitHub token
export GITHUB_TOKEN=<your_github_token>
Run the following once (execute outside repository dir for example ~/
):
sudo npm install --global release-it
npm install --save-dev @release-it/bumper
usage:
- Create a release, run from the relevant branch.
To create a 4.11 release, run:
git checkout v4.11
git pull
release-it # Follow the instructions
Installation
From source using poetry.
git clone https://github.com/RedHatQE/openshift-python-utilities.git
cd openshift-python-utilities
poetry install
Examples
Get Client
from ocp_utilities.infra import get_client
client = get_client(config_file=<path to kubeconfig>))
Install Operator
from ocp_utilities.operators import install_operator
install_operator(
admin_client=client,
name=<operator name>,
channel=<channel>,
source=<source>,
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file openshift_python_utilities-6.0.0.tar.gz
.
File metadata
- Download URL: openshift_python_utilities-6.0.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b129757d3455be6c0c31c9c0eb96c700c1d95318c451cd0bb879305773d4915 |
|
MD5 | 11121758f4a4cde81ce54ee303e2e32a |
|
BLAKE2b-256 | 5c82415e201109d41b4fb409cf30428429b91cf68339cdb7fe088d3603595214 |