Azure / draft-classic

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

draft up doesn't respect the environment flag for --auto-connect #879

Open mnanevski opened 5 years ago

mnanevski commented 5 years ago

When doing draft --environment=some-env up --auto-connect, auto-connect connects to the instance in the default environment, not the one in some-env

Also, the command above specifies a message similar to the following: Inspect the logs with 'draft logs 01CSC7N10KQ1MZVMYHRQJQXBSV'

This is wrong as well because draft logs will search for the hash in the default environment, and it will report an error similar to the following Error: could not read logs for 01CSC7N10KQ1MZVMYHRQJQXBSV: open ~path-to-default-env-logs~/01CSC7N10KQ1MZVMYHRQJQXBSV: no such file or directory

The correct command would be: draft logs --environment=some-env 01CSC7N10KQ1MZVMYHRQJQXBSV