odo: odo catalog describe service doesn't work if provided with just top level operator type

/kind bug

What versions of software are you using?

Operating System:

Output of odo version:

How did you run odo exactly?

Sevice exists I can see it in catalog, but it fails to describe it

▶ odo catalog list services
Services available through Operators
NAME                                CRDs
rhsso-operator.7.4.7                Keycloak, KeycloakRealm, KeycloakBackup, KeycloakClient, KeycloakUser
service-binding-operator.v0.7.1     ServiceBinding




▶ odo catalog describe service rhsso-operator.7.4.7
 ✗  unable to search classes by name (clusterserviceclasses.servicecatalog.k8s.io is forbidden: User "developer" cannot list resource "clusterserviceclasses" in API group "servicecatalog.k8s.io" at the cluster scope)

Actual behavior

▶ odo catalog describe service rhsso-operator.7.4.7
 ✗  unable to search classes by name (clusterserviceclasses.servicecatalog.k8s.io is forbidden: User "developer" cannot list resource "clusterserviceclasses" in API group "servicecatalog.k8s.io" at the cluster scope)

Expected behavior

I should be able to see some details about the operator service

▶ odo catalog describe service rhsso-operator.7.4.7

Name: Red Hat Single Sign-On Operator

Description:
A Kubernetes Operator based on the Operator SDK for installing and managing Red Hat Single Sign-On.

Red Hat Single Sign-On lets you add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.

The operator can deploy and manage Keycloak instances on Kubernetes and OpenShift. The following features are supported:

Install Keycloak to a namespace
Import Keycloak Realms
Import Keycloak Clients
Import Keycloak Users
Create scheduled backups of the database

CRDs:
Name            Description
Keycloak        Represents a Red Hat Single Sign-On Instance
KeycloakRealm   Represents a Red Hat Single Sign-On Realm
KeycloakBackup  Represents a Red Hat Single Sign-On Backup
KeycloakClient  Represents a Red Hat Single Sign-On Client
KeycloakUser    Represents a Red Hat Single Sign-On User

For detailed information run 'odo catalog describe service rhsso-operator.7.4.7/<CRD-name>'

I would also expect the same information, but in json format

▶ odo catalog describe service rhsso-operator.7.4.7 -o json

above information is taken from oc get csv rhsso-operator.7.4.7 -o yaml

Any logs, error output, etc?

/kind bug /area service /area service-operators /priority high

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (15 by maintainers)

Most upvoted comments

should we add this to milestone 2.3 @dharmit ?

IMO, no. We should pick this up in 2.4 IMO.

Moreover, I don’t think this should be high priority; medium at best, because odo catalog describe service -h clearly states that a user should provide <operator>/<cr-name> for Operator backed service.

This is really confusing for the user. I think that if someone runs odo catalog describe service with the argument that matches the operator name it should show a description and list of CRDs…

IMO, this is a feature and not a bug. We didn’t scope/think of this when implementing.

ok, maybe overacted to this. But I still feel that this should be relatively high priority as the is a big usability problem.

/remove-kind bug /kind feature