Wrapper around https://github.com/openshift/openshift-cluster-management-python-client
Project description
openshift-cluster-management-python-wrapper
Wrapper for openshift-cluster-management-python client
Release new version
requirements:
- Export GitHub token
export GITHUB_TOKEN=<your_github_token>
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 1.0 release, run:
git checkout v1.0
git pull
release-it # Follow the instructions
Installation
From source:
git clone https://github.com/RedHatQE/openshift-cluster-management-python-client.git
cd openshift-cluster-management-python-client
python setup.py install --user
Examples
Client
from ocm_python_wrapper.ocm_client import OCMPythonClient
ocm_client = OCMPythonClient(
token=<ocm api token>>,
endpoint=<endpoint url>,
api_host=<production or stage>,
discard_unknown_keys=True,
)
return ocm_client.client
Cluster
from ocm_python_wrapper.cluster import Cluster
cluster = Cluster(client=client, name=<cluster name>)
cluster_ocp_version = cluster.instance.version.raw_id
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
Built Distribution
Close
Hashes for openshift_cluster_management_python_wrapper-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7d15093595f763e79b0dc5ddd7b0e30d5a3138d3d9321af78214f3741b2f47 |
|
MD5 | e74a1d48d5f6ea8ade0943b10a3f74e4 |
|
BLAKE2b-256 | 6e19d4c19733ee9e59dc40eadfe1a076a077e287d53073d30e66016df3dd86a1 |
Close
Hashes for openshift_cluster_management_python_wrapper-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90c58bfeff6405521347709ecd82b4f1be63ef474c63f7c2b286616200b5cbb |
|
MD5 | 3ac915bff50e866808172f16c8017777 |
|
BLAKE2b-256 | c7adcd8ec8fb00012ee748847746688f962ac3498dfe03f2c343c059a907d101 |