Pypi: openshift-python-utilities
A utilities repository for openshift-restclient-python
- 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
- 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
From source using poetry.
git clone https://github.com/RedHatQE/openshift-python-utilities.git
cd openshift-python-utilities
poetry install
from ocp_utilities.infra import get_client
client = get_client(config_file=<path to kubeconfig>))
from ocp_utilities.operators import install_operator
install_operator(
admin_client=client,
name=<operator name>,
channel=<channel>,
source=<source>,
)