-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add reminders to avoid RBAC synchronization bug #576
Conversation
21c516c
to
5a0011c
Compare
@@ -80,6 +80,7 @@ type RayClusterReconciler struct { | |||
// +kubebuilder:rbac:groups="rbac.authorization.k8s.io",resources=roles,verbs=get;list;watch;create;delete;update | |||
// +kubebuilder:rbac:groups="rbac.authorization.k8s.io",resources=rolebindings,verbs=get;list;watch;create;delete | |||
|
|||
// [WARNING]: There MUST be a newline after kubebuilder markers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
em. is not line 82 a new line? I may forgot the tricks here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new line is added by #577. Originally, it does not have a newline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the new line was added in #577 and the bug should be fixed? This PR is to add some comment to reminder developer? But the title is the bug fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes needed?
In #164, @Jeffwan mentions that RBAC files cannot be updated automatically with the command
make manifests
. The root cause is the lack of a newline after kubebuilder markers. This issue is same as kubernetes-sigs/controller-tools#551.In addition, the permissions of
config/rbac/role.yaml
is the union of kubebuilder markers inraycluster_controller.go
,rayjob_controller.go
, andrayservice_controller.go
.Related issue number
closes #164
Checks
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;delete
make manifests
config/role.yaml
role.yaml
will be updated.