-
Notifications
You must be signed in to change notification settings - Fork 117
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
[Feature Request] Allow adding annotations to ServiceAccounts #425
Comments
I agree, adding more metadata to service accounts could be valuable. There's some work currently ongoing around how we manage service accounts, and some discussion about the right ways to do it. It doesn't necessarily overlap or preclude this from happening, but something to be aware of if this is implemented. See discussion here for more details - #417 |
Thanks for the feedback, and after a quick scan I think it makes sense to base this feature on the changes made in #417 . We will monitor that issue and base our PR on these changes. |
We saw the solution in #418 for #417 and would like to begin our implementation draft. However, we have some questions to start, as this is our first go at a kubernetes controller:
|
|
Hi @sudermanjr , |
Is your feature request related to a problem? Please describe.
We are using rbac-manager to set up our ServiceAccounts for our GitLab runners, and we need to grant these ServiceAccounts permissions using AWS IAM roles. We do this by adding an annotation to the ServiceAccount, indicating the IAM role to assume. Right now, there is no native way to add annotations to the ServiceAccounts created by rbac-manager.
Describe the solution you'd like
We would love to see the possibility to add metadata like labels and annotations to the created ServiceAccounts to help us maintaining our access controls properly.
Describe alternatives you've considered
Currently, we are working around this by annotating the created ServiceAccounts in the rollout pipeline with
kubectl annotate
, exploiting the fact that currently the equality check of ServiceAccounts is not altered by additional annotations.Additional context
We can try to provide a PR for this feature if you think this makes sense.
The text was updated successfully, but these errors were encountered: