Skip to content
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

Use full snapshot interval to compute Backup Ready conditions #906

Merged

Conversation

anveshreddy18
Copy link
Contributor

@anveshreddy18 anveshreddy18 commented Oct 30, 2024

How to categorize this PR?

/area backup
/area monitoring
/kind bug

What this PR does / why we need it:

Backup ready condition is determined based on the snapshot intervals and the time the snapshot is taken. Currently, the full snapshot interval is hardcoded as 24hr in the code here & here which can lead to a false positive BackupReady : true if the user has configured the full snapshot schedule to be less than 24hr OR can lead to a false negative BackupReady : false condition if the user has configured the schedule to be more than 24hr.

This PR uses the full snapshot interval fetched from the etcd spec at etcd.Spec.Backup.FullSnapshotSchedule instead of assuming it as 24hrs.

Which issue(s) this PR fixes:
Fixes #905

Special notes for your reviewer:

Release note:

Fix a minor bug in wrongly assuming `24hr` as full snapshot interval to compute backup ready condition by getting it from full snapshot schedule.

@anveshreddy18 anveshreddy18 requested a review from a team as a code owner October 30, 2024 06:18
@gardener-robot gardener-robot added needs/review Needs review area/backup Backup related area/monitoring Monitoring (including availability monitoring and alerting) related kind/bug Bug size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Oct 30, 2024
@anveshreddy18 anveshreddy18 self-assigned this Oct 30, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Oct 30, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 30, 2024
@renormalize renormalize self-assigned this Oct 30, 2024
Copy link
Member

@renormalize renormalize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the much needed PR @anveshreddy18!

go.mod Outdated Show resolved Hide resolved
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 6, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 6, 2024
@anveshreddy18
Copy link
Contributor Author

/test pull-etcd-druid-e2e-kind

@anveshreddy18 anveshreddy18 merged commit fab4318 into gardener:master Nov 6, 2024
11 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Nov 6, 2024
@anveshreddy18 anveshreddy18 deleted the fix-backup-ready-condition branch November 6, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backup Backup related area/monitoring Monitoring (including availability monitoring and alerting) related kind/bug Bug needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use full snapshot interval to compute Backup Ready conditions
5 participants