Skip to content

Commit c88150b

Browse files
authored
fix(chart): non-string types on svcaccount annotations (#5067)
* added toYaml to convert non-string types to yaml/string types Signed-off-by: hjoshi123 <[email protected]> * fix: added PR url and number annotation --------- Signed-off-by: hjoshi123 <[email protected]>
1 parent cdbffbb commit c88150b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

charts/external-dns/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
## [UNRELEASED]
2020

21+
### Fixed
22+
23+
- Fixed handling of non-string types in `serviceAccount.metadata.annotations` field. ([#5067](https://github.com/kubernetes-sigs/external-dns/pull/5067)) _@hjoshi123_
24+
2125
## [v1.15.1] - 2023-09-10
2226

2327
### Added

charts/external-dns/ci/ci-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ serviceAccount:
4040
notTemplated/version: "v1.2.3"
4141
justValueTemplated/version: "{{ .Chart.Version }}"
4242
"{{ .Chart.Name }}/chart": "{{ .Chart.Version }}"
43+
booleanVersion: "true"
44+
number: "1"

charts/external-dns/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
{{- with .Values.serviceAccount.annotations }}
1313
annotations:
1414
{{- range $k, $v := . }}
15-
{{- printf "%s: %s" (tpl $k $) (tpl $v $) | nindent 4 }}
15+
{{- printf "%s: %s" (toYaml (tpl $k $)) (toYaml (tpl $v $)) | nindent 4 }}
1616
{{- end }}
1717
{{- end }}
1818
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}

0 commit comments

Comments
 (0)