-
Notifications
You must be signed in to change notification settings - Fork 324
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
Sync catalog acl refactor #1077
Sync catalog acl refactor #1077
Conversation
61e651f
to
5ba54b2
Compare
0550da1
to
d68a844
Compare
5ba54b2
to
41b5fe3
Compare
6fdd05a
to
b082126
Compare
e136832
to
58d6bf4
Compare
b082126
to
a25a183
Compare
- serviceaccounts | ||
verbs: | ||
- get | ||
{{- end }} |
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.
perfect!!
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ template "consul.fullname" . }}-authmethod |
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.
nit: should it be auth-method
?
{{- if .Values.global.acls.manageSystemACLs }} | ||
- apiGroups: [""] | ||
resources: | ||
- serviceaccounts | ||
verbs: | ||
- get | ||
{{- end }} |
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 think we might need this for multiport
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 noticed that those lines were duplicated 😅
but we definitely need it for the multiport workaround..i found out the acceptance tests failed on me way
#-------------------------------------------------------------------- | ||
# global.imagePullSecrets |
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.
Thinking about it, I don't think we need imagePullSecrets for this SA because it's not used by any pod, but maybe worth keeping just in case?
c.flags.BoolVar(&c.flagEnableCatalogSync, "sync-catalog", false, | ||
"Toggle for creating a catalog sync policy.") |
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.
nit: I think it'd be nice for flag name and var name to match for readablity.
Changes proposed in this PR:
How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: