diff --git a/stable/prometheus-pushgateway/Chart.yaml b/stable/prometheus-pushgateway/Chart.yaml index fdae63b857..6c7a10f717 100644 --- a/stable/prometheus-pushgateway/Chart.yaml +++ b/stable/prometheus-pushgateway/Chart.yaml @@ -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 diff --git a/stable/prometheus-pushgateway/README.md b/stable/prometheus-pushgateway/README.md index 9a734c889d..5afba68d1b 100644 --- a/stable/prometheus-pushgateway/README.md +++ b/stable/prometheus-pushgateway/README.md @@ -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` | diff --git a/stable/prometheus-pushgateway/templates/deployment.yaml b/stable/prometheus-pushgateway/templates/deployment.yaml index 2e8f39b56f..01fb378225 100644 --- a/stable/prometheus-pushgateway/templates/deployment.yaml +++ b/stable/prometheus-pushgateway/templates/deployment.yaml @@ -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 }} diff --git a/stable/prometheus-pushgateway/values.yaml b/stable/prometheus-pushgateway/values.yaml index cc06ed09bd..ad5a4ce5cd 100644 --- a/stable/prometheus-pushgateway/values.yaml +++ b/stable/prometheus-pushgateway/values.yaml @@ -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