Skip to content

Commit

Permalink
prometheus: generated changes
Browse files Browse the repository at this point in the history
Signed-off-by: Kaustav Majumder <[email protected]>
  • Loading branch information
Kaustav Majumder committed Mar 22, 2024
1 parent 44dfc9a commit d1840f9
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 0 deletions.
28 changes: 28 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@ rules:
- get
- list
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- alertmanagers
- prometheuses
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
Expand All @@ -186,6 +199,18 @@ rules:
- list
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- noobaa.io
resources:
Expand Down Expand Up @@ -266,8 +291,11 @@ rules:
resources:
- clusterserviceversions
verbs:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- operators.coreos.com
Expand Down
28 changes: 28 additions & 0 deletions deploy/csv-templates/ocs-operator.csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,19 @@ spec:
- get
- list
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- alertmanagers
- prometheuses
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
Expand All @@ -340,6 +353,18 @@ spec:
- list
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- noobaa.io
resources:
Expand Down Expand Up @@ -420,8 +445,11 @@ spec:
resources:
- clusterserviceversions
verbs:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- operators.coreos.com
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8s-metrics-sm-prometheus-k8s
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: k8s-metrics-sm-prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: odf-storage
51 changes: 51 additions & 0 deletions deploy/ocs-operator/manifests/k8s-metrics-servicemonitor-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: k8s-metrics-sm-prometheus-k8s
rules:
- verbs:
- get
apiGroups:
- ''
resources:
- nodes/metrics
- verbs:
- get
nonResourceURLs:
- /metrics
- verbs:
- create
apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
- verbs:
- create
apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
- verbs:
- get
apiGroups:
- ''
resources:
- namespaces
- verbs:
- use
apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
resourceNames:
- nonroot
- verbs:
- list
- watch
- get
apiGroups:
- ''
resources:
- pods
- endpoints
- services
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,19 @@ spec:
- get
- list
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- alertmanagers
- prometheuses
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
Expand All @@ -361,6 +374,18 @@ spec:
- list
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- noobaa.io
resources:
Expand Down Expand Up @@ -441,8 +466,11 @@ spec:
resources:
- clusterserviceversions
verbs:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- operators.coreos.com
Expand Down
12 changes: 12 additions & 0 deletions deploy/ocs-operator/manifests/odf-prometheus-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: odf-prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: odf-prometheus
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: odf-storage
24 changes: 24 additions & 0 deletions deploy/ocs-operator/manifests/odf-prometheus-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: odf-prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/metrics
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]

0 comments on commit d1840f9

Please sign in to comment.