Skip to content

Commit

Permalink
fix(restore): updating the label selector for ZFS-LocalPV (#139)
Browse files Browse the repository at this point in the history
Velero has updated the label selector for change-pvc Restore action item(Ref: vmware-tanzu/velero#2970).
Updating the velero plugin for ZFS-LocalPV with the same label.

Signed-off-by: Pawan <[email protected]>
  • Loading branch information
pawanpraka1 authored Dec 5, 2020
1 parent aeeb9f4 commit 8382be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/139-pawanpraka1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
updating the label selector for restoring the ZFS-LocalPV volumes on different node
2 changes: 1 addition & 1 deletion pkg/velero/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func GetRestoreNamespace(ns, bkpName string, log logrus.FieldLogger) (string, er
// if node mapping found then it will return the mapping/target nodename
func GetTargetNode(k8s *kubernetes.Clientset, node string) (string, error) {
opts := metav1.ListOptions{
LabelSelector: "velero.io/plugin-config,velero.io/change-pvc-node=RestoreItemAction",
LabelSelector: "velero.io/plugin-config,velero.io/change-pvc-node-selector=RestoreItemAction",
}

list, err := k8s.CoreV1().ConfigMaps(veleroNs).List(opts)
Expand Down

0 comments on commit 8382be9

Please sign in to comment.