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

hw-event-proxy-operator api returns empty custom resource list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 4.12
    • BMER Events
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      This code used to work and is now broken:

      import bmerv1alpha1 "github.com/redhat-cne/hw-event-proxy-operator/api/v1alpha1"
      
      hwEventList := &bmerv1alpha1.HardwareEventList{}
      err := helper.Apiclient.List(context.TODO(), hwEventList)
      
      if err != nil {
         return fmt.Errorf("failed to list hw event proxy custom resource definition due to: %w", err)
      }
      fmt.Printf("In Check CRD result items are: %v\n", hwEventList.Items)

      Print out is an empty list

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

      bare-metal-event-relay-operator-bundle-container-v4.12.0-121

      How reproducible:

      1. deploy BMER operator
      2. issue code

      Actual results:

      In Check CRD result items are: []

      Expected results:

      list should have one value

      Additional info:

      As you can see the custom resource is installed on the cluster.

      $ oc get crd hardwareevents.event.redhat-cne.org
      NAME                                  CREATED AT
      hardwareevents.event.redhat-cne.org   2022-11-08T03:21:53Z
       

      This is now blocking regression testing.

            jacding@redhat.com Jack Ding
            rhn-support-nwaizer Niv Gal Waizer (Inactive)
            Niv Gal Waizer Niv Gal Waizer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: