Skip to content

Commit

Permalink
(prometheus) Allowed to add custom labels to Statefulset volume templ…
Browse files Browse the repository at this point in the history
…ate (#2338)

Signed-off-by: Canh Ngo <canhnt@gmail.com>
  • Loading branch information
canhnt committed Aug 4, 2022
1 parent eeae0ad commit a3a8328
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: 2.36.2
version: 15.11.0
version: 15.12.0
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus/templates/server/sts.yaml
Expand Up @@ -288,6 +288,10 @@ spec:
annotations:
{{ toYaml .Values.server.persistentVolume.annotations | indent 10 }}
{{- end }}
{{- if .Values.server.persistentVolume.labels }}
labels:
{{ toYaml .Values.server.persistentVolume.labels | indent 10 }}
{{- end }}
spec:
accessModes:
{{ toYaml .Values.server.persistentVolume.accessModes | indent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus/values.yaml
Expand Up @@ -913,6 +913,10 @@ server:
accessModes:
- ReadWriteOnce

## Prometheus server data Persistent Volume labels
##
labels: {}

## Prometheus server data Persistent Volume annotations
##
annotations: {}
Expand Down

0 comments on commit a3a8328

Please sign in to comment.