acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.14k stars 102 forks source link

Local Install - Switch to `local` project automatically on install. #2434

Open sangee2004 opened 5 months ago

sangee2004 commented 5 months ago

acorn version - v0.10.0-rc2-35-g3cf6c107+3cf6c107

Steps to reproduce the problem:

  1. Install acorn using acorn -j local ps
  2. Once acorn is installed , try to do any acorn commands. User is presented with the following error message: acorn run -n mytestwp ✗ ERROR: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

Expected Behavior: Since user will be allowed to work only with local project , user should be put into local project context automatically on local install.

Also , even when we switch to local project , current project context is not shown which is confusing

# acorn project
NAME      DEFAULT   REGIONS
# acorn project use local
# acorn project
NAME      DEFAULT   REGIONS