Skip to content

Conversation

@molpako
Copy link
Contributor

@molpako molpako commented Dec 5, 2025

No description provided.

@molpako molpako requested a review from Copilot December 5, 2025 07:36
Copilot finished reviewing on behalf of molpako December 5, 2025 07:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a fallback mechanism to the getJobCreationTimestamp function to use the Job's CreationTimestamp when the batch.kubernetes.io/cronjob-scheduled-timestamp annotation is not present. This change improves robustness by allowing the function to handle Jobs that are not created by CronJobs or lack the expected annotation.

Key Changes:

  • Added fallback logic to return job.CreationTimestamp.Time when the annotation is missing
  • Updated function documentation to reflect the new fallback behavior
  • Removed the error path that previously returned an error for missing annotations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@molpako molpako force-pushed the fix-createfinbackup branch from 8f72830 to f6bc377 Compare December 5, 2025 08:24
@molpako molpako requested a review from Copilot December 5, 2025 08:24
Copilot finished reviewing on behalf of molpako December 5, 2025 08:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@satoru-takeuchi satoru-takeuchi merged commit 2a7e91c into main Dec 5, 2025
11 checks passed
@satoru-takeuchi satoru-takeuchi deleted the fix-createfinbackup branch December 5, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants