[backups] Fix malformed glob and split in template (#1708)

## What this PR does

A malformed glob ("*" instead of "*.yaml") captured the .gitattributes
file and sent it to the templating engine. Using `split` instead of
`splitList` on a string returned a map instead of a list, so templating
broke on `mustLast`. This patch corrects the errors.

### Release note

```release-note
[backups] Fix template-breaking errors in the backup-controller Helm
chart.
```
This commit is contained in:
Timofei Larkin 2025-12-10 13:37:13 +04:00 committed by GitHub
commit 4f5ae287f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{{- range $path, $_ := .Files.Glob "definitions/*" }}
{{- range $path, $_ := .Files.Glob "definitions/*.yaml" }}
---
{{ $.Files.Get $path }}
{{- end }}

View file

@ -37,7 +37,7 @@ spec:
{{- end }}
ports:
- name: metrics
containerPort: {{ split ":" .Values.backupController.metrics.bindAddress | mustLast }}
containerPort: {{ splitList ":" .Values.backupController.metrics.bindAddress | mustLast }}
- name: health
containerPort: 8081
readinessProbe: