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

Cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion camel.apache.org/v1alpha1 Kind IntegrationKit #764

Closed
lburgazzoli opened this issue Jun 22, 2019 · 0 comments

Comments

@lburgazzoli
Copy link
Contributor

When running an integration juts after camel-k installation on minishift, the following error if reported a few time, then the normal process starts and the error is not reported anymore:

{"level":"info","ts":1561204279.99775,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"info","ts":1561204280.0009656,"logger":"camel-k.trait","msg":"Apply trait: builder"}
{"level":"info","ts":1561204280.0009966,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
{"level":"error","ts":1561204280.004709,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"integrationkit-controller","request":"myproject/kit-bk71cbu3rvq309f4o150","error":"cannot create build: builds.camel.apache.org \"kit-bk71cbu3rvq309f4o150\" is forbidden: cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion camel.apache.org/v1alpha1 Kind IntegrationKit: no matches for kind \"IntegrationKit\" in version \"camel.apache.org/v1alpha1\"","errorVerbose":"builds.camel.apache.org \"kit-bk71cbu3rvq309f4o150\" is forbidden: cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion camel.apache.org/v1alpha1 Kind IntegrationKit: no matches for kind \"IntegrationKit\" in version \"camel.apache.org/v1alpha1\"\ncannot create build\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).handleBuildSubmitted\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/pkg/controller/integrationkit/build.go:119\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).Handle\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/pkg/controller/integrationkit/build.go:58\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*ReconcileIntegrationKit).Reconcile\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/pkg/controller/integrationkit/integrationkit_controller.go:154\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88\nruntime.goexit\n\t/opt/data/sfw/lang/go/1.12.5/src/runtime/asm_amd64.s:1337","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/lburgazz/work/apache/dev/camel-k-go/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"level":"info","ts":1561204281.2852147,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"myproject","request-name":"kit-bk71cbu3rvq309f4o150"}
{"level":"info","ts":1561204281.2852836,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build-submitted","request-namespace":"myproject","request-name":"kit-bk71cbu3rvq309f4o150","api-version":"camel.apache.org/v1alpha1","kind":"IntegrationKit","ns":"myproject","name":"kit-bk71cbu3rvq309f4o150"}
@lburgazzoli lburgazzoli added kind/bug Something isn't working and removed kind/bug Something isn't working labels Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant