Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6f9061c
USHIFT-6951: Add kube-state-metrics Kubernetes manifests
copejon Jun 24, 2026
ec98600
USHIFT-6951: Register kube-state-metrics healthcheck and metrics clie…
copejon Jun 24, 2026
11805a9
USHIFT-6951: Package kube-state-metrics RPM
copejon Jun 24, 2026
05f90bc
USHIFT-6951: Add standalone cluster-monitoring-operator rebase script
copejon Jun 24, 2026
27f7134
renamed metrics_client_ca.go to metrics.go
copejon Jun 24, 2026
119d90e
USHIFT-6951: Add node-exporter Kubernetes manifests
copejon Jun 23, 2026
cb210dd
Update packaging/rpm/microshift.spec
copejon Jun 26, 2026
e7405bd
align node-exporter client-ca mounting with ksm and ms which use a co…
copejon Jun 26, 2026
3df68c6
fix: rpm list defined under wrong version class for tests
copejon Jul 8, 2026
75ece28
sanity test metrics exporters
copejon Jul 15, 2026
48b5cca
Use oc.resource keywords and retry logic, fix cert extraction path,
copejon Jul 15, 2026
0d0bcfb
ensure metrics manifests are always deployed
copejon Jul 15, 2026
2810cee
Ensures metrics tests validate Service wiring and run deterministically
copejon Jul 16, 2026
89677cd
refactor rf keywords (dedupe)
copejon Jul 16, 2026
fa69984
revert label param and logic in oc.resource, no longer applicable
copejon Jul 16, 2026
4308d2c
scrapes now exercise server tls in addtion to client tls
copejon Jul 16, 2026
76cd6d0
keyword lost return statement during refactor, re-added
copejon Jul 16, 2026
143de08
extract waitForNamespace helper to deduplicate namespace polling
copejon Jul 17, 2026
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
9 changes: 9 additions & 0 deletions assets/optional/kube-state-metrics/00-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-monitoring
labels:
name: openshift-monitoring
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
18 changes: 18 additions & 0 deletions assets/optional/kube-state-metrics/01-cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/component: exporter
app.kubernetes.io/managed-by: cluster-monitoring-operator
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: openshift-monitoring
app.kubernetes.io/version: 2.19.1
name: kube-state-metrics
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-state-metrics
subjects:
- kind: ServiceAccount
name: kube-state-metrics
namespace: openshift-monitoring
153 changes: 153 additions & 0 deletions assets/optional/kube-state-metrics/01-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/component: exporter
app.kubernetes.io/managed-by: cluster-monitoring-operator
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: openshift-monitoring
app.kubernetes.io/version: 2.19.1
name: kube-state-metrics
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- nodes
- pods
- services
- serviceaccounts
- resourcequotas
- replicationcontrollers
- limitranges
- persistentvolumeclaims
- persistentvolumes
- namespaces
- endpoints
verbs:
- list
- watch
- apiGroups:
- apps
resources:
- statefulsets
- daemonsets
- deployments
- replicasets
verbs:
- list
- watch
- apiGroups:
- batch
resources:
- cronjobs
- jobs
verbs:
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- list
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- list
- watch
- apiGroups:
- discovery.k8s.io
resources:
- endpointslices
verbs:
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
- volumeattachments
verbs:
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
- ingressclasses
- ingresses
verbs:
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
- rolebindings
- roles
verbs:
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling.k8s.io
resources:
- verticalpodautoscalers
verbs:
- list
- watch
- apiGroups:
- gateway.networking.k8s.io
resources:
- gatewayclasses
- gateways
verbs:
- list
- watch
12 changes: 12 additions & 0 deletions assets/optional/kube-state-metrics/01-service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
automountServiceAccountToken: false
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/component: exporter
app.kubernetes.io/managed-by: cluster-monitoring-operator
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: openshift-monitoring
app.kubernetes.io/version: 2.19.1
name: kube-state-metrics
namespace: openshift-monitoring
Loading