Skip to content

Commit

Permalink
feat: added serviceaccount RBAC to allow prometheus-auth to work
Browse files Browse the repository at this point in the history
Since only caas-project-owners have the verb view on prometheus.monitoring.coreos.com
they can also pass it down to their serviceaccounts, which will need to parse the central prometheus database
for federated metrics for their own namespaces.

Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
  • Loading branch information
puffitos committed Oct 2, 2024
1 parent afce1ce commit ace25ad
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions templates/caas-project-monitoring-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ metadata:
name: {{ $fullname }}
namespace: {{ $ns }}
rules:
- apiGroups:
- monitoring.coreos.com
resources:
- prometheuses
verbs:
- view
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand All @@ -41,14 +55,6 @@ rules:
- get
- list
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit ace25ad

Please sign in to comment.