Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lghinet committed Dec 6, 2023
1 parent 7ec2214 commit 9770062
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/operator/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ func (opsrv *operatorServer) WatchConfiguration(request *operatorv1.WatchConfigu
}

func (opsrv *operatorServer) WatchComponents(request *operatorv1.WatchComponentsRequest, stream operatorv1.RusiOperator_WatchComponentsServer) error {

klog.V(4).InfoS("Starting streaming components")

c := make(chan rusiv1.Component)
opsrv.ow.addComponentListener(c)
defer opsrv.ow.removeComponentListener(c)

klog.V(4).InfoS("Starting consuming components channel")

for {
select {
case obj := <-c:
Expand Down

0 comments on commit 9770062

Please sign in to comment.