You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Knative-Operator to configure out Knative-Eventing instance.
We observed that when we tries to enable Rabbitmq to be the event source, the operator fails to apply the manifest rabbitmq-source.yaml due to insufficient RABC permission.
The below events described the error:
18:26:35 KnativeEventing test-cluster 941: Updated "test-cluster" finalizers
18:31:21 KnativeEventing test-cluster 2836: failed to apply (cluster)rolebindings: clusterrolebindings.rbac.authorization.k8s.io "eventing-sources-rabbitmq-controller" is forbidden: user "system:serviceaccount:knative-eventing:knative-operator" (groups=["system:serviceaccounts""system:serviceaccounts:knative-eventing""system:authenticated"]) is attempting to grant RBAC permissions not currently held:
{APIGroups:["rabbitmq.com"], Resources:["bindings"], Verbs:["create""delete""get""list""patch""update""watch"]}
{APIGroups:["rabbitmq.com"], Resources:["bindings/status"], Verbs:["get"]}
{APIGroups:["rabbitmq.com"], Resources:["exchanges"], Verbs:["create""delete""get""list""patch""update""watch"]}
{APIGroups:["rabbitmq.com"], Resources:["exchanges/status"], Verbs:["get"]}
{APIGroups:["rabbitmq.com"], Resources:["queues"], Verbs:["create""delete""get""list""patch""update""watch"]}
{APIGroups:["rabbitmq.com"], Resources:["queues/status"], Verbs:["get"]}
{APIGroups:["rabbitmq.com"], Resources:["rabbitmqclusters"], Verbs:["get""list""watch"]}
Expected behavior
We expect that Rabbitmq can be used as event sources when enabled by setting cr.spec.source.rabbitmq.enabled to true.
To Reproduce
Deploy Knative-Operator v1.6.0 and create the knative-eventing namespace.
Apply the following CustomResource to deploy Knative-Eventing with rabbitmq enabled as source
As the error messages suggested, the error is caused by insufficient access.
To enable 'rabbitmq' as event source, the clusterRole eventing-sources-rabbitmq-controller will be deployed by the operator. However, the apiGroup rabbitmq.com, included in this clusterRole, is not included in the operator serviceAccount, leading to insufficient permission.
The text was updated successfully, but these errors were encountered:
Describe the bug
We are using Knative-Operator to configure out Knative-Eventing instance.
We observed that when we tries to enable Rabbitmq to be the event source, the operator fails to apply the manifest
rabbitmq-source.yaml
due to insufficient RABC permission.The below events described the error:
Expected behavior
We expect that
Rabbitmq
can be used as event sources when enabled by settingcr.spec.source.rabbitmq.enabled
totrue
.To Reproduce
Deploy Knative-Operator v1.6.0 and create the
knative-eventing
namespace.Apply the following CustomResource to deploy Knative-Eventing with rabbitmq enabled as source
Execute
kubectl get events -A
and observe the error message mentioned above.Knative release version
Additional Context
Suspected Root Cause
As the error messages suggested, the error is caused by insufficient access.
To enable 'rabbitmq' as event source, the clusterRole
eventing-sources-rabbitmq-controller
will be deployed by the operator. However, the apiGrouprabbitmq.com
, included in this clusterRole, is not included in the operator serviceAccount, leading to insufficient permission.The text was updated successfully, but these errors were encountered: