Open jemrobinson opened 2 weeks ago
why create not deploy here (as for sre and shm)?
Good point, we need to at least be internally consistent
If the "current" SHM is removed, calling the context "SHM" could be quite sensible.
It is some infrastructure/data that is needed to manage SREs.
:white_check_mark: Checklist
:strawberry: Suggested change
We should ensure that our deployment workflow maximises usability for people who are new to the project.
Our current deployment workflow looks like this:
dsh context add <KEY> --admin-group <group name> --location <location> --name <human friendly name> --subscription <Azure subscription name>
dsh context create
create
notdeploy
here (as forsre
andshm
)?dsh config template --file config.yaml
dsh config upload config.yaml
--config
argument to itdsh shm deploy
shm
(all the previous steps were about a genericconfig
)dsh shm deploy --config config.yaml
dsh sre deploy <name of your SRE>
dsh shm deploy --config config.yaml
:steam_locomotive: How could this be done?
There are a lot of steps in the above workflow, some of which are relatively mechanical and some of which we could give more help/guidance with.
Suggestion:
dsh context add
->dsh context add/create
but using e.g. copier to provide better templatingdsh context create
~ -> add a check in the deployment commands so that this is lazily created "on demand"dsh config template --file config.yaml
use e.g. copier for templatingdsh config upload config.yaml
~ -> drop thisdsh shm deploy
->dsh shm deploy --config config.yaml
dsh sre deploy <name>
->dsh shm deploy <name> --config config.yaml