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-5.0.71.tar.gz
.
File metadata
- Download URL: openshift_python_utilities-5.0.71.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a52c065e43285659b80ca32f6621e19f0edc7903e855b32f3a48d893315c066 |
|
MD5 | 75376a3552129e9408be961fd1db93a8 |
|
BLAKE2b-256 | 896f3bdbc052664630e0bd8ad304b1b67895757435ddae7cae6a0f6f5d5ebf7f |