Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit b163a69

Browse files
gerrywastakenFlydiverny
authored andcommitted
fix: default service account annotation value (#252)
* Stop adding annotations when there are none If podAnnotations is empty then we should not try to add the annotations at all as they will be empty. * Fix default for ServiceAccount annotation Before this change, if you tried providing a ServiceAccount annotation you will get the following error: `coalesce.go:199: warning: destination for annotations is a table. Ignoring non-table value <nil>` This addresses this by replacing the default for annotations with an empty object.
1 parent 2000864 commit b163a69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/kubernetes-external-secrets/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ spec:
2121
{{- if .Values.podLabels }}
2222
{{- toYaml .Values.podLabels | nindent 8 }}
2323
{{- end }}
24-
annotations:
2524
{{- if .Values.podAnnotations }}
25+
annotations:
2626
{{- toYaml .Values.podAnnotations | nindent 8 }}
2727
{{- end }}
2828
spec:

charts/kubernetes-external-secrets/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ serviceAccount:
3333
# Specifies whether a service account should be created
3434
create: true
3535
# Specifies annotations for this service account
36-
annotations:
36+
annotations: {}
3737
# The name of the service account to use.
3838
# If not set and create is true, a name is generated using the fullname template
3939
name:

0 commit comments

Comments
 (0)