Skip to content

Commit

Permalink
Implement image fetcher feature
Browse files Browse the repository at this point in the history
Sync nsx.vmware.com/node-id annotation of subnetport with nsx-t.
Sync wcp.vmware.com/image-fetcher: "true" and namespace_uid label of subnetport with tags of nsx-t.

Signed-off-by: Xie Zheng <xizheng@vmware.com>
  • Loading branch information
zhengxiexie committed Feb 23, 2024
1 parent 45aedbc commit 6dc108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/subnetport/subnetport_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func (r *SubnetPortReconciler) SetupWithManager(mgr ctrl.Manager) error {
MaxConcurrentReconciles: common.NumReconcile(),
}).
Watches(&vmv1alpha1.VirtualMachine{},
handler.EnqueueRequestsFromMapFunc(r.vmMapFunc),
builder.WithPredicates(predicate.LabelChangedPredicate{})).
handler.EnqueueRequestsFromMapFunc(r.vmMapFunc),
builder.WithPredicates(predicate.LabelChangedPredicate{})).
Complete(r) // TODO: watch the virtualmachine event and update the labels on NSX subnet port.
}

Expand Down

0 comments on commit 6dc108a

Please sign in to comment.