Skip to content

Commit

Permalink
Add ability to specify annotations for the SDK service account (#2317)
Browse files Browse the repository at this point in the history
The gameserver SDK account commonly wants annotations, e.g. for cloud
file store permissions for logs. This adds the ability to map
gameserver namespaces to maps of annotations to be added to the SDK
account for the specified namespace.

Co-authored-by: Robert Bailey <robertbailey@google.com>
  • Loading branch information
highlyunavailable and roberthbailey authored Oct 19, 2021
1 parent 3fa5c57 commit 7f7a434
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/helm/agones/templates/serviceaccounts/sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ metadata:
chart: {{ template "agones.chart" $ }}
release: {{ $.Release.Name }}
heritage: {{ $.Release.Service }}
{{- if hasKey $.Values.agones.serviceaccount.sdk.annotations . }}
annotations:
{{- get $.Values.agones.serviceaccount.sdk.annotations . | toYaml | nindent 4 }}
{{- end }}
---
{{- end }}
{{- if .Values.agones.rbacEnabled }}
Expand Down
1 change: 1 addition & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ agones:
annotations: {}
sdk:
name: agones-sdk
annotations: {}
createPriorityClass: true
priorityClassName: agones-system
controller:
Expand Down
1 change: 1 addition & 0 deletions site/content/en/docs/Installation/Install Agones/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ The following tables lists the configurable parameters of the Agones chart and t

| Parameter | Description | Default |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------- |
| `agones.serviceaccount.sdk.annotations` | A map of namespaces to maps of [Annotations][annotations] added to the Agones SDK service account for the specified namespaces | `{}` |
| | | |
{{% /feature %}}

Expand Down

0 comments on commit 7f7a434

Please sign in to comment.