Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-2329

The main.js delivered with OpenShift GitOps (Argo CD web UI) is huge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 1.7.0
    • 1.6.1
    • None
    • None
    • 8
    • False
    • None
    • False
    • GITOPS Sprint 226, GITOPS Sprint 227, GITOPS Sprint 228

      The main.js delivered to the browser for the web UI of Argo CD in OpenShift GitOps is 36MB in size, significantly increasing load times when opening the UI.

      In contrast, the version upstream delivers is only 5MB in size.

      For example (recent upstream version):

       

      Compared to what is delivered from OpenShift GitOps v1.6.1:

       

       

      A workaround to this exists by enabling compression in the argocd-server. This can be achieved by setting the environment variable ARGOCD_SERVER_ENABLE_GZIP to the value "true" for the argocd-server workload:

      spec:
        server:
          env:
          - name: ARGOCD_SERVER_ENABLE_GZIP
            value: "true" 

      The argocd-server pod(s) will restart, and the main.js download size should be significantly smaller now.

        1. image-2022-09-16-09-22-37-495.png
          203 kB
          Jann Fischer
        2. image-2022-09-16-09-23-18-469.png
          73 kB
          Jann Fischer
        3. main.js-is-huge-fixed.png
          268 kB
          Regina Scott
        4. Screen Shot 2022-09-16 at 2.15.19 PM.png
          68 kB
          Samy Zemmouri

              rescott1 Regina Scott (Inactive)
              jfischer@redhat.com Jann Fischer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: