mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
fix: Fix SA Secret annotation
This commit is contained in:
parent
eed8d60822
commit
0a5fb9d3d4
13 changed files with 43 additions and 43 deletions
|
@ -3,7 +3,7 @@ apiVersion: v2
|
|||
name: common
|
||||
description: Function library for Helm charts
|
||||
type: library
|
||||
version: 1.1.1
|
||||
version: 1.1.2
|
||||
kubeVersion: ">=1.22.0-0"
|
||||
keywords:
|
||||
- common
|
||||
|
|
|
@ -5,19 +5,9 @@ Renders the serviceAccount object required by the chart.
|
|||
{{- if .Values.serviceAccount.create -}}
|
||||
|
||||
{{- /* Create a service account secret */ -}}
|
||||
{{- $_ := set .Values.secrets "sa-token" (dict "enabled" true "type" "kubernetes.io/service-account-token") -}}
|
||||
{{- $serviceAccountName := include "bjw-s.common.lib.chart.names.serviceAccountName" . -}}
|
||||
{{- $_ := set .Values.secrets "sa-token" (dict "enabled" true "annotations" (dict "kubernetes.io/service-account.name" $serviceAccountName) "type" "kubernetes.io/service-account-token") -}}
|
||||
|
||||
{{- include "bjw-s.common.class.serviceAccount" $ | nindent 0 -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
# serviceAccount:
|
||||
# # -- Specifies whether a service account should be created
|
||||
# create: false
|
||||
|
||||
# # -- Annotations to add to the service account
|
||||
# annotations: {}
|
||||
|
||||
# # -- The name of the service account to use.
|
||||
# # If not set and create is true, a name is generated using the fullname template
|
||||
# name: ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue