Merge pull request #2667 from haskjold/add_missing_labels_bb_cr

Add common labels to blackbox-exporter ClusterRole
This commit is contained in:
haskjold 2025-06-04 14:12:38 +02:00 committed by GitHub
parent 3b3bcef340
commit 3b77a19e73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,7 @@ function(params) {
kind: 'ClusterRole', kind: 'ClusterRole',
metadata: { metadata: {
name: 'blackbox-exporter', name: 'blackbox-exporter',
labels: bb._config.commonLabels,
}, },
rules: [ rules: [
{ {

View File

@ -1,6 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels:
app.kubernetes.io/component: exporter
app.kubernetes.io/name: blackbox-exporter
app.kubernetes.io/part-of: kube-prometheus
app.kubernetes.io/version: 0.26.0
name: blackbox-exporter name: blackbox-exporter
rules: rules:
- apiGroups: - apiGroups: