Skip to content

Commit

Permalink
Merge pull request #281 from dkobras/develop
Browse files Browse the repository at this point in the history
Allow to add arbitrary envvars to deployment
  • Loading branch information
vicsufer authored Nov 12, 2021
2 parents 98328ca + 0b8de10 commit 0ab711f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch
## [Unreleased](https://github.com/idealista/prom2teams/tree/develop)
### Fixed
- *[#279](https://github.com/idealista/prom2teams/pull/279) Fixed issue with MS Teams exception handling* @nryabkov
### Added
- *[#281](https://github.com/idealista/prom2teams/pull/281) Allow to add arbitrary envvars to deployment* @dkobras

## [3.2.3](https://github.com/idealista/prom2teams/tree/3.2.3)
[Full Changelog](https://github.com/idealista/prom2teams/compare/3.2.2...3.2.3)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ The following table lists the configurable parameters of the Prom2teams chart an
| `prom2teams.loglevel` | Loglevel | `INFO`
| `prom2teams.templatepath` | Custom Template path (files/teams.j2) | `/opt/prom2teams/helmconfig/teams.j2`
| `prom2teams.config` | Config (specific to Helm) | `/opt/prom2teams/helmconfig/config.ini`
| `prom2teams.extraEnv` | Dictionary of arbitrary additional environment variables for deployment (eg. `HTTP_PROXY`) | `<empty>`

### Production

Expand Down
4 changes: 4 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
value: {{ .Values.prom2teams.connector | quote }}
- name: PROM2TEAMS_GROUP_ALERTS_BY
value: {{ .Values.prom2teams.group_alerts_by | quote }}
{{- range $key, $value := .Values.prom2teams.extraEnv }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.securityContext.enabled }}
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ prom2teams:
loglevel: INFO
templatepath: /opt/prom2teams/helmconfig/teams.j2
config: /opt/prom2teams/helmconfig/config.ini
extraEnv: {}

# Security Context properties
securityContext:
Expand Down

0 comments on commit 0ab711f

Please sign in to comment.