Skip to content

Commit

Permalink
common: release 0.0.37
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Jan 6, 2025
1 parent 67c0d1e commit 70fa0d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Next release

- TODO
- quote collection values in arguments

## 0.0.36

Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
type: library
description: Victoria Metrics Common - contains shared templates for all Victoria Metrics helm charts
name: victoria-metrics-common
version: 0.0.36
version: 0.0.37
sources:
- https://github.com/VictoriaMetrics/helm-charts
kubeVersion: ">=1.23.0-0"
Expand Down
6 changes: 3 additions & 3 deletions charts/victoria-metrics-common/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ Net probe port
{{- end -}}

{{- define "vm.arg" -}}
{{- if and (empty .value) (not (kindIs "bool" .value)) }}
{{- if and (empty .value) (kindIs "string" .value) }}
{{- .key -}}
{{- else if and (kindIs "bool" .value) .value -}}
{{- else if eq (toString .value) "true" -}}
-{{ ternary "" "-" (eq (len .key) 1) }}{{ .key }}
{{- else -}}
-{{ ternary "" "-" (eq (len .key) 1) }}{{ .key }}={{ .value }}
-{{ ternary "" "-" (eq (len .key) 1) }}{{ .key }}={{ ternary (toJson .value | squote) .value (has (kindOf .value) (list "map" "slice")) }}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 70fa0d1

Please sign in to comment.