-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added an optional cronjob to perform the dbclean (external trigger) #52
added an optional cronjob to perform the dbclean (external trigger) #52
Conversation
@ChrisJBurns would be great if you can have a look at this one 😉 |
Thanks for this @sherifkayad I'll give it a review when I've got a bit more time, I'll have to make sure that it all templates as expected as well |
@ChrisJBurns TYT and let me know if anything needs to be changed |
@sherifkayad Just had a look at this, we should probably make the CronJob optional for the database clean just to keep things simple in the vanilla install. So by default, if someone installs a single Pact Broker with 1 replica, then that single instance can be the container that runs the clean. But for folks who have more of a replicated setup of the Pact Brokers, we can allow them to enable the DBClean CronJob, a bit of documentation in the So a few tweaks, but all round great addition! 👍 |
@sherifkayad thanks for the feedback. Let me take care of that and submit something you can have a look at. Will ping you once I add something there. |
eeaae33
to
64fd507
Compare
@ChrisJBurns can you please have a look now? I also added some docs in the README about that new feature and overall about the DB Cleanup Task. |
Signed-off-by: Sherif Ayad <sherif.k.ayad@gmail.com>
965c473
to
a3a621e
Compare
@ChrisJBurns any updates from your side to the latest changes done? |
@sherifkayad Yep, I plan on taking a look on Friday as it's bank holiday here in the UK 👍 |
Awesome! Same here in Germany .. Happy Easter holidays and let me know if there is anything I can do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
fixes #51
Implementing the external DB Clean Task recommended as per the docs https://docs.pact.io/pact_broker/docker_images/pactfoundation#running-the-clean-task-from-an-external-source
Deployment
CronJob
to perform the cleanupCronJob
& theDeployment