Skip to content

Commit

Permalink
k8s-stack: updated alertmanager.rules condition (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Oct 15, 2024
1 parent ac89332 commit 027d7f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-k8s-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- Added ability to disable alertmanager rules if alertmanager.enabled: false

## 0.27.4

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $Values := (.helm).Values | default .Values }}
condition: '{{ true }}'
condition: '{{ $Values.alertmanager.enabled }}'
name: alertmanager.rules
rules:
- alert: AlertmanagerFailedReload
Expand Down
1 change: 1 addition & 0 deletions charts/victoria-metrics-k8s-stack/hack/sync_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def new_representer(dumper, data):

# Additional conditions map
condition_map = {
"alertmanager.rules": "$Values.alertmanager.enabled",
"etcd": "$Values.kubeEtcd.enabled",
"kube-apiserver-availability.rules": "$Values.kubeApiServer.enabled",
"kube-apiserver-burnrate.rules": "$Values.kubeApiServer.enabled",
Expand Down

0 comments on commit 027d7f0

Please sign in to comment.