che-operator icon indicating copy to clipboard operation
che-operator copied to clipboard

no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig

Open elmanytas opened this issue 2 years ago • 4 comments

Installation tested in kubernetes 1.25 and 1.23:

helm repo add eclipse-che https://eclipse-che.github.io/che-operator/charts
helm repo update eclipse-che
helm upgrade --install eclipse-che \
       	eclipse-che/eclipse-che \
	--create-namespace --namespace eclipse-che

cheCluster.yaml

apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: eclipse-che
  namespace: eclipse-che
spec:
  components: {}
  containerRegistry: {}
  devEnvironments: {}
  gitServices: {}
  networking:
    domain: che.in.someplace.com
    auth:
      identityProviderURL: https://keycloak.in.someplace.com/realms/master
      oAuthClientName: che
      oAuthSecret: wasdfasdfghgtyfggdfd5t6XDmt
  components:
    cheServer:
      extraProperties:
        CHE_OIDC_USERNAME__CLAIM: email

logs:

time="2023-04-06T09:08:06Z" level=info msg="Creating a new object: v1.ConfigMap, name: ca-certs-merged"
time="2023-04-06T09:08:07Z" level=info msg="Creating a new object: v1.Secret, name: self-signed-certificate"
time="2023-04-06T09:08:07Z" level=info msg="Custom resource status eclipse-che updated with status: Reason: InstallOrUpdateFailed"
time="2023-04-06T09:08:07Z" level=info msg="Custom resource status eclipse-che updated with status: Message: Reconciler failed devworkspaceconfig.DevWorkspaceConfigReconciler, cause: no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""
2023-04-06T09:08:07.580Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2023-04-06T09:08:08.470Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
I0406 09:08:09.587597       1 request.go:668] Waited for 1.038776921s due to client-side throttling, not priority and fairness, request: GET:https://10.152.183.1:443/apis/storage.k8s.io/v1beta1?timeout=32s
2023-04-06T09:08:10.509Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2023-04-06T09:08:12.565Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2023-04-06T09:08:14.609Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2023-04-06T09:08:16.659Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2023-04-06T09:08:18.710Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
I0406 09:08:19.880434       1 request.go:668] Waited for 1.084542457s due to client-side throttling, not priority and fairness, request: GET:https://10.152.183.1:443/apis/node.k8s.io/v1?timeout=32s
2023-04-06T09:08:20.761Z	ERROR	controller-runtime.manager.controller.checluster	Reconciler error	{"reconciler group": "org.eclipse.che", "reconciler kind": "CheCluster", "name": "eclipse-che", "namespace": "eclipse-che", "error": "no kind is registered for the type v1alpha1.DevWorkspaceOperatorConfig in scheme \"/che-operator/main.go:90\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/che-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214

Am I doing something wrong?

elmanytas avatar Apr 06 '23 09:04 elmanytas

I got the same problem. This means that the helm chart deployment is completely useless, at least on vanilla Kubernetes, because it deploys a non-working utility. Unfortunately, this also means that the git-ops approach for infrastructure components deployment is not supported by che.

AlDemion avatar May 25 '23 14:05 AlDemion

Same issue here, did you guys figure out a workaround? On my demo OpenShift cluster the RH Dev Spaces is dependent on https://github.com/devfile/devworkspace-operator but I don't see a helm chart listed in that git repository.

brandonp42 avatar Jun 04 '23 17:06 brandonp42

FYI it looks like you have to use the chectl command line tool for now, that seems to install the DevWorkspace operator.

brandonp42 avatar Jun 04 '23 18:06 brandonp42

This chart doesn't work even if devworkspace-operator is installed. After applying the CheConfig logs show:

2024-09-06T19:33:09Z    ERROR   Reconciler error        {"controller": "checluster", "controllerGroup": "org.eclipse.che", "controllerKind": "CheCluster", "CheCluster": {"name":"eclipse-che","namespace":"eclipse-che"}, "namespace": "eclipse-che", "name": "eclipse-che", "reconcileID": "3a4707bb-25cd-4df0-84d4-9ee2ab589008", "error": "Get \"https://che.mydomain.org\": dial tcp: lookup che.mydomain.org on 10.196.0.10:53: no such host"}

There must be another step required other than just kubectl apply combined.yaml from the devworkspace-operator repo.

If I uninstall the che helm chart and then use chectl to deploy using the same checonfig that succeeds:

› Current Kubernetes context: 'admin@cluster'
  ✔ Verify Kubernetes API
  ✔ Kubernetes preflight checklist
    ✔ Verify if kubectl is installed...[OK]
    ✔ Verify domain is set...[OK]
  ✔ Create Namespace eclipse-che...[Created]
  ↓ Install Cert Manager v1.8.2 [skipped]
  ✔ Start following Eclipse Che installation logs...[OK]
  ✔ Deploy Eclipse Che operator
    ✔ Install Dev Workspace operator
      ✔ Create Namespace devworkspace-controller...[Exists]
      ✔ Create Dev Workspace operator resources...[Created]
      ✔ Wait for Dev Workspace operator ready...[OK]
    ✔ Create ServiceAccount che-operator...[Created]
    ✔ Create RBAC
      ✔ Create Role che-operator...[Created]
      ✔ Create RoleBinding che-operator...[Created]
      ✔ Create RoleBinding eclipse-che-che-operator...[Created]
      ✔ Create RoleBinding eclipse-che-che-operator...[Created]
    ✔ Create Certificate che-operator-serving-cert...[Created]
    ✔ Create Issuer che-operator-selfsigned-issuer...[Created]
    ✔ Create Service che-operator-service...[Created]
    ✔ Create CRD checlusters.org.eclipse.che...[Exists]
    ✔ Waiting...[OK]
    ✔ Create Deployment che-operator...[Created]
    ✔ Eclipse Che Operator pod bootstrap
      ✔ Scheduling...[OK]
      ✔ Downloading images...[OK]
      ✔ Starting...[OK]
    ✔ Create ValidatingWebhookConfiguration org.eclipse.che...[Created]
    ✔ Create MutatingWebhookConfiguration org.eclipse.che...[Created]
    ✔ Create CheCluster Custom Resource...[Created]
  ✔ Wait for Eclipse Che ready
    ✔ Plugin Registry pod bootstrap
      ✔ Scheduling...[OK]
      ✔ Downloading images...[OK]
      ✔ Starting...[OK]
    ✔ Dashboard pod bootstrap
      ✔ Scheduling...[OK]
      ✔ Downloading images...[OK]
      ✔ Starting...[OK]
    ✔ Gateway pod bootstrap
      ✔ Scheduling...[OK]
      ✔ Downloading images...[OK]
      ✔ Starting...[OK]
    ✔ Eclipse Che Server pod bootstrap
      ✔ Scheduling...[OK]
      ✔ Downloading images...[OK]
      ✔ Starting...[OK]
    ✔ Wait Eclipse Che active...[OK]
  ✔ Retrieving Eclipse Che self-signed CA certificate...[OK: /tmp/cheCA.crt]
  ✔ Prepare post installation output...[OK]
  ✔ Show important messages
    ✔ Eclipse Che 7.91.0 has been successfully deployed.
    ✔ Documentation             : https://www.eclipse.org/che/docs/
    ✔ -------------------------------------------------------------------------------
    ✔ Users Dashboard           : https://che.mydomain.org/dashboard/
    ✔ -------------------------------------------------------------------------------
    ✔ Plug-in Registry          : https://che.mydomain.org/plugin-registry/v3/
    ✔ -------------------------------------------------------------------------------
Command server:deploy has completed successfully in 02:13.

brunnels avatar Sep 06 '24 20:09 brunnels