Skip to content
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

feat: allow service account annotations #1907

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading