-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix(argo-rollouts): Align permissions for controller's ClusterRole / Role #2830
Conversation
- update | ||
{{- end }} | ||
{{- end }} | ||
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} |
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.
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.
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} | |
{{- include "argo-rollouts.controller.roleRules" . | nindent 2 }} |
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.
Thank you for reviewing. Fixed in eba2e52 😇
…Role Signed-off-by: yu-croco <yu.croco@gmail.com>
190f326
to
247d989
Compare
7cfcc7f
to
c1cc19c
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.
Almost LGTM. Found a little typo
{{ toYaml . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} |
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.
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} | |
{{- include "argo-rollouts.controller.roleRules" . | nindent 2 }} |
{{/* | ||
Return the rules for controller's Role and ClusterRole | ||
*/}} | ||
{{- define "argo-rollouts.controller.roleRuls" -}} |
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.
{{- define "argo-rollouts.controller.roleRuls" -}} | |
{{- define "argo-rollouts.controller.roleRules" -}} |
- update | ||
{{- end }} | ||
{{- end }} | ||
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} |
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.
{{- include "argo-rollouts.controller.roleRuls" . | nindent 2 }} | |
{{- include "argo-rollouts.controller.roleRules" . | nindent 2 }} |
Signed-off-by: yu-croco <yu.croco@gmail.com>
The permissions for controller's clusterrole and role are supposed to be same, but there is an unintended diff. So I merged the permissions into a single definition for DRY.
Checklist: