Skip to content

Commit

Permalink
Also add RWO PVC without NodeAffinity from its PV
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Bornhold <[email protected]>
  • Loading branch information
johbo authored and eunames committed Jul 15, 2024
1 parent bca60c0 commit b8be396
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions operator/backupcontroller/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ func (b *BackupExecutor) listAndFilterPVCs(ctx context.Context, annotation strin

bi.node = findNode(pv, pvc)
if bi.node == "" {
log.Info("RWO PVC not bound and no PV node affinity set, skipping", "pvc", pvc.GetName(), "affinity", pv.Spec.NodeAffinity)
continue
log.Info("RWO PVC not bound and no PV node affinity set, adding", "pvc", pvc.GetName(), "affinity", pv.Spec.NodeAffinity)
}
log.V(1).Info("node found in PV or PVC", "pvc", pvc.GetName(), "node", bi.node)
} else {
Expand Down

0 comments on commit b8be396

Please sign in to comment.