Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
create jobs in default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pb82 committed Mar 7, 2019
1 parent a22ae80 commit 19f87c5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions evals/roles/enmasse/tasks/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@
-p 'BACKEND_SECRET_NAME={{ aws_credential_secret_name }}' \
-p 'IMAGE={{ backup_image }}' \
-p 'CRON_SCHEDULE={{ backup_schedule }}' \
-p 'NAME={{ enmasse_postgres_cronjob_name }}' | oc create -n default -f -
register: postgres_cronjob_create
failed_when: postgres_cronjob_create.stderr != '' and 'AlreadyExists' not in postgres_cronjob_create.stderr
-p 'NAME={{ enmasse_postgres_cronjob_name }}' | oc apply -n default -f -

# PV backup
- name: Create the enmasse PV CronJob
shell: oc process -f {{ backup_resources_location }}/backup-cronjob-template.yaml \
-p 'COMPONENT=enmasse_pv' \
-p 'BACKEND_SECRET_NAME={{ aws_credential_secret_name }}' \
-p 'IMAGE={{ backup_image }}' \
-p 'CRON_SCHEDULE={{ backup_schedule }}' \
-p 'NAME={{ enmasse_pv_cronjob_name }}' | oc create -n default -f -
register: pv_cronjob_create
failed_when: pv_cronjob_create.stderr != '' and 'AlreadyExists' not in pv_cronjob_create.stderr
-p 'NAME={{ enmasse_pv_cronjob_name }}' | oc apply -n default -f -

0 comments on commit 19f87c5

Please sign in to comment.