Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Gershkovich <[email protected]>
  • Loading branch information
ELENAGER committed Jun 3, 2024
1 parent 6dc363c commit 43086a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/volsync/vshandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ func (v *VSHandler) validateAndProtectSnapshot(

// Add ownerRef on snapshot pointing to the vrg - if/when the VRG gets cleaned up, then GC can cleanup the snap
// Add label to indicate that VolSync should not delete/cleanup this snapshot
// Cross-namespace owner references are disallowed, so setting owner is skipped, when VRG is situated in admin
// namespace
updater := util.NewResourceUpdater(volSnap)
if !v.vrgInAdminNamespace {
updater.AddOwner(v.owner, v.client.Scheme())
Expand Down

0 comments on commit 43086a9

Please sign in to comment.