Managed Tenants CLI
A CLI tool commonly used by MT-SRE projects at Red Hat.
Usage
Available subcommands
Subcommand | Description |
---|---|
load |
Loads the addons inventory |
run |
Runs the task |
tasks_reference |
[path:search] "path" for the directory or file and "search" string to filter tasks |
Available flags
Flag | Description |
---|---|
-v or --version |
CLI version |
--environment |
Target environment |
--addon-name |
Load only a given addon |
--addons-dir |
[path] "path" for the addons directory |
--ocm-api |
Override the environments in OCM API |
--ocm-api-insecure |
Allow Insecure connections to OCM API |
Install
From PyPI:
$ pip install managedtenants_cli
From source:
$ python setup.py install
Develop
Install pre-commit
hooks:
$ pre-commit install
Install the development requirements:
$ make develop
Run the code checks:
$ make check
Run the tests:
$ make test
Release
Edit the VERSION file and change the new version. Submit a pull request to master. When it is merged, create a tag and push it to app-sre/sretoolbox.
This will trigger a CI job that will publish the package on pypi.
License
The default license of the code in this repository is http://www.apache.org/licenses/LICENSE-2.0. That applies for most of the code here, as they were written from scratch, but exceptions exist. In any case, each module carries the corresponding licensing information.