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 <johannes@bornhold.name>
  • Loading branch information
johbo committed Jun 13, 2024
1 parent 18e11b8 commit fa178ec
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 fa178ec

Please sign in to comment.