From 2fd3f8a5be3794f9241cb769c3f00431a941d496 Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Thu, 5 Dec 2024 15:25:18 +0000 Subject: [PATCH] feat(ec): add new DR backup type `ReplicatedBackup` --- pkg/kotsadmsnapshot/types/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/kotsadmsnapshot/types/types.go b/pkg/kotsadmsnapshot/types/types.go index d23cc379d6..aedc57e3d6 100644 --- a/pkg/kotsadmsnapshot/types/types.go +++ b/pkg/kotsadmsnapshot/types/types.go @@ -13,6 +13,14 @@ type App struct { AppIconURI string `json:"iconUri"` } +// ReplicatedBackup holds both the infrastructure and app backups for an EC cluster +type ReplicatedBackup struct { + Name string `json:"name"` + // number of backups expected to exist for the ReplicatedBackup to be considered complete + ExpectedBackupCount int `json:"expectedBackupCount"` + Backups []Backup `json:"backups"` +} + type Backup struct { Name string `json:"name"` Status string `json:"status"`