Skip to content

Commit

Permalink
Merge pull request #314 from rwilliams-exs/add_service_role_annotations
Browse files Browse the repository at this point in the history
Add service role annotations
  • Loading branch information
zanieb authored Nov 17, 2021
2 parents 44000da + 5c66ebe commit e884510
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions changes/pr314.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# An example changelog entry
#
# 1. Choose one (or more if a PR encompasses multiple changes) of the following headers:
# - feature
# - enhancement
# - fix
# - deprecation
# - breaking (for breaking changes)
# - migration (for database migrations)
#
# 2. Fill in one (or more) bullet points under the heading, describing the change.
# Markdown syntax may be used.
#
# 3. If you would like to be credited as helping with this release, add a
# contributor section with your name and github username.
#
# Here's an example of a PR that adds an enhancement

enhancement:
- "Helm: Allow annotations to be provided for service accounts- [#314](https://github.com/PrefectHQ/server/pull/314)"

contributor:
- "[Rob Williams](https://github.com/rwilliams-exs)"
2 changes: 2 additions & 0 deletions helm/prefect-server/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ metadata:
name: {{ include "prefect-server.serviceAccountName" . }}
labels:
{{- include "prefect-server.commonLabels" . | nindent 4 }}
annotations:
{{- merge .Values.serviceAccount.annotations .Values.annotations | toYaml | nindent 4 }}
{{- end -}}
2 changes: 2 additions & 0 deletions helm/prefect-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ serviceAccount:
# associated with the prefect-server infrastructure
create: true

annotations: {}

# name sets the name of the service account to use
# If not set and create is true, a name is generated using the
# prefect-server.nameField template
Expand Down

0 comments on commit e884510

Please sign in to comment.