RockteMQ-AI commented on PR #118:
URL:
https://github.com/apache/rocketmq-operator/pull/118#issuecomment-5547874870
**Issue Evaluation**
Category: `bug` | Status: **Confirmed**
The operator's RBAC configuration is missing the `events` resource
permission. Without it, the operator cannot create or update Kubernetes Events,
which are used for observability and debugging.
**Root Cause:** The ClusterRole definition does not include `events` in its
`resources` list. When the operator attempts to record events (e.g., during
reconciliation), the Kubernetes API server rejects the request with a forbidden
error.
**Fix:** Add `events` to the ClusterRole's resources list:
```yaml
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "get", "list", "watch", "update", "patch"]
```
**Note:** This issue has been open since Dec 2022 and marked stale. Related
to #119. The fix is straightforward.
---
*Automated evaluation by github-manager*
--
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]