Skip to content
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

Give friendly hint when not starting in-cluster #542

Merged
merged 1 commit into from
Mar 30, 2020

Commits on Mar 28, 2020

  1. Give friendly hint when not starting in-cluster

    Currently we do this:
    
    ./bin/machine-api-operator start --images-json ./images.json --alsologtostderr --v=3
    I0328 16:34:18.688008   36609 start.go:58] Version: 0.1.0-780-g4e3ac1e2-dirty
    F0328 16:34:18.688396   36609 start.go:66] error creating clients: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
    
    Make us a bit friendlier:
    
    ./bin/machine-api-operator start --images-json ./images.json --alsologtostderr --v=3
    I0328 16:35:50.846740   10863 start.go:58] Version: 0.1.0-780-g4e3ac1e2-dirty
    F0328 16:35:50.846808   10863 start.go:66] error creating clients: Not running in-cluster? Try using --kubeconfig
    markmc committed Mar 28, 2020
    Configuration menu
    Copy the full SHA
    cc51372 View commit details
    Browse the repository at this point in the history