Skip to content

Commit

Permalink
Add support for string extraObjects (#1903)
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoResonance authored Jan 4, 2025
1 parent f4d5969 commit f479f4d
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/victoria-logs-single/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-agent/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-alert/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-auth/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-cluster/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-operator/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/victoria-metrics-single/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ end }}

0 comments on commit f479f4d

Please sign in to comment.