-
Notifications
You must be signed in to change notification settings - Fork 440
Avoid reordering Rules #253
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
Conversation
fd48296
to
6560aef
Compare
dbd8dd4
to
43d398f
Compare
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.
You need to implement your own sorter to sort Rules by Groups
, Resources
, Verbs
, URLs
.
Ref: https://golang.org/pkg/sort/
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.
A few nits. Other pieces look good.
06ff922
to
a946a88
Compare
/retest |
@haiyanmeng: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
0ba52e1
to
73a21ed
Compare
Currently, the `role.yaml` generated by multiple runs of controller-gen may have different Rule orders. This commit makes the Rule order in `role.yaml` stable. Signed-off-by: Haiyan Meng <[email protected]>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: haiyanmeng The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently, the
role.yaml
generated by multiple runs of controller-genmay have different Rule orders. This commit makes the Rule order in
role.yaml
stable.Fix: #251