Fix spacing inconsistencies with flags

Change-Id: I83676f62a4cfc7d8e20145a72f28eeab5ef4cc8d
This commit is contained in:
Smith, David (ds3330) 2021-01-05 21:30:03 +00:00
parent 3ded481794
commit 1934d32cdd
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" }}