1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

add additionalAlertManagerConfigs to helm chart ()

* add additionalAlertManagerConfigs to helm chart

This should help Helm users take advantage of the flexibility of the
additionalAlertManagerConfigs field added to PrometheusSpec.

Fixes 

* add additionalAlertManagerConfigs example to helm chart
This commit is contained in:
Alice 2018-06-15 07:54:33 -05:00 committed by Giancarlo Rubio
parent 97bcd7df40
commit cab34d7fe1
6 changed files with 34 additions and 4 deletions

View file

@ -7,4 +7,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.82
version: 0.0.83

View file

@ -6,7 +6,7 @@ dependencies:
condition: deployAlertManager
- name: prometheus
version: 0.0.43
version: 0.0.44
#e2e-repository: file://../prometheus
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/

View file

@ -7,4 +7,4 @@ maintainers:
name: prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.43
version: 0.0.44

View file

@ -124,4 +124,9 @@ spec:
name: prometheus-{{ .Release.Name }}-additional-scrape-configs
key: additional-scrape-configs.yaml
{{- end }}
{{- if .Values.additionalScrapeConfigs }}
additionalAlertManagerConfigs:
name: prometheus-{{ .Release.Name }}-additional-alertmanager-configs
key: additional-alertmanager-configs.yaml
{{- end }}

View file

@ -30,3 +30,20 @@ metadata:
data:
additional-scrape-configs.yaml: {{ toYaml .Values.additionalScrapeConfigs | b64enc | quote }}
{{- end }}
---
{{- if .Values.additionalAlertManagerConfigs }}
apiVersion: v1
kind: Secret
metadata:
labels:
app: {{ template "prometheus.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
prometheus: {{ .Values.prometheusLabelValue | default .Release.Name | quote }}
release: {{ .Release.Name }}
name: prometheus-{{ .Release.Name }}-additional-alertmanager-configs
data:
additional-alertmanager-configs.yaml: {{ toYaml .Values.additionalAlertManagerConfigs | b64enc | quote }}
{{- end }}

View file

@ -339,4 +339,12 @@ additionalScrapeConfigs: []
# - targets:
# - "localhost:9090"
serviceMonitorNamespaceSelector: {}
## Prometheus AdditionalAlertManagerConfigs
## Ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
##
additionalAlertManagerConfigs: {}
# static_configs:
# - targets:
# - "localhost:9093"
serviceMonitorNamespaceSelector: {}