Skip to content

Commit

Permalink
feat(cinder-csi-plugin): support additionalLabels on PodMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
roehlc committed Aug 20, 2024
1 parent d131de2 commit 427c92f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cinder-csi-plugin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v1.30.0
description: Cinder CSI Chart for OpenStack
name: openstack-cinder-csi
version: 2.30.1-alpha.1
version: 2.30.1-alpha.2
home: https://github.com/kubernetes/cloud-provider-openstack
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
maintainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: PodMonitor
metadata:
labels:
{{- include "cinder-csi.controllerplugin.labels" . | nindent 4 }}
{{- if .Values.csi.plugin.podMonitor.additionalLabels }}
{{- toYaml .Values.csi.plugin.podMonitor.additionalLabels | nindent 4 }}
{{- end }}
name: {{ include "cinder-csi.name" . }}-controllerplugin
namespace: {{ .Release.Namespace }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions charts/cinder-csi-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ csi:
# See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.PodMonitor
podMonitor:
enabled: false
additionalLabels: {}
extraArgs: {}
extraEnv: []

Expand Down

0 comments on commit 427c92f

Please sign in to comment.