Browse Source

feat(helm): annotations for service account (#8429)

pull/8433/head
Peter Dodd 2 days ago
committed by GitHub
parent
commit
f4af1cc0ba
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      k8s/charts/seaweedfs/templates/shared/service-account.yaml
  2. 1
      k8s/charts/seaweedfs/values.yaml

4
k8s/charts/seaweedfs/templates/shared/service-account.yaml

@ -3,6 +3,10 @@ kind: ServiceAccount
metadata: metadata:
name: {{ include "seaweedfs.serviceAccountName" . }} name: {{ include "seaweedfs.serviceAccountName" . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- with .Values.global.serviceAccountAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

1
k8s/charts/seaweedfs/values.yaml

@ -20,6 +20,7 @@ global:
filerRead: false filerRead: false
# we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings # we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings
serviceAccountName: "seaweedfs" serviceAccountName: "seaweedfs"
serviceAccountAnnotations: {}
automountServiceAccountToken: true automountServiceAccountToken: true
certificates: certificates:
duration: 87600h duration: 87600h

Loading…
Cancel
Save