slime icon indicating copy to clipboard operation
slime copied to clipboard

slime boot install error when follow lazy load tutorials

Open nonumber1989 opened this issue 2 years ago • 1 comments

Bug description we want to try lazy load but found that slime boot install error when follow the tutorials Affected sub-moudle (please put an X in all that apply)

[ X ] Slime Boot

Steps to reproduce the bug $ export latest_tag=$(curl -s https://api.github.com/repos/slime-io/lazyload/tags | grep 'name' | cut -d\" -f4 | head -1) $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/slime-io/lazyload/$latest_tag/install/samples/lazyload/easy_install_lazyload.sh)" image

{"level":"error","ts":1665395259.1904366,"logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"SlimeBoot.config.netease.com","error":"no matches for kind "SlimeBoot" in version "config.netease.com/v1alpha1"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/source/source.go:127"} {"level":"error","ts":1665395259.1907156,"logger":"controller-runtime.manager.controller.slimeboot-controller","msg":"Could not wait for Cache to sync","error":"failed to wait for slimeboot-controller caches to sync: no matches for kind "SlimeBoot" in version "config.netease.com/v1alpha1"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:195\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:221\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/manager/internal.go:696"} {"level":"error","ts":1665395259.1911843,"logger":"cmd","msg":"Manager exited non-zero.","Namespace":"","error":"failed to wait for slimeboot-controller caches to sync: no matches for kind "SlimeBoot" in version "config.netease.com/v1alpha1"","stacktrace":"github.com/operator-framework/operator-sdk/internal/cmd/helm-operator/run.NewCmd.func1\n\t/workspace/internal/cmd/helm-operator/run/cmd.go:74\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:960\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:897\nmain.main\n\t/workspace/cmd/helm-operator/main.go:40\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225"}

nonumber1989 avatar Oct 10 '22 09:10 nonumber1989

It seems like lack of crd kind "SlimeBoot" in version "config.netease.com/v1alpha1". But I try again, cannot get the same result. The proper result will be like this 2022-10-11 12-18-46 的屏幕截图

Anyway, you can also try apply crd manually, here lazyload related crd

cywang1905 avatar Oct 11 '22 04:10 cywang1905