Open e-volusian opened 5 months ago
Well, it's not reproducible for me.
Instead of make install
, you may want to use Yaml files in https://github.com/mercari/tortoise/tree/main/manifests directly.
I am in the same situation. Environment mac m1 : v14.4.1 docker-desktop : v4.30.0 kubernetes: v1.29.2
Verification command: make install make install
test -s /Users/kubernetes/tortoise/bin/kustomize || { curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s -- 3.8.7 /Users/kubernetes/tortoise/bin; }
/Users/kubernetes/tortoise/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1047f0fb0]
@toasahi -- I'm not sure if your comment means that you did or did not get it working. Regardless, the fix is to change:
CONTROLLER_TOOLS_VERSION ?= v0.13.0
to
CONTROLLER_TOOLS_VERSION ?= v0.15.0
on line 130 of Makefile. After I did this, tortoise built, installed, and is working and currently GatheringData.
Thank you, @e-volusian "CONTROLLER_TOOLS_VERSION ? = v0.15.0" but the error still occurs.
test -s /Users/kubernetes/tortoise/bin/kustomize || { curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s -- 3.8.7 /Users/kubernetes/tortoise/bin; }
/Users/kubernetes/tortoise/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1047f0fb0]
According to my notes, these are the three things I had to do to make the install work on a brand new kind cluster:
Not sure if those will help you, but....that's all I got. 🤷
Instead of make install, you may want to use Yaml files in https://github.com/mercari/tortoise/tree/main/manifests directly
Again, this workaround should work for everyone. Applying yaml files in https://github.com/mercari/tortoise/tree/main/manifests equals make install
and make deploy
. Try out this way if you still get into trouble.
Instead of make install, you may want to use Yaml files in https://github.com/mercari/tortoise/tree/main/manifests directly
Again, this workaround should work for everyone. Applying yaml files in https://github.com/mercari/tortoise/tree/main/manifests equals
make install
andmake deploy
. Try out this way if you still get into trouble.
Thank you, @e-volusian @sanposhiho I was able to solve the problem!
The procedure is left here.
Error from server (NotFound): error when creating "default/apps_v1_deployment_tortoise-controller-manager.yaml": namespaces "tortoise-system" not found
Error from server (NotFound): error when creating "default/cert-manager.io_v1_certificate_tortoise-serving-cert.yaml": namespaces "tortoise-system" not found
Error from server (NotFound): error when creating "default/cert-manager.io_v1_issuer_tortoise-selfsigned-issuer.yaml": namespaces "tortoise-system" not found
Error from server (NotFound): error when creating "default/rbac.authorization.k8s.io_v1_role_tortoise-leader-election-role.yaml": namespaces "tortoise-system" not found
Error from server (NotFound): error when creating "default/rbac.authorization.k8s.io_v1_rolebinding_tortoise-leader-election-rolebinding.yaml": namespaces "tortoise-system" not found
Error from server (NotFound): error when creating "default/v1_configmap_tortoise-manager-config.yaml": namespaces "tortoise-system" not found
This procedure has been used to deploy tortoise.
Main is on controller-tools version 0.13.0. On that version, I get error from
make install
:Fixed in v0.15.0