Skip to content

Commit

Permalink
added extra objects to gateway and anomaly charts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Jan 4, 2025
1 parent f479f4d commit 055185e
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 40 deletions.
6 changes: 1 addition & 5 deletions charts/victoria-logs-single/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
6 changes: 1 addition & 5 deletions charts/victoria-metrics-agent/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
6 changes: 1 addition & 5 deletions charts/victoria-metrics-alert/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
11 changes: 11 additions & 0 deletions charts/victoria-metrics-anomaly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,17 @@ tenant_id: ""
</pre>
</td>
<td><p>Additional hostPath mounts</p>
</td>
</tr>
<tr>
<td>extraObjects</td>
<td>list</td>
<td><pre class="helm-vars-default-value language-yaml" lang="plaintext">
<code class="language-yaml">[]
</code>
</pre>
</td>
<td><p>Add extra specs dynamically to this chart</p>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions charts/victoria-metrics-anomaly/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
3 changes: 3 additions & 0 deletions charts/victoria-metrics-anomaly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,6 @@ license:
name: ""
# -- Key in secret with license key
key: ""

# -- Add extra specs dynamically to this chart
extraObjects: []
6 changes: 1 addition & 5 deletions charts/victoria-metrics-auth/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
6 changes: 1 addition & 5 deletions charts/victoria-metrics-cluster/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
11 changes: 11 additions & 0 deletions charts/victoria-metrics-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,17 @@ loggerFormat: json
</pre>
</td>
<td><p>Labels to be added to Deployment</p>
</td>
</tr>
<tr>
<td>extraObjects</td>
<td>list</td>
<td><pre class="helm-vars-default-value language-yaml" lang="plaintext">
<code class="language-yaml">[]
</code>
</pre>
</td>
<td><p>Add extra specs dynamically to this chart</p>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions charts/victoria-metrics-gateway/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
3 changes: 3 additions & 0 deletions charts/victoria-metrics-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,6 @@ license:
name: ""
# -- Key in secret with license key
key: ""

# -- Add extra specs dynamically to this chart
extraObjects: []
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}
6 changes: 1 addition & 5 deletions charts/victoria-metrics-single/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ range .Values.extraObjects }}
---
{{- if typeIs "string" . }}
{{ tpl . $ }}
{{- else }}
{{ tpl (toYaml .) $ }}
{{- end }}
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
{{ end }}

0 comments on commit 055185e

Please sign in to comment.