Get CRD correctly
`b.CustomResource` is an empty string since we removed the `GetCSV`
function in Using `b.kind`
achieves the same.
@@ -121,7 +121,7 @@ func (b *OperatorBackend) ValidateServiceCreate(o *CreateOptions) error {
return fmt.Errorf("the %q resource doesn't exist in specified %q operator", b.CustomResource, b.group)
}
- crd, err := o.KClient.GetCRDSpec(cr, b.group, b.CustomResource)
+ crd, err := o.KClient.GetCRDSpec(cr, b.group, b.kind)
if err != nil {
return err
}
