Skip to content

Commit

Permalink
add cluster context switch to deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Nov 21, 2023
1 parent 0d693f2 commit 149b52c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/deployments/deploying-updated-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Otherwise, skip creating a new chart and update the docker image used by alterin
- Assign yourself to the task you are about to deploy, should currently be in "Deploy to Staging"
- Let the team know you are planning to deploy by sharing the pull-request about to be deployed (mention it in mattermost)
- Make sure you are using the latest version of the `main` wbaas-deploy code
- Switch to the appropriate cluster context: `kubectl config use-context gke_wikibase-cloud_europe-west3-a_wbaas-2`
- run `make diff` and check there are no changes to be applied to either staging or production. If there are then this means that someone else might be deploying at the same time. It could also mean that last time someone touched the clusters they forgot to keep them in sync with thie repository. STOP DEPLOYING and communicate with the team.
- Rebase the pull request you want to deploy onto main. e.g. `git rebase add-concept-uri-staging`
- Run `make diff-production` and check there are no changes to the production cluster.
Expand All @@ -51,6 +52,7 @@ Otherwise, skip creating a new chart and update the docker image used by alterin
- Assign yourself to the task you are about to deploy, should currently be in "Deploy to production"
- Let the team know you are planning to deploy by sharing the pull-request about to be deployed (mention it in mattermost)
- Make sure you are using the latest version of the `main` wbaas-deploy code
- Switch to the appropriate cluster context: `kubectl config use-context gke_wikibase-cloud_europe-west3-a_wbaas-3`
- run `make diff` and check there are no changes to be applied to either staging or production. If there are then this means that someone else might be deploying at the same time. It could also mean that last time someone touched the clusters they forgot to keep them in sync with thie repository. STOP DEPLOYING and communicate with the team.
- Rebase the pull request you want to deploy onto main. e.g. `git rebase add-concept-uri-scheme-production`
- Run `make diff-staging` and check there are no changes to the staging cluster.
Expand Down

0 comments on commit 149b52c

Please sign in to comment.