Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-37060

ca-bundle.crt is not injected in the global-ca configmaps from builds in HCP cluster

XMLWordPrintable

    • Moderate
    • No
    • Hypershift Sprint 256, Hypershift Sprint 257, Hypershift Sprint 258
    • 3
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      This is a clone of issue OCPBUGS-35905. The following is the description of the original issue:

      Description of problem:

      The builds installed in the hosted clusters are having issues to git-clone repositories from external URLs where their CA are configured in the ca-bundle.crt from trsutedCA section:
      
       spec:
          configuration:
            apiServer:
             [...]
            proxy:
              trustedCA:
                name: user-ca-bundle <---
      
      In traditional OCP implementations, the *-global-ca configmap is installed in the same namespace from the build and the ca-bundle.crt is injected into this configmap. In hosted clusters the configmap is being created empty: 
      
      $ oc get cm -n <app-namespace> <build-name>-global-ca  -oyaml
      apiVersion: v1
      data:
        ca-bundle.crt: ""
      
      
      As mentioned, the user-ca-bundle has the certificates configured:
      
      $ oc get cm -n openshift-config user-ca-bundle -oyaml
      apiVersion: v1
      data:
        ca-bundle.crt: |
          -----BEGIN CERTIFICATE----- <---
      
      
      

       

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      Easily

      Steps to Reproduce:

      1. Install hosted cluster with trustedCA configmap
      2. Run a build in the hosted cluster
      3. Check the global-ca configmap
      

      Actual results:

      global-ca is empty

      Expected results:

      global-ca injects the ca-bundle.crt properly

      Additional info:

       

            jparrill@redhat.com Juan Manuel Parrilla Madrid
            openshift-crt-jira-prow OpenShift Prow Bot
            Jie Zhao Jie Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: