[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:
commit
4f5ae287f5
2 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{{- range $path, $_ := .Files.Glob "definitions/*" }}
|
||||
{{- range $path, $_ := .Files.Glob "definitions/*.yaml" }}
|
||||
---
|
||||
{{ $.Files.Get $path }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue