From 841d653e18e18e3285bf71e9a64c1912763ea0c1 Mon Sep 17 00:00:00 2001 From: Michal Pryc Date: Tue, 23 Apr 2024 16:58:53 +0200 Subject: [PATCH] Move NonAdminCondition to it's new type Adjust NonAdminCondition and move it to new types, so it can be use as well in NonAdminRestore object. Signed-off-by: Michal Pryc --- internal/common/function/function.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/common/function/function.go b/internal/common/function/function.go index 2475040..a8bc4f9 100644 --- a/internal/common/function/function.go +++ b/internal/common/function/function.go @@ -263,6 +263,7 @@ func CheckVeleroBackupLabels(backup *velerov1api.Backup) bool { } // TODO not used + // GetNonAdminBackupFromVeleroBackup return referenced NonAdminBackup object from Velero Backup object, if no error occurs func GetNonAdminBackupFromVeleroBackup(ctx context.Context, clientInstance client.Client, backup *velerov1api.Backup) (*nacv1alpha1.NonAdminBackup, error) { // Check if the backup has the required annotations to identify the associated NonAdminBackup object