Skip to content

Commit 963435f

Browse files
PrometheusRule: Removing labels from manifest when no labels defined.
Signed-off-by: Aaron Layfield <[email protected]>
1 parent 48189ab commit 963435f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/redis-ha/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- redis
66
- keyvalue
77
- database
8-
version: 4.33.7
8+
version: 4.33.8
99
appVersion: 7.2.7
1010
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
1111
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png

charts/redis-ha/templates/redis-ha-prometheus-rule.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ metadata:
66
{{- if .Values.prometheusRule.namespace }}
77
namespace: {{ .Values.prometheusRule.namespace }}
88
{{- end }}
9+
{{- if .Values.prometheusRule.additionalLabels }}
910
labels: {{- toYaml .Values.prometheusRule.additionalLabels | nindent 4 }}
11+
{{- end }}
1012
spec:
1113
groups:
1214
- name: {{ template "redis-ha.fullname" . }}

0 commit comments

Comments
 (0)