[prometheus-adapter] Allow specifying service account annotations (#1029)

* Allow specifying service account annotations

Signed-off-by: Chris Sng <chrissng@users.noreply.github.com>

* minor version bump

Signed-off-by: Chris Sng <chrissng@users.noreply.github.com>
This commit is contained in:
Chris Sng
2021-06-08 01:37:54 +02:00
committed by GitHub
parent ceb816a645
commit 50b719af44
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: prometheus-adapter
version: 2.13.0
version: 2.14.0
appVersion: v0.8.4
description: A Helm chart for k8s prometheus adapter
home: https://github.com/DirectXMan12/k8s-prometheus-adapter
@@ -9,4 +9,8 @@ metadata:
heritage: {{ .Release.Service }}
name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
{{- end }}
{{- end -}}
+5
View File
@@ -39,6 +39,11 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
# ServiceAccount annotations.
# Use case: AWS EKS IAM roles for service accounts
# ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
annotations: {}
# Custom DNS configuration to be added to prometheus-adapter pods
dnsConfig: {}
# nameservers: