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 <saisindhu_chakradari@intuit.com>

* extension.js  should respect ARGOCD_SERVER_ENABLE_GZIP

Signed-off-by: schakrad <chakradari.sindhu@gmail.com>

* reverting the application-resource-list

Signed-off-by: schakrad <chakradari.sindhu@gmail.com>

* Update server/server.go

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: schakradari <saisindhu_chakradari@intuit.com>
Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
schakrad and crenshaw-dev authored Mar 24, 2023
1 parent 8f1b5d5 commit 6e9f28c
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 6e9f28c

Please sign in to comment.