-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce7bc50
commit 0f12c18
Showing
6 changed files
with
99 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/bin/bash | ||
|
||
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}") | ||
/devinfra/scripts/k8s/k8stunnel | ||
|
||
/devinfra/scripts/k8s/k8stunnel \ | ||
&& /devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
--context="gke_${GCP_PROJECT}_${GKE_REGION}-${GKE_CLUSTER_ZONE}_${GKE_CLUSTER}" \ | ||
--label-selector="service=snuba-admin" \ | ||
--container-name="snuba-admin" \ | ||
"snuba-migrate-reverse" "us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- snuba migrations reverse-in-progress | ||
/devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
--label-selector="service=${SNUBA_SERVICE_NAME}" \ | ||
--container-name="${SNUBA_SERVICE_NAME}" \ | ||
"snuba-migrate-reverse" \ | ||
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- \ | ||
snuba migrations reverse-in-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# At the time of writing (2023-06-28) the single tenant deployments | ||
# have been using a different migration process compared to the | ||
# US deployment of snuba. | ||
# This script should be merged with migrate.sh if we can figure | ||
# out a common migration script for all regions. | ||
|
||
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}") | ||
/devinfra/scripts/k8s/k8stunnel | ||
|
||
/devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
--label-selector="service=${SNUBA_SERVICE_NAME}" \ | ||
--container-name="${SNUBA_SERVICE_NAME}" \ | ||
"snuba-bootstrap" \ | ||
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- \ | ||
snuba bootstrap --force --no-migrate | ||
|
||
/devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
--label-selector="service=${SNUBA_SERVICE_NAME}" \ | ||
--container-name="${SNUBA_SERVICE_NAME}" \ | ||
"snuba-migrate" \ | ||
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- \ | ||
snuba migrations migrate --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/bin/bash | ||
|
||
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}") | ||
/devinfra/scripts/k8s/k8stunnel | ||
|
||
/devinfra/scripts/k8s/k8stunnel \ | ||
&& /devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
/devinfra/scripts/k8s/k8s-spawn-job.py \ | ||
--context="gke_${GCP_PROJECT}_${GKE_REGION}-${GKE_CLUSTER_ZONE}_${GKE_CLUSTER}" \ | ||
--label-selector="service=snuba-admin" \ | ||
--container-name="snuba-admin" \ | ||
"snuba-migrate" "us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- snuba migrations migrate -r complete -r partial | ||
--label-selector="service=${SNUBA_SERVICE_NAME}" \ | ||
--container-name="${SNUBA_SERVICE_NAME}" \ | ||
"snuba-migrate" \ | ||
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \ | ||
-- \ | ||
snuba migrations migrate -r complete -r partial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters