Skip to content

Commit

Permalink
vrg: skip kubeObjectsRecover in case of fresh deployment
Browse files Browse the repository at this point in the history
Co-Authored-by: Annaraya Narasagond <[email protected]>
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
2 people authored and ShyamsundarR committed Dec 19, 2024
1 parent d6f173c commit 4df09e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/controller/vrg_kubeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ func (v *VRGInstance) kubeObjectsRecover(result *ctrl.Result, s3ProfileName stri
return nil
}

if v.instance.Spec.Action == "" {
v.log.Info("Skipping kube objects restore in fresh deployment case")

return nil
}

sourceVrg, err := v.getVRGFromS3Profile(s3ProfileName)
if err != nil {
return fmt.Errorf("kube objects source VRG get error: %v", err)
Expand Down

0 comments on commit 4df09e7

Please sign in to comment.