Skip to content

Commit

Permalink
fix(chart): non-string types on svcaccount annotations (#5067)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
hjoshi123 authored Feb 7, 2025
1 parent cdbffbb commit c88150b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/external-dns/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Fixed

- Fixed handling of non-string types in `serviceAccount.metadata.annotations` field. ([#5067](https://github.com/kubernetes-sigs/external-dns/pull/5067)) _@hjoshi123_

## [v1.15.1] - 2023-09-10

### Added
Expand Down
2 changes: 2 additions & 0 deletions charts/external-dns/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ serviceAccount:
notTemplated/version: "v1.2.3"
justValueTemplated/version: "{{ .Chart.Version }}"
"{{ .Chart.Name }}/chart": "{{ .Chart.Version }}"
booleanVersion: "true"
number: "1"
2 changes: 1 addition & 1 deletion charts/external-dns/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- range $k, $v := . }}
{{- printf "%s: %s" (tpl $k $) (tpl $v $) | nindent 4 }}
{{- printf "%s: %s" (toYaml (tpl $k $)) (toYaml (tpl $v $)) | nindent 4 }}
{{- end }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
Expand Down

0 comments on commit c88150b

Please sign in to comment.