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

helm chart repository can't be mirrored using oc mirror v2

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.21
    • oc-mirror
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • x86_64
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      I tried to mirror a helm chart repository using an imageSetConfiguration and oc mirror v2. I used the docs https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/disconnected_environments/about-installing-oc-mirror-v2#oc-mirror-imageset-config-parameters-v2_about-installing-oc-mirror-v2 and https://github.com/openshift/oc-mirror/blob/main/v1/docs/design/imageset-configuration.md#helm-chart
      The oc mirror command failed asking to set set global.exposeServicesMethod, but there is not an option to do it in the command flags.

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

       OCP 4.20
      GitVersion:"4.21.0-202602030051.p2.g520cd16.assembly.stream.el9-520cd16
          

      How reproducible:

      100%
          

      Steps to Reproduce:
      1. Define disconnected-imagesetconfig-2.yaml

      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        helm:
          repositories:
          - name: flightctl-local
            url: https://charts.openshift.io/
            charts:
            - name: flightctl
              version: 1.0.2
      
      

      2. Use oc-mirror 4.21 in OCP4.20 disconnected env:

      oc mirror --v2 --config disconnected-imagesetconfig-2.yaml \
          --src-tls-verify=false \
          --dest-tls-verify=false \
          --authfile /home/kni/auth.json \
          --workspace=file:///home/kni/flightctl \
          docker://e2eregistry.apps.ocp3m0w-id46s20.qe.lab.redhat.com:443/flightctl
      

      3. Check the command output

          Actual results:{code:none}
      2026/02/19 12:22:24  [INFO]   : 👋 Hello, welcome to oc-mirror
      2026/02/19 12:22:24  [INFO]   : ⚙️  setting up the environment for you...
      2026/02/19 12:22:24  [INFO]   : ⚙️  environment version: 4.21.0-202602030051.p2.g520cd16.assembly.stream.el9-520cd16
      2026/02/19 12:22:24  [INFO]   : 🔀 workflow mode: mirrorToMirror 
      2026/02/19 12:22:24  [INFO]   : Verified we can authenticate against registry "e2eregistry.apps.ocp3m0w-id46s20.qe.lab.redhat.com:443/flightctl"
      2026/02/19 12:22:24  [INFO]   : 🕵  going to discover the necessary images...
      2026/02/19 12:22:24  [INFO]   : 🔍 collecting release images...
      2026/02/19 12:22:24  [INFO]   : 🔍 collecting operator images...
      2026/02/19 12:22:24  [INFO]   : 🔍 collecting additional images...
      2026/02/19 12:22:24  [INFO]   : 🔍 collecting helm images...
      2026/02/19 12:22:25  [INFO]   : mirror time     : 1.362490296s
      2026/02/19 12:22:25  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      2026/02/19 12:22:25  [ERROR]  : [Executor] collection error: failed to get template flightctl: error rendering chart flightctl: execution error at (flightctl/templates/ui/flightctl-ui-service.yaml:15:13): Could not detect OpenShift, nor Gateway resources. Please set global.exposeServicesMethod
          

      Expected results:

      I should have an option to set global.exposeServicesMethod or pass a values.yaml file
          

      Additional info:

      
          

              rh-ee-aguidi Alex Guidi
              sserafin@redhat.com Silvia Serafini
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: