Kuadrant / authorino-operator

Kubernetes Operator to manage Authorino instances
Apache License 2.0
9 stars 20 forks source link

Install plan is not getting generated when installing through Catalog Source #211

Closed R3hankhan123 closed 2 months ago

R3hankhan123 commented 2 months ago

When trying to install the authorino operator through the catalog source using the following commands

kubectl create namespace authorino-operator

kubectl -n authorino-operator apply -f -<<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: operatorhubio-catalog
  namespace: authorino-operator
spec:
  sourceType: grpc
  image: quay.io/kuadrant/authorino-operator-catalog:latest
  displayName: Authorino Operator
EOF

kubectl apply -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: authorino-operator
spec:
  channel: alpha
  name: authorino-operator
  source: operatorhubio-catalog
  sourceNamespace: authorino-operator
  installPlanApproval: Automatic
EOF

The install plan is not getting generated and all available catalogsources are healthy

Screenshot 2024-09-17 at 2 55 42 PM Screenshot 2024-09-17 at 2 56 07 PM
adam-cattermole commented 2 months ago

Hi @R3hankhan123. The catalog image you're using quay.io/kuadrant/authorino-operator-catalog:latest looks to only contain bundled operators with channel: stable, perhaps that's the issue with the subscription?

R3hankhan123 commented 2 months ago

Hi, @adam-cattermole after using the stable channel the install plan is still not being generated

Screenshot 2024-09-17 at 3 22 03 PM
adam-cattermole commented 2 months ago

It looks likely you're missing an OperatorGroup for the authorino-operator namespace which lets OLM install operators there. Could you try create one like this:

kubectl apply -f - <<EOF
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: authorino-og
  namespace: authorino-operator
spec: {}
EOF
R3hankhan123 commented 2 months ago

Interesting, usually the OperatorGroup gets created by default. The solution worked though thanks!

adam-cattermole commented 2 months ago

Great, glad it's working! Will close this but feel free to re-open if you find an issue