Skip to content

Commit fb1ca3f

Browse files
committed
Notify changes in the port visibility
1 parent a4315da commit fb1ca3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ws-manager-mk2/controllers/subscriber_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ func (r *SubscriberReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Ma
8484
old := e.ObjectOld.(*workspacev1.Workspace)
8585
new := e.ObjectNew.(*workspacev1.Workspace)
8686

87+
if !equality.Semantic.DeepDerivative(old.Spec.Ports, new.Spec.Ports) {
88+
return true
89+
}
90+
8791
return !equality.Semantic.DeepDerivative(old.Status, new.Status)
8892
},
8993
}

0 commit comments

Comments
 (0)