Skip to main content

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

openshift_python_utilities-5.0.72.tar.gz (18.3 kB view details)

Uploaded Source

File details

Details for the file openshift_python_utilities-5.0.72.tar.gz.

File metadata

File hashes

Hashes for openshift_python_utilities-5.0.72.tar.gz
Algorithm Hash digest
SHA256 e84baae27844d935d45db540b21f1712d7f18aaa634887e8275406d392668690
MD5 f52753b3f03a5ccb8602e96fe4b97855
BLAKE2b-256 8d91f7af32ae3ca3c644e9d348f12a90a7ffcc22607299b14e503aecff21735f

See more details on using hashes here.

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