Skip to content

Commit

Permalink
corrected index variable default and elimianted hardcoded value in co…
Browse files Browse the repository at this point in the history
…nfigmap (helm#10298)

Signed-off-by: Jason Ertel <[email protected]>
  • Loading branch information
jertel authored and k8s-ci-robot committed Jan 4, 2019
1 parent d8aa6b5 commit 52a3a75
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/elastabot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.1.0
description: A Helm chart for Elastabot - a Slack bot companion for Elasticsearch and ElastAlert
name: elastabot
version: 1.1.0
version: 1.2.0
home: https://github.com/jertel/elastabot
sources:
- https://github.com/jertel/elastabot
Expand Down
2 changes: 1 addition & 1 deletion stable/elastabot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The command removes all the Kubernetes components associated with the chart and
| elasticsearch.sslStrictEnabled | If true, the SSL/TLS certificates will be validated against known certificate authorities | `false`
| elasticsearch.timeoutSeconds | Number of seconds to wait for an Elasticsearch response | `10`
| elasticsearch.urlPrefix | URL prefix for Elasticsearch, typically an empty string |
| elastalert.index | The index prefix used by Elastalert within Elasticsearch, typically elastalert or elastalert_status | `elastalert_status`
| elastalert.index | The index prefix used by Elastalert within Elasticsearch, typically elastalert | `elastalert`
| elastalert.silenceMinutes | Number of minutes to silence an acknowledge alert if a silence duration is not explicitly given with the ack command. | `240`
| elastalert.recentMinutes | Number of minutes to look back through Elasticsearch indices for a matching triggered alert | `4320`
| smtp.host | Hostname for the SMTP server |
Expand Down
2 changes: 1 addition & 1 deletion stable/elastabot/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data:
"urlPrefix":""
},
"elastalert": {
"index": "elastalert_status",
"index": "{{ .Values.elastalert.index }}",
"silenceMinutes": {{ .Values.elastalert.defaultSilenceMinutes }},
"recentMinutes": {{ .Values.elastalert.recentAlertMinutes }}
},
Expand Down
3 changes: 3 additions & 0 deletions stable/elastabot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ elasticsearch:
# Elastalert settings. Elastalert chart information is available here:
# https://github.com/kubernetes/charts/tree/master/stable/elastalert
elastalert:
# Index prefix for elastalert
index: "elastalert"

# How far back in time to search for recently-fired alerts, in Elasticsearch
recentAlertMinutes: 4320

Expand Down

0 comments on commit 52a3a75

Please sign in to comment.