-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add cronjob to purge backups #1167
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1167 +/- ##
==========================================
+ Coverage 57.04% 57.23% +0.18%
==========================================
Files 101 101
Lines 10437 10529 +92
==========================================
+ Hits 5954 6026 +72
- Misses 3962 3977 +15
- Partials 521 526 +5
|
7d1dffa
to
64e3c4b
Compare
525d089
to
d0454f1
Compare
@@ -447,6 +449,10 @@ func MedusaStandaloneDeploymentName(clusterName string, dcName string) string { | |||
return fmt.Sprintf("%s-%s-medusa-standalone", clusterName, dcName) | |||
} | |||
|
|||
func MedusaPurgeCronJobName(clusterName string, dcName string) string { | |||
return fmt.Sprintf("%s-%s-medusa-purge", clusterName, dcName) |
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.
[issue] we should also ensure that the resulting string contains no more than 253 characters.
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.
I didn't address the length here, rather in the PurgeCronJob function here
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.
I think we should find a way to truncate rather than failing outright.
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hello @emerkle826 @olim7t , I have some concerns with this implementation. |
This reverts commit 8c32ae3.
This reverts commit 8c32ae3.
What this PR does:
Creates a CronJob that purges Medusa backups
Which issue(s) this PR fixes:
Fixes #1154
Checklist