maschmid opened a new issue #2950: URL: https://github.com/apache/camel-k/issues/2950
With camelk 1.7, I can use the https://github.com/apache/camel-k/tree/main/examples/knative example with a KafkaChannel channels, instead of InMemoryChannel. The same example fails on 1.8.x with KafkaChannels, due to ``` error looking up channel words: kafkachannels.messaging.knative.dev "words" is forbidden: User "system:serviceaccount:openshift-operators:camel-k-operator" cannot get resource "kafkachannels" in API group "messaging.knative.dev" in the namespace \"myproject\" ``` ( compare https://github.com/apache/camel-k/blob/release-1.7.x/helm/camel-k/templates/operator-role.yaml#L219-L224 vs https://github.com/apache/camel-k/blob/main/helm/camel-k/templates/operator-role.yaml#L244-L248 it is clear the now the rules are more explicit, which also means it lacks permission to access non-default channel kinds. (full error from camel-k-operator logs) ``` {"level":"error","ts":1643215313.6744456,"logger":"controller.integration-controller","msg":"Reconciler error","reconciler group":"camel.apache.org","reconciler kind":"Integration","name":"printer","namespace":"myproject","error":"error during trait customization: error looking up channel words: kafkachannels.messaging.knative.dev \"words\" is forbidden: User \"system:serviceaccount:openshift-operators:camel-k-operator\" cannot get resource \"kafkachannels\" in API group \"messaging.knative.dev\" in the namespace \"myproject\"","errorVerbose":"kafkachannels.messaging.knative.dev \"words\" is forbidden: User \"system:serviceaccount:openshift-operators:camel-k-operator\" cannot get resource \"kafkachannels\" in API group \"messaging.knative.dev\" in the namespace \"myproject\"\nerror looking up channel words\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).withServiceDo\n\tgithub.com/apache/camel-k/pkg/trait/knative.go:581\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).ifS erviceMissingDo\n\tgithub.com/apache/camel-k/pkg/trait/knative.go:552\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).configureChannels\n\tgithub.com/apache/camel-k/pkg/trait/knative.go:253\ngithub.com/apache/camel-k/pkg/trait.(*knativeTrait).Apply\n\tgithub.com/apache/camel-k/pkg/trait/knative.go:227\ngithub.com/apache/camel-k/pkg/trait.(*Catalog).apply\n\tgithub.com/apache/camel-k/pkg/trait/trait_catalog.go:113\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:47\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s .io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371\nerror during trait customization\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:48\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\n github.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214"} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
