Skip to content

Commit

Permalink
Fix OADP 526 (#704)
Browse files Browse the repository at this point in the history
* fix OADP 526

* add ignore err comments
  • Loading branch information
shubham-pampattiwar authored May 24, 2022
1 parent c791b37 commit e500ddf
Show file tree
Hide file tree
Showing 6 changed files with 1,935 additions and 137 deletions.
6 changes: 5 additions & 1 deletion controllers/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,12 @@ func (r *DPAReconciler) buildResticDaemonset(dpa *oadpv1alpha1.DataProtectionApp
return nil, fmt.Errorf("ds cannot be nil")
}

// get resource requirements for restic ds
// ignoring err here as it is checked in validator.go
resticResourceReqs, _ := r.getResticResourceReqs(dpa)

installDs := install.DaemonSet(ds.Namespace,
install.WithResources(r.getResticResourceReqs(dpa)),
install.WithResources(resticResourceReqs),
install.WithImage(getVeleroImage(dpa)),
install.WithAnnotations(dpa.Spec.PodAnnotations),
install.WithSecret(false))
Expand Down
Loading

0 comments on commit e500ddf

Please sign in to comment.