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

Add labels to env-injector service account #90

Merged
merged 1 commit into from
Dec 29, 2022
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 stable/akv2k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ kubectl apply -f https://raw.githubusercontent.com/SparebankenVest/azure-key-vau
| 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 | `{}` | env-injector service account annotations |
| env_injector.serviceAccount.labels | object | `{}` | env-injector service account labels |
| 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
3 changes: 3 additions & 0 deletions stable/akv2k8s/templates/env-injector-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
name: {{ template "envinjector.serviceAccountName" . }}
labels:
{{- include "akv2k8s.labels" . | nindent 4 }}
{{- with .Values.env_injector.serviceAccount.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.env_injector.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.env_injector.serviceAccount.annotations | nindent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions stable/akv2k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ env_injector:
name:
# -- env-injector service account annotations
annotations: {}
# -- env-injector service account labels
labels: {}

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