jetstack/kube-oidc-proxy

Watching with client-go hangs

ernoaapa opened this issue · 3 comments

Hi,
I have Go CLI that watch CRD resources. For unknown reasons, it's unable to watch the resources.

This line in my go app, never return:

w, err := client.MyCustomResources("default").Watch(metav1.ListOptions{})

Should the watch be supported through the kube-oidc-proxy?

Hi there!

Looks like my reply never got posted so I'll try again 😐

It looks like to me that you are finding the same problem as here. Watch requests often are not picked up by the httputil.ReverseProxy as long running connections and thus are not flushed immediately. To fix this, the default flush interval (previously never flushed) is now set to 50ms by default which can be configured.

This has now been merged and will be contained in v0.3.0 which I want to get released in the coming days.

Should be now fixed.

/close

@JoshVanL: Closing this issue.

In response to this:

Should be now fixed.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.