Merge "Fix spacing inconsistencies with flags"

This commit is contained in:
Zuul 2021-01-06 20:44:41 +00:00 committed by Gerrit Code Review
commit 96e002c64e
3 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v2.12.0
description: OpenStack-Helm Prometheus
name: prometheus
version: 0.1.4
version: 0.1.5
home: https://prometheus.io/
sources:
- https://github.com/prometheus/prometheus

View File

@ -36,11 +36,11 @@ limitations under the License.
{{- $flag := $flag | replace "_" "-" }}
{{- if eq $flag "web.enable-admin-api" "web.enable-lifecycle" "storage.tsdb.wal-compression" -}}
{{- if $value }}
{{- printf "--%s " $flag -}}
{{- printf " --%s " $flag -}}
{{- end -}}
{{- else -}}
{{- $value := $value | toString }}
{{- printf "--%s=%s " $flag $value }}
{{- printf " --%s=%s " $flag $value }}
{{- end -}}
{{- end -}}
{{- end -}}

View File

@ -544,6 +544,8 @@ conf:
web.enable_admin_api: false
# If set to true, allows for http reloads and shutdown of Prometheus
web.enable_lifecycle: false
# Enable WAL file compression
storage.tsdb.wal-compression: true
scrape_configs:
template: |
{{- $promHost := tuple "monitoring" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}