Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 395 forks source link

Draft fails to create app if chart templates contain subdirectories #940

Open jpetazzo opened 5 years ago

jpetazzo commented 5 years ago

How to reproduce:

cd /tmp
mkdir -p local-pack-repo/packs/my-local-pack
helm create local-pack-repo/packs/my-local-pack/charts
ls -l local-pack-repo/packs/my-local-pack/charts/templates
# See how "templates" contains a subdirectory, "tests"
draft pack-repo add local-pack-repo/
draft pack list
# Confirm that the output contains "local-pack-repo/my-local-pack"
mkdir app && cd app && draft create --pack my-local-pack

We obtain the following error:

Error: open charts/app/templates/tests/test-connection.yaml: no such file or directory

Clean up with:

draft pack-repo remove local-pack-repo
rm -rf /tmp/local-pack-repo /tmp/app

If we repeat the same steps, but remove the templates/test subdirectory, Draft is happy:

--> Ready to sail