CentOS / container-pipeline-service

Code, infrastructure and deployment backend for the CentOS Container Pipeline backing up build system for registry.centos.org
https://registry.centos.org
GNU General Public License v3.0
49 stars 27 forks source link

Adds provision to provide exception jobs list while removing stale jobs #614

Closed navidshaikh closed 6 years ago

navidshaikh commented 6 years ago

This is to cater requiremenet of functional CI feature, where we have added a ci-job. This job is not part of container index and thus as per principal found stale job when index reader runs.

While finding stale jobs, now we are adding provision to provide method with exception-jobs list, which will be exempted while finding stale jobs (which eventually gets removed from OpenShift). As we don't want ci-job to be removed from OpenShift after index-reader (or seed-job) is run. The default value for exception_jobs parameter is ["ci-job"].

navidshaikh commented 6 years ago

Rebased and updated as per review comments.

navidshaikh commented 6 years ago

@bamachrn: The PR is updated as per your review, can you take a look at updates to PR?

navidshaikh commented 6 years ago

dotests-unittests

bamachrn commented 6 years ago

LGTM.