Skip to content

Commit fba03bd

Browse files
authored
[charts] support additionalLabels for occm serviceMonitor and cinder-csi-plugin podMonitor (#2632)
* feat(occm): support additionalLabels on ServiceMonitor * feat(cinder-csi-plugin): support additionalLabels on PodMonitor
1 parent 4b76079 commit fba03bd

File tree

6 files changed

+12
-3
lines changed

6 files changed

+12
-3
lines changed

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: v1.30.0
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 2.30.1-alpha.1
5+
version: 2.30.1-alpha.2
66
home: https://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/cinder-csi-plugin/templates/controllerplugin-podmonitor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ kind: PodMonitor
44
metadata:
55
labels:
66
{{- include "cinder-csi.controllerplugin.labels" . | nindent 4 }}
7+
{{- if .Values.csi.plugin.podMonitor.additionalLabels }}
8+
{{- toYaml .Values.csi.plugin.podMonitor.additionalLabels | nindent 4 }}
9+
{{- end }}
710
name: {{ include "cinder-csi.name" . }}-controllerplugin
811
namespace: {{ .Release.Namespace }}
912
annotations:

charts/cinder-csi-plugin/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ csi:
136136
# See https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.PodMonitor
137137
podMonitor:
138138
enabled: false
139+
additionalLabels: {}
139140
extraArgs: {}
140141
extraEnv: []
141142

charts/openstack-cloud-controller-manager/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart
44
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
55
home: https://github.com/kubernetes/cloud-provider-openstack
66
name: openstack-cloud-controller-manager
7-
version: 2.30.2
7+
version: 2.30.3
88
maintainers:
99
- name: eumel8
1010

charts/openstack-cloud-controller-manager/templates/servicemonitor.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
55
name: {{ include "occm.name" . }}
6-
labels: {{- include "common.labels.standard" . | nindent 4 }}
6+
labels:
7+
{{- include "common.labels.standard" . | nindent 4 }}
8+
{{- if .Values.serviceMonitor.additionalLabels }}
9+
{{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
10+
{{- end }}
711
namespace: {{ .Release.Namespace }}
812
annotations:
913
{{- with .Values.commonAnnotations }}

charts/openstack-cloud-controller-manager/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ controllerExtraArgs: {}
8686
serviceMonitor: {}
8787
# serviceMonitor:
8888
# enabled: true
89+
# additionalLabels: {}
8990

9091
# Create a secret resource cloud-config (or other name) to store credentials and settings from cloudConfig
9192
# You can also provide your own secret (not created by the Helm chart), in this case set create to false

0 commit comments

Comments
 (0)