Skip to content

Commit

Permalink
chore(alertmanager): support for additional environments (#440)
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi authored May 22, 2024
1 parent 9459fa0 commit 8b97982
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/signoz/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: signoz
version: 0.41.0
version: 0.41.1
appVersion: "0.45.0"
description: SigNoz Observability Platform Helm Chart
type: application
Expand Down
1 change: 1 addition & 0 deletions charts/signoz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ The following table lists the configurable parameters of the `signoz` chart and
| `alertmanager.replicaCount` | Number of Alertmanager nodes | `1` |
| `alertmanager.command` | Set container command to execute | `[]` |
| `alertmanager.extraArgs` | Extra arguments for the alertmanager container | `{}` |
| `alertmanager.additionalEnvs` | Additional environment variables for alertmanager container | `[]` |
| `alertmanager.initContainers.init.resources` | Resources requests and limits | See `values.yaml` for defaults |
| `alertmanager.imagePullSecrets` | Reference to secrets to be used when pulling images | `[]` |
| `alertmanager.service.annotations` | Service annotations | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions charts/signoz/templates/alertmanager/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
{{- range $key, $val := .Values.alertmanager.additionalEnvs }}
- name: {{ $key }}
value: {{ $val | toYaml }}
{{- end }}
{{- if .Values.alertmanager.command }}
command:
{{- toYaml .Values.alertmanager.command | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/signoz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,10 @@ alertmanager:
# -- Set this to you want to force a specific nodePort. Must be use with service.type=NodePort
nodePort: null

# -- Additional environments to set for Alertmanager
additionalEnvs: {}
# env_key: env_value

initContainers:
init:
enabled: true
Expand Down

0 comments on commit 8b97982

Please sign in to comment.