[Feature request] Automatic deis profile selection based on git remote
- Lingua principale
- Go
- Stelle
- 31
- Fork
- 42
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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).
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando la gestione esistente dei profili e della configurazione della CLI deis e il modo in cui vengono analizzati i remoti git e le opzioni globali -r/--remote e -c/--config; nell'issue non sono nominati file sorgente né test. Il lavoro è completato quando la ricerca automatica utilizza il remote selezionato, mentre DEIS_PROFILE e --config hanno la precedenza, e gli esempi documentati di staging e produzione funzionano in modo sicuro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100