-
Notifications
You must be signed in to change notification settings - Fork 19
Inspecting Application Bundles
Elliott Baron edited this page Feb 6, 2020
·
1 revision
After pushing our operator bundle to Quay.io, you might want to verify what was actually pushed. You can do this using the following:
- Helm < 3.0 (https://github.com/helm/helm/releases)
- Helm Registry Plugin (follow instructions here: https://github.com/app-registry/appr-helm-plugin)
Once set up, you can retrieve the YAML file as follows:
$ helm registry pull quay.io/rh-jmc-team/container-jfr-operator-bundle
Pull package: rh-jmc-team/container-jfr-operator-bundle...
./rh-jmc-team_container-jfr-operator-bundle_0.3.0
If you want to build a bundle using operator-courier
and inspect it locally without also pushing to quay.io. The following Python script will dump the contents of the bundle's manifest.
dump-bundle.py:
from operatorcourier import api
from sys import argv
import yaml
def dumpBundle(bundleDir):
manifest = api.build_and_verify(bundleDir)
print(yaml.dump(manifest.bundle))
if __name__ == "__main__":
if len(argv) != 2:
raise ValueError(f"usage: python {argv[0]} bundle_dir")
dumpBundle(argv[1])
To use this script, first run make bundle
, then python dump-bundle.py bundle/
.