Skip to content

Add type constants for init backup check#1641

Merged
kodiak-appscode[bot] merged 2 commits intomasterfrom
init-backup
Apr 9, 2026
Merged

Add type constants for init backup check#1641
kodiak-appscode[bot] merged 2 commits intomasterfrom
init-backup

Conversation

@anisurrahman75
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Anisur Rahman <anisur@appscode.com>
Copilot AI review requested due to automatic review settings April 9, 2026 10:49
Copy link
Copy Markdown

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

Adds new condition type/reason constants under apis/archiver/v1alpha1 to support checking whether an initial backup session completed successfully.

Changes:

  • Introduces TypeInitialBackupSucceeded constant.
  • Introduces success/failure reason constants for the initial backup completion check.

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

Comment on lines +93 to +95
TypeInitialBackupSucceeded = "InitialBackupSucceeded"
ReasonSuccessfullyCompletedInitialBackupSession = "SuccessfullyCompletedInitialBackup"
ReasonFailedToCompleteInitialBackupSession = "FailedToCompleteInitialBackup"
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The Reason...InitialBackupSession constant names include Session, but their string values omit it ("SuccessfullyCompletedInitialBackup" / "FailedToCompleteInitialBackup"). This mismatch is easy to overlook and can lead to inconsistent condition reasons. Consider either updating the string values to include ...InitialBackupSession or renaming the constants to match the shorter values.

Copilot uses AI. Check for mistakes.
@souravbiswassanto souravbiswassanto added the automerge Kodiak will auto merge PRs that have this label label Apr 9, 2026
@kodiak-appscode kodiak-appscode bot merged commit e7cf45b into master Apr 9, 2026
9 checks passed
@kodiak-appscode kodiak-appscode bot deleted the init-backup branch April 9, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Kodiak will auto merge PRs that have this label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants