Data collector for https://github.com/openshift/openshift-python-wrapper when running with PyTest
Project description
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
File details
Details for the file openshift_python_wrapper_data_collector-1.0.75.tar.gz
.
File metadata
- Download URL: openshift_python_wrapper_data_collector-1.0.75.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3350d25910fe1b907668028261f38ab59a09de230fffabd7e8c89b0db9ecef03 |
|
MD5 | ce6a82f9f5055d4d630a76b87c597cb2 |
|
BLAKE2b-256 | b738cecb4677bb22db16492fec8460f9fdbd93a5c8b43f4cf486e11afb5db391 |