cnabio / duffle

CNAB installer
https://duffle.sh
MIT License
375 stars 54 forks source link

`duffle upgrade` fails against thick bundle #845

Closed thisisnotashwin closed 5 years ago

thisisnotashwin commented 5 years ago

Hey!! We ran into an issue when trying to update the instance of our bundle. The command we ran for context is:

duffle upgrade ${CLUSTER_NAME} -c ./credentials.yaml \
    --set kubernetes_env="${CLUSTER_NAME}" \
    -m $PWD/relocated.json \
    --bundle-file build-service-*.tgz

This failed with the following error message: Error: cannot load bundle: invalid character '\x1f' looking for beginning of value.

We were able to work around this by importing the bundle and then running upgrade against the bundle.json directly. The duffle version we used was duffle 0.2.0-beta.3

youreddy commented 5 years ago

Ran into this issue as well!

glyn commented 5 years ago

I also noticed that duffle upgrade wasn't validating the bundle, so I'll fix that at the same time.