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

Commit

Permalink
fix ckube watch
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiaop committed May 15, 2022
1 parent 795ab01 commit 717f11c
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 717f11c

Please sign in to comment.