XMLWordPrintable

Details

    • Hide

      Create a proxy with name starting with "p" in CheCluster CR.

      Show
      Create a proxy with name starting with "p" in CheCluster CR.

    Description

      While installing CRW on Customer site, we found that Operator snips out first letter of the proxy URL. Proxy URL was configured as per https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.1/html-single/installation_guide/index#preparing-codeready-workspaces-custom-resource-for-installing-behind-a-proxy 

      in CheCluster CR

       

      proxyURL: 'http://proxy.customer.com'

      proxyPort: '8080'

       

       

      When we try to create workspace, it fails to connect to internet. We noticed that httpproxy URL in JAVA_OPTS was referred to as "roxy.customer.com". "p" got snipped out.

       

      This code is being written from https://github.com/eclipse/che-operator/blob/crw-2.1/pkg/util/util.go#L238.

       

      It uses strings.TrimLeft which is why "p" is getting removed. Here is the documentation.

      https://golang.org/pkg/strings/#TrimLeft

      "TrimPrefix" must be used instead.

       

       
       

      Attachments

        Activity

          People

            mmorhun Mykola Morhun
            jaisubbiah Jayamurugan Subbiah (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: