-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set KUBECONFIG, DOCKER_HOST in root garden.yaml #459
Comments
@adnaan Thanks for this issue. You are 100% right our errors currently need a bit of work to make them more friendly. Do you think the use case would be covered by #180 ? (Purely better errors) Just trying to figure out if the approach to fix it would better be covered by friendly useful error messages vs explicitly user config checked into the The main reason for not allowing you to configure these details in the |
@drubin Agreed #180 should cover this. More thoughts with a perspective of possibly better developer experience for teams in large organisations: It should be possible to ship a |
@adnaan Sure its currently not incredibly well documented but for shared remote env's we have
But fully sharing the exact config becomes a bit harder since your kubeconfig has private user specific info in it. But our goal is to allow user customisation in #309 |
I see. I think this is quite sufficient. Alongwith #309 it covers most of the concerns. Thanks for your time :) |
Thanks for the feedback @adnaan! |
Bug
Current Behavior
Expected behavior
The above problem was due to configured
DOCKER_HOST
. Runningunset DOCKER_HOST
fixes the problem. Expected
garden init
to log this as a solution in the error log.Reproducible example
Suggested solution(s)
Set
KUBECONFIG
,DOCKER_HOST
ingarden.yaml:environments:local:providers:local-kubernetes
Example:
Although this is quite trivial, setting these environment vars in root
garden.yml
leads to a better dev experience for the uninitiated devs.Alternatively the error logs could be more descriptive about a suggested solution like:
garden version
0.8.1
kubectl version
docker version
The text was updated successfully, but these errors were encountered: