-
Notifications
You must be signed in to change notification settings - Fork 190
feat(plugin-barman-cloud): add additional annotations to service account #703
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
base: main
Are you sure you want to change the base?
feat(plugin-barman-cloud): add additional annotations to service account #703
Conversation
Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
| labels: | ||
| {{- include "plugin-barman-cloud.labels" . | nindent 4 }} | ||
| {{- with .Values.commonAnnotations }} | ||
| {{- if or .Values.serviceAccount.additionalAnnotations .Values.commonAnnotations }} |
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 going with Values.serviceAccount.annotations might be enough?
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.
No because someone might only want to add additionalAnnotations (i.e only to the service account) and not any common annotations to all resources.
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 meant in place of additionalAnnotations, not common :)
| {{- with .Values.commonAnnotations }} | ||
| {{- if or .Values.serviceAccount.additionalAnnotations .Values.commonAnnotations }} | ||
| annotations: | ||
| {{- with .Values.serviceAccount.additionalAnnotations }} |
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 would render the common on first and override with the SA specific ones
|
Hey @itay-grudev do you think you could take a look on your side? |
…tional-annotations-serviceaccount
This PR adds the possibility for a user to add additional annotations to the service account if it's created from the chart.
This is especially useful when using IRSA authentication on AWS kubernetes clusters as the user can add the annotation directly in the chart's values.