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

[Feature request] Automatic deis profile selection based on git remote #8

Open
Cryptophobia opened this issue Mar 21, 2018 · 0 comments

Comments

@Cryptophobia
Copy link
Member

From @felixbuenemann on April 22, 2017 12:26

It would be great if the deis cli could automatically lookup the correct deis profile based on the git remote, either by enumerating the existing profiles for a matching controller url or by using a special naming convention for profiles.

For example let's say the controller is at deis.staging.example.com then the deis cli could look for ~/.deis/staging.example.com.json.

The remote to use for lookup would default to deis, but could be overridden using a global -r/ --remote option, so you could do something like:

deis ps # connect to deis cluster from 'deis' remote
deis ps -r staging # connect to deis cluster from 'staging' remote
deis ps -r production # connect to deis cluster from 'production' remote

If an environment variable DEIS_PROFILE is set or if -c/--config were to be given, these would take precedence over the automatic lookup based on the remote.

Having this feature would greatly reduce the friction when working with multiple apps on multiple clusters or same app on multiple clusters, where it currently can happen very easily that the wrong deis profile is used (eg. scaling down production instead of staging).

Copied from original issue: deis/workflow-cli#302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant