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]>
(cherry picked from commit 4df09e7)
  • Loading branch information
raghavendra-talur committed Dec 20, 2024
1 parent 3e9ac59 commit bb6c87b
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 bb6c87b

Please sign in to comment.