Skip to content

Commit

Permalink
Merge pull request #975 from Kasape/master
Browse files Browse the repository at this point in the history
Add extraContainers parameter to helm chart
  • Loading branch information
jertel authored Oct 11, 2022
2 parents e70bd61 + 625fe3e commit 1799cec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## Other changes
- Upgrade pylint 2.15.2 to 2.15.3 and pytest-cov 3.0.0 to 4.0.0 and sphinx 5.1.1 to 5.2.3; Add Google Chat proxy support - [#972](https://github.com/jertel/elastalert2/pull/972) - @nsano-rururu
- Fix Jira assign issue - [#974](https://github.com/jertel/elastalert2/pull/974) - @jorge-gyant
- [Kubernetes] Add extraContainers value to helm chart - [#975](https://github.com/jertel/elastalert2/pull/975) - @Kasape

# 2.7.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 @@ -78,6 +78,7 @@ The command removes all the Kubernetes components associated with the chart and
| `secretRulesName` | name of the secret which holds the ElastAlert rules. **Note:** this will overwrite the generated rules | `NULL` |
| `secretRulesList` | a list of rules to enable from the secret | [] |
| `optEnv` | Additional pod environment variable definitions | [] |
| `extraContainers` | List of additional containers run in the same pod as elastalert | [] |
| `extraVolumes` | Additional volume definitions | [] |
| `extraVolumeMounts` | Additional volumeMount definitions | [] |
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` |
Expand Down
5 changes: 5 additions & 0 deletions chart/elastalert2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- end }}
containers:
{{- if .Values.extraContainers }}
{{ .Values.extraContainers | toYaml | indent 6}}
{{- end }}

- name: elastalert
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down Expand Up @@ -107,6 +111,7 @@ spec:
{{- if .Values.optEnv }}
{{ .Values.optEnv | toYaml | indent 10}}
{{- end }}

restartPolicy: Always
{{- if .Values.tolerations }}
tolerations:
Expand Down
3 changes: 3 additions & 0 deletions chart/elastalert2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ elasticsearch:
# Optional env variables for the pod
optEnv: []

## Specify optional additional containers to run alongside the Elastalert2 container.
extraContainers: []

extraConfigOptions: {}
# # Options to propagate to all rules, e.g. a common slack_webhook_url or kibana_url
# # Please note at the time of implementing this value, it will not work for required_locals
Expand Down

0 comments on commit 1799cec

Please sign in to comment.