Skip to content

Commit

Permalink
fix(k8s): trigger UPDATE_PREPROD jobs should run on the prod cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Apr 7, 2021
1 parent 6b07f33 commit 99321de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion targets/ingester-elasticsearch/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
variables:
INGESTER_ELASTICSEARCH_TARGET: preprod
# kosko options
KOSKO_GENERATE_ARGS: --env preprod jobs/ingester-elasticsearch
KOSKO_GENERATE_ARGS: --env prod jobs/ingester-elasticsearch

🎉 ingester-elasticsearch (prod => es prod):
extends:
Expand Down
3 changes: 2 additions & 1 deletion targets/ingester/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@
.trigger_ingester_cron:
needs:
- job: 🛂 k8s test
script:
before_script:
- echo "kubectl config set-context --current --namespace=${K8S_NAMESPACE}"
- kubectl config set-context --current --namespace=${K8S_NAMESPACE}
script:
- JOB_NAME="triggered-from-job-${CI_JOB_ID}-${RANDOM}"
- kubectl create job --from=cronjob.batch/ingester "${JOB_NAME}"

Expand Down

0 comments on commit 99321de

Please sign in to comment.