Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow adding hosts for testing with bootc_status information. When using `make run_inv_mq_service_test_producer`, you can now provide the following environment variables to add `bootc_status` fields to the `system_profile`: * `BOOTC_BOOTED_IMAGE` * `BOOTC_STAGED_IMAGE` * `BOOTC_ROLLBACK_IMAGE` Example: ```bash BOOTC_BOOTED_IMAGE=quay.io/my_org/my_repo:a_tag \ BOOTC_STAGED_IMAGE=quay.io/my_org/my_repo:a_new_tag \ BOOTC_ROLLBACK_IMAGE=quay.io/my_org/my_repo:a_previous_tag \ make run_inv_mq_service_test_producer ``` This will cause the payload to have a `bootc_status` field, and the return value from an api query of system_profile will look like this: ```json ... "bootc_status": { "booted": { "image": "quay.io/my_org/my_repo:a_tag", "image_digest": "sha256:c7f7cbd......" }, "staged": { "image": "quay.io/my_org/my_repo:a_new_tag", "image_digest": "sha256:a28b09c......" }, "rollback": { "image": "quay.io/my_org/my_repo:a_previous_tag", "image_digest": "sha256:fd99cb0......" } } ``` The sha256 digest value is calculated from the image name, so that way the same image name will have the same digest value. Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information