-
Notifications
You must be signed in to change notification settings - Fork 44
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
Some changes and modifications #708
Conversation
…aced with scopeName in configmap-barman-cron
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.
Hi @mojtabash78
Thank you for your contribution. Could you please have a look at the changes that I've proposed and quickly elaborate on the benefits of using an entrypoint script instead of cron
.
Co-authored-by: Lukas Grossar <lukas.grossar@gmail.com>
Co-authored-by: Lukas Grossar <lukas.grossar@gmail.com>
Co-authored-by: Lukas Grossar <lukas.grossar@gmail.com>
Hi @tongpu |
Co-authored-by: Lukas Grossar <lukas.grossar@gmail.com>
Personally i'm not a big fan of overriding the entrypoint with one generated into a configmap, but i see that it is most likely the straight forward way to make the chart be usable for a large range of requirements. if i recall correctly the original argument against using a kubernetes-native CronJob was something about the CronJob and barman's internal ssh service being tightly coupled. We investigated using a K8s CronJob a while back and came to the conclusion that too much re-architecting would be needed to make it work. |
Hi @hairmare Best |
The only idea i have so far is landing the needed changes directly in the upstream ubc container. That would de-facto mean rewriting to script to support a wide range of args so we can configure it to our liking at runtime. Looking at the current entrypoint, I don't think that would be a reasonable proposal for the ubc image. Because of that, i think that generating the entrypoint into a ConfigMap and then mounting it is a reasonable approach. This is not something i'd usually recommend, but for this use-case it looks ok. |
@tongpu i think this lgtm, do we need any additional feedback from our team to get this merged? I'll raise it in tomorrows stand-up to be sure but i assume we can probably land it soon. |
I haven't found time last week to look into it again, but I'll provide some feedback until tomorrow. |
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.
@mojtabash78 Thanks for your contribution. You probably need to rebase your branch before we can merge it.
Thank you very much for your contribution! |
Description
scopeName
barman receive-wal
is now done viabarman cron
post_backup_retry_script
andpre_recovery_retry_script
added to global configurationconfigmap-entrypoint.yaml
created andscopeName
added to itadditionalENVs
added for deploymentvalues.yaml
file updatedREADME.md
file updated.helmignore
file addedIssues
Checklist
pre-commit run
docs/