acorn-io / runtime

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

Local Install - Provide better error messages when trying to work in a project other than `local` #2432

Open sangee2004 opened 8 months ago

sangee2004 commented 8 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
  3. Try to create a project. User is presented with the following error message:
    acorn project create test1
    ✗  ERROR:  invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

    Expected Behavior: In both the above cases , user should be presented with a more friendly message that they will be able to work only with local project .