Open anna-savchenko opened 1 year ago
Hi @anna-savchenko , the first line of the bundle is not a valid yaml tag. Can you remove it and run again?
Hey, @sombrafam I tried removing --- # overlay.yaml
but the bundle check still fails. I think it's because the applications are in the exported bundle twice - the ones from the main bundle and the overlay (LMA offers). The bundle check only works when I remove the overlay applications from the exported bundle.
I have encountered this as well. This seems to happen when the model has offers available such as LMA or COS. I've uploaded my bundle. The issue is that juju is creating a yaml file with multiple documents using the triple-dash (---) separator. cos-bundle.yaml.txt You can use csplit and yq to merge all documents in a single yaml file:
csplit --prefix=bundle-parts cos-bundle.yaml '/---/'
yq eval-all '. as $item ireduce ({}; . * $item )' bundle-parts*
You can then run the ua-bundle-check on the results, but the ua-bundle-check doesn't know what to do with an LMA or COS bundle so this may not be a pressing issue.
When overlays (e.g. LMA offers) are present in the exported bundle, ua-bundle-check fails with the below error:
Overlay in the exported bundle: