Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ rules:
- get
- list
- watch
- apiGroups:
- discovery.k8s.io
resources:
- endpointslices
verbs:
- get
- list
- watch
---
# Role for accessing metrics exposed by authentication resources
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -41,6 +49,14 @@ rules:
- get
- list
- watch
- apiGroups:
- discovery.k8s.io
resources:
- endpointslices
verbs:
- get
- list
- watch
---
# oauth-apiserver role
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -63,6 +79,14 @@ rules:
- get
- list
- watch
- apiGroups:
- discovery.k8s.io
resources:
- endpointslices
verbs:
- get
- list
- watch
---
# Grant cluster-monitoring access to cluster-authentication-operator metrics
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
selector:
matchLabels:
app: authentication-operator
serviceDiscoveryRole: EndpointSlice
---
# Configure cluster-monitoring for cluster authentication resources
apiVersion: monitoring.coreos.com/v1
Expand Down Expand Up @@ -60,6 +61,7 @@ spec:
selector:
matchLabels:
app: oauth-openshift
serviceDiscoveryRole: EndpointSlice
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down Expand Up @@ -113,3 +115,4 @@ spec:
selector:
matchLabels:
app: openshift-oauth-apiserver
serviceDiscoveryRole: EndpointSlice