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

oc-mirror includes on the IDMS file a status line

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • CLID Sprint 280
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Description of problem:

      Mirroring day-2 operator images from the redhat-operator-index:v4.20 with the oc-mirror 4.20.0 binary on (--v2 mode), you get as an output some files including the "idms-oc-mirror.yaml" IDMS file. This file at end has a "status: {}" line. In oc-mirror 4.18 versions the output file was the ICSP file that didn't included this status line.

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

      oc-mirror Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.20.0-202509230043.p2.g767d31f.assembly.stream.el9-767d31f", GitCommit:"767d31f19e91d387f62c700ef45002a712da87c5", GitTreeState:"clean", BuildDate:"2025-09-23T05:17:25Z", GoVersion:"go1.24.4 (Red Hat 1.24.4-1.module+el8.10.0+23323+67916f33) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      Mirroring day-2 operator images from the redhat-operator-index:v4.20 with the oc-mirror 4.20.0 binary on (--v2 mode)

      Steps to Reproduce:

      1. Mirror one day2-operator from the redhat-operator-index:v4.20 (ex: lvms-operator) with the oc-mirror 4.20.0 binary on (--v2 mode)
      2. Check the output file "working-dir/cluster-resources/idms-oc-mirror.yaml" and look for the file's last row.
          

      Actual results:

      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        name: idms-operator-0
      spec:
        imageDigestMirrors:
        - mirrors:
          - registry.offline.redhat.lan:5000/compliance/openshift-compliance-rhel8-operator
          source: registry.redhat.io/compliance/openshift-compliance-rhel8-operator
      status: {}

      Expected results:

      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        name: idms-operator-0
      spec:
        imageDigestMirrors:
        - mirrors:
          - registry.offline.redhat.lan:5000/compliance/openshift-compliance-rhel8-operator
          source: registry.redhat.io/compliance/openshift-compliance-rhel8-operator

      Additional info:

      This single line impacts on the automated deployment of this IDMS using Gitops

              dorzel Dylan Orzel
              rh-ee-feferran Federico Ferrando
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: