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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.15
    • HyperShift
    • Moderate
    • No
    • Hypershift Sprint 256, Hypershift Sprint 257, Hypershift Sprint 258, Hypershift Sprint 259
    • 4
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

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

      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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: