Skip to content

Commit

Permalink
Add ServiceAccount annotations to operator
Browse files Browse the repository at this point in the history
  • Loading branch information
endzyme committed Nov 3, 2022
1 parent c0bcc55 commit f152054
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions helm/solr-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ annotations:
url: https://github.com/apache/solr-operator/issues/479
- name: Github PR
url: https://github.com/apache/solr-operator/pull/481
- kind: added
description: ServiceAccount annotations
links:
- name: GitHub PR 480
url: https://github.com/apache/solr-operator/pull/480
artifacthub.io/images: |
- name: solr-operator
image: apache/solr-operator:v0.7.0-prerelease
Expand Down
6 changes: 5 additions & 1 deletion helm/solr-operator/templates/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
{{- range $key, $value := .Values.serviceAccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
name: {{ include "solr-operator.serviceAccountName" . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions helm/solr-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

## Annotations to be added to ServiceAccount
annotations: {}

# Various Pod Options to customize the runtime of the operator
resources: {}
envVars: []
Expand Down

0 comments on commit f152054

Please sign in to comment.