uc-cdis / cloud-automation

Automation for standing up Gen3 commons
Apache License 2.0
41 stars 68 forks source link

feat/check and update fence jobs #2564

Closed ajoaugustine closed 1 month ago

ajoaugustine commented 1 month ago

New Features

check and update fence cronjobs during gitops sync to make sure they use the latest image specified in the manifest.

jawadqur commented 1 month ago

Adding @BinamB to the review as well, this will make sure we keep updating the cronjobs if they exist for fence, right now a lot of these jobs are in error state as they do not get updated, and are running very old versions of fence.

ajoaugustine commented 1 month ago

Adding @BinamB to the review as well, this will make sure we keep updating the cronjobs if they exist for fence, right now a lot of these jobs are in error state as they do not get updated, and are running very old versions of fence.

Here are the logs from a test run.

changes detected, rolling
INFO: 17:25:33 - Checking cronjob fence-delete-expired-clients...
INFO: 17:25:34 - Updating cronjob fence-delete-expired-clients ...
cronjob.batch/fence-delete-expired-clients created
...
...
INFO: 17:25:42 - Checking cronjob fence-cleanup-expired-ga4gh-info...
INFO: 17:25:44 - Updating cronjob fence-cleanup-expired-ga4gh-info ...
cronjob.batch/fence-cleanup-expired-ga4gh-info created