-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
4.12
-
None
-
None
-
False
-
-
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.