Skip to content

Commit

Permalink
Merge pull request #83 from lukipro/feature/add-service-account-annot…
Browse files Browse the repository at this point in the history
…ations

Allow for setting custom annotations of ServiceAccounts
  • Loading branch information
181192 authored Dec 8, 2022
2 parents 2637329 + 8624e49 commit f00ed36
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stable/akv2k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ kubectl apply -f https://raw.githubusercontent.com/SparebankenVest/azure-key-vau
| controller.keyVaultAuth | string | `nil` | Override global - azureCloudConfig (aks credentials), environment (custom) |
| controller.serviceAccount.create | bool | `true` | Create service account for controller |
| controller.serviceAccount.name | string | `nil` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| controller.serviceAccount.annotations | object | `{}` | Additional service account annotations |
| controller.podSecurityContext | string | `nil` | Security context set on a pod level |
| controller.priorityClassName | string | `""` | Controller PriorityClass name |
| controller.securityContext.allowPrivilegeEscalation | bool | `true` | Must be `true` if using aks identity - can be set to false if userDefinedMSI is enabled |
Expand Down Expand Up @@ -138,6 +139,7 @@ kubectl apply -f https://raw.githubusercontent.com/SparebankenVest/azure-key-vau
| env_injector.metrics.serviceMonitor.additionalLabels | object | `nil` | Override global.metrics.serviceMonitor.additionalLabels |
| env_injector.serviceAccount.create | bool | `true` | Create service account for env-injector |
| env_injector.serviceAccount.name | string | `nil` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| env_injector.serviceAccount.annotations | object | `{}` | Additional service account annotations |
| env_injector.env | object | `{}` | Additional env vars to send to env-injector pods |
| env_injector.envFromSecret | list | `[]` | Reference to secret containing variables to be used with all enabled pods, eg. for akv credentials |
| env_injector.labels | object | `{}` | Additional labels |
Expand Down
4 changes: 4 additions & 0 deletions stable/akv2k8s/templates/controller-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ metadata:
name: {{ template "controller.serviceAccountName" . }}
labels:
{{- include "akv2k8s.labels" . | nindent 4 }}
{{- if .Values.controller.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.controller.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions stable/akv2k8s/templates/env-injector-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ metadata:
name: {{ template "envinjector.serviceAccountName" . }}
labels:
{{- include "akv2k8s.labels" . | nindent 4 }}
{{- if .Values.env_injector.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.env_injector.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions stable/akv2k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ controller:
# -- The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
# -- Controller service account annotations
annotations: {}

# -- Security context set on a pod level
podSecurityContext:
Expand Down Expand Up @@ -268,6 +270,8 @@ env_injector:
# -- The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
# -- env-injector service account annotations
annotations: {}

# -- Additional env vars to send to env-injector pods
env: {}
Expand Down

0 comments on commit f00ed36

Please sign in to comment.