Skip to content

Commit

Permalink
feat: allow service account annotations (#1907)
Browse files Browse the repository at this point in the history
Signed-off-by: Maneesh Singh <[email protected]>
  • Loading branch information
mannbiher authored Nov 4, 2024
1 parent 36a9b6e commit 10c4310
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/ratify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Values marked `# DEPRECATED` in the `values.yaml` as well as **DEPRECATED** in t
| resources.requests.memory | Memory request of Ratify Deployment | `512Mi` |
| serviceAccount.create | Create new dedicated Ratify service account | `true` |
| serviceAccount.name | Name of Ratify service account to create | `ratify-admin` |
| serviceAccount.annotations | Annotations to add to the service account | `{}` |
| gatekeeper.version | Determines the Gatekeeper CRD versioning | `3.17.0` |
| gatekeeper.namespace | Namespace Gatekeeper is installed | `gatekeeper-system` |
| instrumentation.metricsEnabled | Initializes the configured metrics provider | `true` |
Expand Down
6 changes: 5 additions & 1 deletion charts/ratify/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ metadata:
{{- if .Values.azureWorkloadIdentity.clientId }}
azure.workload.identity/use: "true"
{{- end }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "ratify.serviceAccountName" . }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/ratify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ resources:
requests:
cpu: 600m
memory: 512Mi

serviceAccount:
create: true
name: ratify-admin
# Annotations to add to the service account
annotations: {}

gatekeeper:
version: "3.17.0"
namespace: # default is gatekeeper-system
Expand Down

0 comments on commit 10c4310

Please sign in to comment.