Skip to content

Inspecting Application Bundles

Elliott Baron edited this page Feb 6, 2020 · 1 revision

Pulling bundle manifests from Quay.io

After pushing our operator bundle to Quay.io, you might want to verify what was actually pushed. You can do this using the following:

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

Building local manifests

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/.

Clone this wiki locally