Skip to content

Commit

Permalink
Merge pull request #732 from ChrisFraun/feat/make-rules-folder-variable
Browse files Browse the repository at this point in the history
Feat/make rules folder variable
  • Loading branch information
jertel authored Feb 21, 2022
2 parents af11e9b + 1964ae9 commit d9e3dc2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
- Pytest 7.0.0 to 7.0.1 - [#710](https://github.com/jertel/elastalert2/pull/710) - @nsano-rururu
- Fixing jira_transition_to schema bug. Change property type from boolean to string [#721](https://github.com/jertel/elastalert2/pull/721) - @toxisch
- Begin Elasticsearch 8 support - ElastAlert 2 now supports setup with fresh ES 8 instances, and works with some alert types [#731](https://github.com/jertel/elastalert2/pull/731) - @ferozsalam
- Enable dynamic setting of rules volume in helm chart [#732] - @ChrisFraun


# 2.3.0

Expand Down
1 change: 1 addition & 0 deletions chart/elastalert2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The command removes all the Kubernetes components associated with the chart and
| `serviceAccount.annotations` | ServiceAccount annotations | |
| `podSecurityPolicy.create` | [DEPRECATED] Create pod security policy resources | `false` |
| `resources` | Container resource requests and limits | {} |
| `rulesVolumeName` | Specifies the rules volume to be mounted. Can be changed for mounting a custom rules folder via the extraVolumes parameter, instead of using the default rules configMap or secret rule mounting method. | "rules" |
| `rules` | Rule and alert configuration for ElastAlert 2 | {} example shown in values.yaml |
| `runIntervalMins` | Default interval between alert checks, in minutes | 1 |
| `realertIntervalMins` | Time between alarms for same rule, in minutes | `NULL` |
Expand Down
2 changes: 1 addition & 1 deletion chart/elastalert2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
- name: config
mountPath: '/opt/elastalert/config.yaml'
subPath: config.yaml
- name: rules
- name: {{ .Values.rulesVolumeName }}
mountPath: '/opt/elastalert/rules'
{{- if .Values.elasticsearch.certsVolumeMounts }}
{{ toYaml .Values.elasticsearch.certsVolumeMounts | indent 10 }}
Expand Down
5 changes: 4 additions & 1 deletion chart/elastalert2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ extraConfigOptions: {}
# command: ["YOUR_CUSTOM_COMMAND"]
# args: ["YOUR", "CUSTOM", "ARGS"]

# rule configurations e.g. (http://elastalert2.readthedocs.io/en/latest/)
# specifies the rules volume to be used
rulesVolumeName: "rules"

# additional rule configurations e.g. (http://elastalert2.readthedocs.io/en/latest/)
rules: {}
# deadman_slack: |-
# ---
Expand Down

0 comments on commit d9e3dc2

Please sign in to comment.