Wrapper around https://github.com/openshift/openshift-python-utilities
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>
sudo npm install --global release-it
npm install --save-dev @j-ulrich/release-it-regex-bumper
rm -f package.json package-lock.json
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
To enable data-collector pass data-collector.yaml YAML format:
data_collector_base_directory: "<base directory for data collection>"
collect_data_function: "<import path for data collection method>"
collect_pod_logs: true|false # bool whether to collect logs if resource is a pod
YAML Example ocp_utilities/data-collector.yaml
:
data_collector_base_directory: "collected-info"
collect_data_function: "data_collector.collect_data"
collect_pod_logs: true
Either export path to yaml file in OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_YAML
or set data_collector
in your py_config
The environment variable takes precedence over py_config.
To use dynamic base directory, export OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR
Example:
data_collector_base_directory = "/data/results/collected-info"
OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR = "dynamic_collector_test_dir"
Result: /data/results/dynamic_collector_test_dir/collected-info
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-4.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d246e6d9b39a5c92e3b188f25b6109573d03aff757ca94885852f9f0c7a6039 |
|
MD5 | cc722ebcba406fc32fa3241d2b9aba07 |
|
BLAKE2b-256 | 31ffc82f0f29225ed5c1a69a5e2bd9267d72ff89e540ffef12a05bf3edae4c3a |