Setup a virtual environment and install the deps
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
mkdir ./secrets
cp auth.py.example ./secrets/auth.py
touch secrets/__init__.py
Fill out the secrets. The pendo cookies are found on app.pendo.io, not on console.redhat.com
- Make sure to update the auth secrets with your new jwt before each run
The main.py file uploads the data from data/*.yml
to pendo.
This is useful for checking the output before doing a real run
source venv/bin/activate
bash lint.sh
python main.py --dry-run
source venv/bin/activate
bash lint.sh
python main.py
source venv/bin/activate
bash lint.sh
python main.py -a {APP}
source venv/bin/activate
bash lint.sh
python main.py -a {APP1} -a {APP2} ...
source venv/bin/activate
bash lint.sh
python main.py -u
source venv/bin/activate
bash lint.sh
python main.py -c
Note: This should be done after the upload is done
In order to maintain a fresh list used in this config, there is a scrubber that will remove files that looks like it was added by this automation, but was not. We want to scrub that in order to keep our stash list fresh.
source venv/bin/activate
python scrub.py --dry-run
source venv/bin/activate
python scrub.py