Skip to content

deploy yaml error  #107

Closed
Closed

Description

@waney316

p1:role.yaml and role_binding.yaml name properties do not match,ClusterRoleBinding namespace should not specify default

---
# role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  creationTimestamp: null
  name: manager-role    # not match
# role_binding.yaml 
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: rocketmq-operator
subjects:
- kind: ServiceAccount
  name: rocketmq-operator
  namespace: default  
roleRef:
  kind: ClusterRole
  name: rocketmq-operator   # not match
  apiGroup: rbac.authorization.k8s.io

p2:manager running error,role.yaml missing some permissions defined

  • get configmap is forbiden
  • get resources not found

image

p3:use lastest code create crd to cluster,api-resources and role.yaml do not match
image
image

Activity

  1. added
    bugSomething isn't working
    on Jul 4, 2022
  2. gobbq commented on Jul 4, 2022

    @gobbq

    @waney316 thanks for your work.

    I don't find that the operator needs the configmap permission, could you confirm it again?

  3. waney316 commented on Jul 4, 2022

    @waney316
    Author

    @waney316 thanks for your work.

    I don't find that the operator needs the configmap permission, could you confirm it again?
    @gobbq
    image

  4. gobbq commented on Jul 4, 2022

    @gobbq

    @waney316 thanks for your work.
    I don't find that the operator needs the configmap permission, could you confirm it again?
    @gobbq
    image

    @waney316 Oh, I see. Thanks.

  5. added a commit that references this issue on Jul 20, 2022
  6. added this to the 0.3.0 milestone on Jul 20, 2022
  7. RockteMQ-AI commented on Aug 11, 2026

    @RockteMQ-AI

    Issue Evaluation

    Category: bug | Status: Confirmed

    This is a valid bug — the role.yaml and role_binding.yaml have mismatched names:

    • role.yaml defines ClusterRole named manager-role
    • role_binding.yaml references ClusterRole named rocketmq-operator

    Additionally, the ClusterRole is missing permissions for configmaps and other resources the operator needs.

    Fix: Align the names and add the missing permissions to the ClusterRole.


    Automated evaluation by github-manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions