Skip to content

Commit

Permalink
Refs #RHIROS-1231 - job to downgrade and rerun migration
Browse files Browse the repository at this point in the history
  • Loading branch information
upadhyeammit committed Oct 17, 2023
1 parent 0d6bbc0 commit 1351053
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,24 @@ objects:
requests:
cpu: 50m
memory: 512Mi
# This is one time job to correct the PerformanceTable top_candidate entries
- name: one-time-migration-runner
podSpect:
image: ${IMAGE}:${IMAGE_TAG}
command: ["sh"]
args: ["-c", "export FLASK_APP=manage.py && poetry run flask db downgrade && poetry run flask db upgrade"]
env:
- name: DB_POOL_SIZE
value: ${DB_POOL_SIZE}
- name: DB_MAX_OVERFLOW
value: ${DB_MAX_OVERFLOW}
resources:
limits:
cpu: 300m
memory: 512Mi
requests:
cpu: 50m
memory: 512Mi

parameters:
- description: Enable rbac needs to be "True" or "False"
Expand Down

0 comments on commit 1351053

Please sign in to comment.