Skip to content

Commit

Permalink
match ops labels (#5678)
Browse files Browse the repository at this point in the history
* alllow passing in replyer username and password

* type hints

* change labels to match ops repo. have a service labels match
  • Loading branch information
dbanda authored Mar 21, 2024
1 parent b34c979 commit bbaa4a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gocd/templates/bash/s4s-clickhouse-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ then
ARGS="--gcs-bucket ${GCS_BUCKET}"
fi

SNUBA_SERVICE_NAME="query-${SNUBA_CMD_TYPE}-gocd"
SNUBA_COMPONENT_NAME="query-${SNUBA_CMD_TYPE}-gocd"
SNUBA_CMD="query-${SNUBA_CMD_TYPE} ${ARGS[@]}"

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-${SNUBA_SERVICE_NAME}" \
--container-name="${SNUBA_SERVICE_NAME}" \
--label-selector="service=snuba,component=${SNUBA_COMPONENT_NAME}" \
--container-name="${SNUBA_COMPONENT_NAME}" \
--try-deployments-and-statefulsets \
"snuba-query-${SNUBA_CMD_TYPE}" \
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \
Expand Down
4 changes: 2 additions & 2 deletions gocd/templates/bash/s4s-replay-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ 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-${SNUBA_SERVICE_NAME}" \
--container-name="${SNUBA_SERVICE_NAME}" \
--label-selector="service=snuba,component=${SNUBA_COMPONENT_NAME}" \
--container-name="${SNUBA_COMPONENT_NAME}" \
"snuba-query-replayer" \
"us.gcr.io/sentryio/snuba:${GO_REVISION_SNUBA_REPO}" \
-- \
Expand Down
2 changes: 1 addition & 1 deletion gocd/templates/clickhouse-query-replayer.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local generate_replay_job(component) =
{
environment_variables: {
SENTRY_REGION: 's4s',
SNUBA_SERVICE_NAME: 'query-replayer-gocd',
SNUBA_COMPONENT_NAME: 'query-replayer-gocd',
},
elastic_profile_id: pipeline_group,
tasks: [
Expand Down

0 comments on commit bbaa4a0

Please sign in to comment.