Skip to content

Commit

Permalink
fix check & integration
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshreddy18 committed Jul 19, 2024
1 parent 1feddc7 commit d8217e3
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 313 deletions.
4 changes: 4 additions & 0 deletions internal/health/condition/check_backup_ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
NotChecked string = "NotChecked"
)

// BackupReadyCheck returns a result for the "BackupReady" condition check
func BackupReadyCheck(results []Result) Result {
result := &result{
conType: druidv1alpha1.ConditionTypeBackupReady,
Expand All @@ -52,6 +53,9 @@ func BackupReadyCheck(results []Result) Result {

var FullSnapshotBackupReadyCheckResult, DeltaSnapshotBackupReadyCheckResult Result = nil, nil
for _, result := range results {
if result == nil {
continue
}
if result.ConditionType() == druidv1alpha1.ConditionTypeFullSnapshotBackupReady {
FullSnapshotBackupReadyCheckResult = result
continue
Expand Down
Loading

0 comments on commit d8217e3

Please sign in to comment.