operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.7k stars 542 forks source link

Can't install olm "no matches for kind "OLMConfig" in version "operators.coreos.com/v1" #2964

Open johncleveland opened 1 year ago

johncleveland commented 1 year ago

Bug Report

I am following the instructions on the HELM quickstart tutorial https://sdk.operatorframework.io/docs/building-operators/helm/ I have also tried many other combos of operator-sdk and olm. I have also tried to install olm manually ( https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/install/install.md) but the links e.g. deploy/upstream/quickstart/crds.yaml dont work

What did you expect to see? INFO[0000] Fetching CRDs for version "latest" INFO[0000] Fetching resources for resolved version "latest" I0302 14:26:13.947244 61268 request.go:682] Waited for 1.041225333s due to client-side throttling, not priority and fairness, request: GET:https://127.0.0.1:63693/apis/flowcontrol.apiserver.k8s.io/v1beta2?timeout=32s INFO[0006] Creating CRDs and resources INFO[0006] Creating CustomResourceDefinition "catalogsources.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "clusterserviceversions.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "installplans.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "olmconfigs.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "operatorconditions.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "operatorgroups.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "operators.operators.coreos.com" INFO[0006] Creating CustomResourceDefinition "subscriptions.operators.coreos.com" INFO[0006] Creating Namespace "olm" INFO[0006] Creating Namespace "operators" INFO[0006] Creating ServiceAccount "olm/olm-operator-serviceaccount" INFO[0006] Creating ClusterRole "system:controller:operator-lifecycle-manager" INFO[0006] Creating ClusterRoleBinding "olm-operator-binding-olm" INFO[0006] Creating OLMConfig "cluster" INFO[0009] Creating Deployment "olm/olm-operator" INFO[0009] Creating Deployment "olm/catalog-operator" INFO[0009] Creating ClusterRole "aggregate-olm-edit" INFO[0009] Creating ClusterRole "aggregate-olm-view" INFO[0009] Creating OperatorGroup "operators/global-operators" INFO[0009] Creating OperatorGroup "olm/olm-operators" INFO[0009] Creating ClusterServiceVersion "olm/packageserver" INFO[0010] Creating CatalogSource "olm/operatorhubio-catalog" INFO[0010] Waiting for deployment/olm-operator rollout to complete INFO[0010] Waiting for Deployment "olm/olm-operator" to rollout: 0 of 1 updated replicas are available INFO[0021] Deployment "olm/olm-operator" successfully rolled out INFO[0021] Waiting for deployment/catalog-operator rollout to complete INFO[0021] Deployment "olm/catalog-operator" successfully rolled out INFO[0021] Waiting for deployment/packageserver rollout to complete INFO[0021] Waiting for Deployment "olm/packageserver" to rollout: 0 of 2 updated replicas are available INFO[0032] Deployment "olm/packageserver" successfully rolled out INFO[0032] Successfully installed OLM version "latest"

NAME NAMESPACE KIND STATUS catalogsources.operators.coreos.com CustomResourceDefinition Installed clusterserviceversions.operators.coreos.com CustomResourceDefinition Installed installplans.operators.coreos.com CustomResourceDefinition Installed olmconfigs.operators.coreos.com CustomResourceDefinition Installed operatorconditions.operators.coreos.com CustomResourceDefinition Installed operatorgroups.operators.coreos.com CustomResourceDefinition Installed operators.operators.coreos.com CustomResourceDefinition Installed subscriptions.operators.coreos.com CustomResourceDefinition Installed olm Namespace Installed operators Namespace Installed olm-operator-serviceaccount olm ServiceAccount Installed system:controller:operator-lifecycle-manager ClusterRole Installed olm-operator-binding-olm ClusterRoleBinding Installed cluster OLMConfig Installed olm-operator olm Deployment Installed catalog-operator olm Deployment Installed aggregate-olm-edit ClusterRole Installed aggregate-olm-view ClusterRole Installed global-operators operators OperatorGroup Installed olm-operators olm OperatorGroup Installed packageserver olm ClusterServiceVersion Installed operatorhubio-catalog olm CatalogSource Installed

What did you see instead? Under which circumstances? FATA[0012] Failed to install OLM version "latest": failed to create CRDs and resources: no matches for kind "OLMConfig" in version "operators.coreos.com/v1"

Environment

operator-sdk v1.288.1 olm v0.24.0

v1.24.3

Possible Solution

Additional context Add any other context about the problem here.

johncleveland commented 1 year ago

It is a local cluster. It uses vagrant and this repo https://github.com/mmumshad/kubernetes-the-hard-way