Skip to content

Commit

Permalink
Move NonAdminCondition to it's new type
Browse files Browse the repository at this point in the history
Adjust NonAdminCondition and move it to new types, so it can
be use as well in NonAdminRestore object.

Signed-off-by: Michal Pryc <[email protected]>
  • Loading branch information
mpryc committed Apr 29, 2024
1 parent 3ed92ed commit 841d653
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/common/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 841d653

Please sign in to comment.