Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-3340

Rewrite the CLI downloads server into GOlang

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Normal
    • None
    • None
    • Console Operator
    • None
    • HAC Infra OCP - Sprint 227, OEX OCP Console - Sprint 252

    Description

      Currently our server that is serving the CLI artifacts is written in Python. We need to rewrite it into GO for better maintainance.

       

      Server - https://github.com/openshift/console-operator/blob/master/bindata/assets/deployments/downloads-deployment.yaml#L71-L184

      There is a bug behind this story: https://bugzilla.redhat.com/show_bug.cgi?id=2034094

      AC:

      • Rewrite the server that serves the CLI artifacts into GOlang, as part of the console binary. Bridge will run the downloads server in a goroutine. Downalods server should be getting the cli-artifacts from the cli-artifacts image, which will be running in the same pod as a sidecar
      • In console-operator repository:
        • Remove the downloadsdeployment controller
        • Remove the downloads-deployment.yaml manifest from bindata assets.
        • Update the service route bindata to point to the console pod and to the downloads server.
        • Update console-deployment.yaml manifest to start the cli-artifatcs image as a sidecar (initContainer)
        • Update unit test

       

      Attachments

        Activity

          People

            rh-ee-mziska Marek Ziska
            jhadvig@redhat.com Jakub Hadvig
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: