Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
template syntax fixes

Co-authored-by: Zakhar Bessarab <[email protected]>
  • Loading branch information
AndrewChubatiuk and zekker6 authored Oct 3, 2024
1 parent 1d7d393 commit a456d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/victoria-metrics-cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ app: {{ $Values.vmauth.name | default "vmauth" }}
{{- $storageNodes := default list }}
{{- $fqdn := include "vm.fqdn" . }}
{{- if $Values.autoDiscovery }}
{{- if (include "vm.enterprise.disabled" . ) "true" }}
{{- if eq (include "vm.enterprise.disabled" . ) "true" }}
{{- fail "SRV autodiscovery is only supported in enterprise. Either define license or set `autoDiscovery` to `false`" }}
{{- end }}
{{- $storageNode := printf "srv+_vminsert._tcp.%s" $fqdn }}
Expand Down Expand Up @@ -147,7 +147,7 @@ app: {{ $Values.vmauth.name | default "vmauth" }}
{{- $storageNodes := default list }}
{{- $fqdn := include "vm.fqdn" . }}
{{- if $Values.autoDiscovery }}
{{- if (include "vm.enterprise.disabled" . ) "true" }}
{{- if eq (include "vm.enterprise.disabled" . ) "true" }}
{{- fail "SRV autodiscovery is only supported in enterprise. Either define license or set `autoDiscovery` to `false`" }}
{{- end }}
{{- $storageNode := printf "srv+_vmselect._tcp.%s" $fqdn }}
Expand All @@ -168,7 +168,7 @@ app: {{ $Values.vmauth.name | default "vmauth" }}
{{- $_ := set . "appKey" "vmselect" }}
{{- $fqdn := include "vm.fqdn" . }}
{{- if $Values.autoDiscovery }}
{{- if (include "vm.enterprise.disabled" . ) "true" }}
{{- if eq (include "vm.enterprise.disabled" . ) "true" }}
{{- fail "SRV autodiscovery is only supported in enterprise. Either define license or set `autoDiscovery` to `false`" }}
{{- end }}
{{- $selectNode := printf "srv+_http._tcp.%s" $fqdn }}
Expand Down

0 comments on commit a456d98

Please sign in to comment.