Skip to content

Commit

Permalink
Merge pull request #125 from Aransh/master
Browse files Browse the repository at this point in the history
Allow setting automountServiceAccountToken
  • Loading branch information
andreasthuen authored Sep 30, 2024
2 parents c4d463b + 86a5fd3 commit 488f708
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/akv2k8s/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.7.0
description: A Helm chart that deploys akv2k8s Controller and Env-Injector to Kubernetes
name: akv2k8s
version: 2.7.0
version: 2.7.1

maintainers:
- name: Jon Arild Tørresdal
Expand Down
1 change: 1 addition & 0 deletions stable/akv2k8s/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
{{- if .Values.controller.priorityClassName }}
priorityClassName: {{ .Values.controller.priorityClassName | indent 4}}
{{- end }}
automountServiceAccountToken: {{ .Values.controller.automountServiceAccountToken }}
{{- if .Values.controller.podSecurityContext }}
securityContext:
{{ toYaml .Values.controller.podSecurityContext | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions stable/akv2k8s/templates/env-injector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
{{ toYaml .Values.env_injector.podAnnotations | nindent 8 }}
{{- end }}
spec:
automountServiceAccountToken: {{ .Values.env_injector.automountServiceAccountToken }}
{{- if .Values.env_injector.podSecurityContext }}
securityContext:
{{ toYaml .Values.env_injector.podSecurityContext | nindent 8 }}
Expand Down
7 changes: 7 additions & 0 deletions stable/akv2k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ controller:
# -- (bool) Override global.rbac.create
create: # true/false

# -- If set to `false`, must manually mount Kubernetes API credentials
automountServiceAccountToken: true

# -- Security context set on a pod level
podSecurityContext:

Expand Down Expand Up @@ -233,6 +236,10 @@ env_injector:
ca:
# -- Custom CA certificate, required when `env_injector.certificate.custom.enabled=true`
crt:

# -- If set to `false`, must manually mount Kubernetes API credentials
automountServiceAccountToken: true

# -- Security context set on a pod level
podSecurityContext:

Expand Down

0 comments on commit 488f708

Please sign in to comment.