Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StaticService error on master #34

Closed
grrtrr opened this issue Jul 25, 2023 · 3 comments
Closed

StaticService error on master #34

grrtrr opened this issue Jul 25, 2023 · 3 comments
Labels
priority: high type: bug Something isn't working

Comments

@grrtrr
Copy link

grrtrr commented Jul 25, 2023

This happens on 905c993, maybe I should have used a release instead of master.

The controller frequently fails/restarts with this error message:

2023-07-25T23:20:11.098595965Z  ERROR   ctrl-runtime.controller-runtime.source  if kind is a CRD, it should be installed before calling Start   {"kind": "StaticService.stunner.l7mp.io", "error": "no matches for kind \"StaticService\" in version \"stunner.l7mp.io/v1alpha1\""}
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1.1
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/source/source.go:143
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/wait/wait.go:235
k8s.io/apimachinery/pkg/util/wait.WaitForWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/wait/wait.go:662
k8s.io/apimachinery/pkg/util/wait.poll
        /go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/wait/wait.go:596
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.26.0/pkg/util/wait/wait.go:547
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/source/source.go:136
@rg0now rg0now added priority: high type: bug Something isn't working labels Jul 26, 2023
@rg0now
Copy link
Member

rg0now commented Jul 26, 2023

Thanks for the report. We have recently introduced a new StaticService resource in master and it seems that your install somehow misses the corresponding CRD. This can either be a bug in our Helm charts or a half-upgraded cluster.

Until we find out, a quick workaround is to install the CRDs manually:

kubectl apply -f https://raw.githubusercontent.com/l7mp/stunner-helm/main/helm/stunner-gateway-operator/crds/stunner-crd.yaml

@grrtrr
Copy link
Author

grrtrr commented Jul 26, 2023

Thank you, bug can be closed as "my fault". I generated the Docker images for stunner and stunner-gateway-operator from github sources,
but had downloaded the Helm chart from the Helm repo, not from github.

@grrtrr grrtrr closed this as completed Jul 26, 2023
@rg0now
Copy link
Member

rg0now commented Jul 26, 2023

Happy this solved itself. Remember, you can always use the bleeding edge by tracking the dev Helm release channel.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants