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
Close
Hashes for openshift_python_utilities-5.0.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552469a7f33868864409b188be4d55db575d61bf9e3a855d9ec5c00e5c1da19b |
|
MD5 | 042ab51a979314835d559145e0b4aecb |
|
BLAKE2b-256 | e613d2423f5836d4c2141f8a23645991c7859205f376a4cc2b0568ca1e1793e4 |