Allow for customization of env vars on prometheus-pushgateway (#12196)

Signed-off-by: Jessie A. Morris <jessie.m@midigator.com>
This commit is contained in:
Jessie A. Morris
2019-03-25 09:11:10 -07:00
committed by Kubernetes Prow Robot
parent 761d0d3360
commit 04d04ca132
4 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.6.0"
description: A Helm chart for prometheus pushgateway
name: prometheus-pushgateway
version: 0.3.0
version: 0.3.1
home: https://github.com/prometheus/pushgateway
sources:
- https://github.com/prometheus/pushgateway
+1
View File
@@ -42,6 +42,7 @@ The following table lists the configurable parameters of the pushgateway chart a
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| `affinity` | Affinity settings for pod assignment | `{}` |
| `extraArgs` | Optional flags for pushgateway | `[]` |
| `extraVars` | Optional environment variables for pushgateway | `[]` |
| `image.repository` | Image repository | `prom/pushgateway` |
| `image.tag` | Image tag | `v0.6.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
@@ -16,13 +16,17 @@ spec:
app: {{ template "prometheus-pushgateway.name" . }}
release: {{ .Release.Name }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{ toYaml .Values.podAnnotations | indent 8 }}
spec:
serviceAccountName: {{ template "prometheus-pushgateway.serviceAccountName" . }}
containers:
- name: pushgateway
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.extraVars }}
env:
{{ toYaml .Values.extraVars | indent 12 }}
{{- end }}
{{- if .Values.extraArgs }}
args:
{{ toYaml .Values.extraArgs | indent 12 }}
@@ -26,6 +26,9 @@ serviceAccountLabels: {}
# Optional additional arguments
extraArgs: []
# Optional additional environment variables
extraVars: []
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little