Skip to content

Commit

Permalink
fix: Allow URIs to handle search parameters (HAWNG-680)
Browse files Browse the repository at this point in the history
* Namespaces, projects and pods need to use search parameters, eg.
  projectSelector, if the user specifies them in the config. Modifies URI
  patterns to handle such endpoints.
  • Loading branch information
phantomjinx committed May 15, 2024
1 parent 363c806 commit 19c919d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ var masterUrlPatterns = [
// OpenShift Current User
/\/master\/apis\/user.openshift.io\/v1\/users\/~$/,
// OpenShift projects (for cluster-mode)
/\/master\/apis\/project.openshift.io\/v1\/projects$/,
/\/master\/apis\/project.openshift.io\/v1\/projects(\?.*)?/,
// Kubernetes namespaces (for cluster-mode)
/\/master\/api\/v1\/namespaces$/,
/\/master\/api\/v1\/namespaces(\?.*)?/,
// Kubernetes Pods in a wildcard namespace to be converted to websocket
/\/master\/api\/v1\/namespaces\/[0-9a-zA-Z-]+\/pods\?watch=true$/,
// Kubernetes Pods in a wildcard namespace
/\/master\/api\/v1\/namespaces\/[0-9a-zA-Z-]+\/pods$/,
/\/master\/api\/v1\/namespaces\/[0-9a-zA-Z-]+\/pods(\?.*)?/,
// Query for the uri of the OpenShift web console
/\/master\/api\/v1\/namespaces\/openshift-config-managed\/configmaps\/console-public/
]
Expand Down

0 comments on commit 19c919d

Please sign in to comment.