Skip to content

Commit

Permalink
Use helper template setting labels in clusterrole
Browse files Browse the repository at this point in the history
Signed-off-by: zeritti <[email protected]>
  • Loading branch information
zeritti committed Apr 20, 2024
1 parent 7b10c86 commit 3a261cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/prometheus/ci/10-namespaced-sd-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
## Test case: Prometheus with namespaced SD
## Prometheus runs service discovery (SD) in its own namespace only.
## A custom cluster role is set up and bound to SA through a role binding
## in the given namespace. Note that Prometheus *must* be told that its SD
## is namespaced by means of scrape_configs.kubernetes_sd_configs.namespaces.
## in the given namespace. Prometheus *must* be told that its SD
## is namespaced by means of 'scrape_configs.kubernetes_sd_configs.namespaces'.
server:
automountServiceAccountToken: true
namespaces: []
Expand Down Expand Up @@ -75,8 +75,7 @@ extraManifests:
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/instance: prometheus
{{- include "prometheus.server.labels" . | nindent 4 }}
name: prometheus-cluster-role
rules:
- apiGroups:
Expand Down

0 comments on commit 3a261cc

Please sign in to comment.