Skip to content

Commit 0b1ef42

Browse files
[oadp-1.0] Fix OADP 526 (#712)
* fix OADP 526 * add ignore err comments Co-authored-by: Shubham Pampattiwar <shubhampampattiwar7@gmail.com>
1 parent 71ad621 commit 0b1ef42

6 files changed

Lines changed: 1935 additions & 137 deletions

File tree

controllers/restic.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,12 @@ func (r *DPAReconciler) buildResticDaemonset(dpa *oadpv1alpha1.DataProtectionApp
171171
return nil, fmt.Errorf("ds cannot be nil")
172172
}
173173

174+
// get resource requirements for restic ds
175+
// ignoring err here as it is checked in validator.go
176+
resticResourceReqs, _ := r.getResticResourceReqs(dpa)
177+
174178
installDs := install.DaemonSet(ds.Namespace,
175-
install.WithResources(r.getResticResourceReqs(dpa)),
179+
install.WithResources(resticResourceReqs),
176180
install.WithImage(getVeleroImage(dpa)),
177181
install.WithAnnotations(dpa.Spec.PodAnnotations),
178182
install.WithSecret(false))

0 commit comments

Comments
 (0)