-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(*) move the GUI from :5683 to :5681/gui #915
Conversation
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
pkg/api-server/server.go
Outdated
// Handle the GUI | ||
container.Handle("/gui/", http.StripPrefix("/gui/", http.FileServer(resources.GuiDir))) | ||
container.Handle("/api/", http.StripPrefix("/api/", container)) | ||
container.ServeMux.HandleFunc("/gui/config/", newApiServer.configHandler) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think /api
is needed anymore. You can just invoke root path of this server. I also think that /gui/config
is obsolete, because all the information are in /config
Can you coordinate this with @bloqhead on GUI side? I can help if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also suggest API on /
, while the GUI on /gui
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not opposed to using /
for the API. I have to traverse up the URL path to access the API if the GUI is in /gui
but that change is small. I think labeling them /api
and /gui
adds more clarity, but it's not crucial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
60517e5
to
6babf7e
Compare
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
…gui_servers Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
…gui_servers # Conflicts: # app/kumactl/pkg/install/k8s/control-plane/templates_vfsdata.go
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Just want to confirm that API listens on |
pkg/api-server/server_gui_test.go
Outdated
} | ||
|
||
Describe("enabled", | ||
func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we put it in the same line with describe
pkg/api-server/server_gui_test.go
Outdated
var stop chan struct{} | ||
var baseUrl string | ||
|
||
beforeEach := func(enabelGUI bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about setupServer
instead of beforeEach
pkg/api-server/server.go
Outdated
@@ -31,7 +35,8 @@ var ( | |||
) | |||
|
|||
type ApiServer struct { | |||
server *http.Server | |||
server *http.Server | |||
GuiServerConfig *gui_server.GuiServerConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it used?
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Exactly, there are no other endpoints from the old GUI server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Is there anything else we have left on this task? I have the changes in place in the GUI to align with this. |
…gui_servers Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Summary
Changes:
:5683
:5681/gui
remote
mode), show a disabled pageIssues resolved
Fix #XXX
Documentation