Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from hanxiaop/fix-watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kebe7jun authored May 15, 2022
2 parents 795ab01 + 717f11c commit 8492dab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ func isWatchRequest(r *http.Request) bool {
func proxyPassWatch(r *ReqContext, cluster string) interface{} {
q := r.Request.URL.Query()
q.Set("timeout", "30m")
if v, ok := q["labelSelector"]; ok {
if len(v) == 1 && v[0] == "<none>" {
delete(q, "labelSelector")
}
}
r.Request.URL.RawQuery = q.Encode()
u := r.Request.URL.String()
log.Debugf("proxyPass url: %s", u)
Expand Down

0 comments on commit 8492dab

Please sign in to comment.