Skip to content

Commit

Permalink
feat: extensions.js should respect argocd server enable gzip (argopro…
Browse files Browse the repository at this point in the history
…j#12890)

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* extension.js  should respect ARGOCD_SERVER_ENABLE_GZIP

Signed-off-by: schakrad <[email protected]>

* reverting the application-resource-list

Signed-off-by: schakrad <[email protected]>

* Update server/server.go

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
  • Loading branch information
2 people authored and xiaowu.zhu committed Aug 9, 2023
1 parent e13ec80 commit 5ea7248
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,13 @@ func (a *ArgoCDServer) newHTTPServer(ctx context.Context, port int, grpcWebHandl
// Serve extensions
var extensionsSharedPath = "/tmp/extensions/"

mux.HandleFunc("/extensions.js", func(writer http.ResponseWriter, _ *http.Request) {
var extensionsHandler http.Handler = http.HandlerFunc(func(writer http.ResponseWriter, _ *http.Request) {
a.serveExtensions(extensionsSharedPath, writer)
})
if a.ArgoCDServerOpts.EnableGZip {
extensionsHandler = compressHandler(extensionsHandler)
}
mux.Handle("/extensions.js", extensionsHandler)

// Serve UI static assets
var assetsHandler http.Handler = http.HandlerFunc(a.newStaticAssetsHandler())
Expand Down

0 comments on commit 5ea7248

Please sign in to comment.