Skip to content

Commit

Permalink
feat: support VPAs
Browse files Browse the repository at this point in the history
introduce and leverage KSM's CRS featureset and support VPAs using that

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>

separate commonLabels to function

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

drop rawType

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

fewer intermediate variables and less explicit defaulting

E.g. else branches default to null

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
  • Loading branch information
rexagod committed Mar 27, 2024
1 parent a8abf18 commit c87204e
Show file tree
Hide file tree
Showing 44 changed files with 5,709 additions and 28 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Note: This CHANGELOG is only for the monitoring team to track all monitoring related changes. Please see OpenShift release notes for official changes.

## 4.16

- [#2078](https://github.com/openshift/cluster-monitoring-operator/pull/2078) Support exporting VPA metrics from KSM.

## 4.15

- [#2022](https://github.com/openshift/cluster-monitoring-operator/pull/2022) Add support to switch to metrics server from prometheus-adapter when the `MetricsServer` feature gate is enabled.
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GOLANG_FILES:=$(shell find . -name \*.go -print)
# NOTE: grep -v %.yaml is needed because "%s-policy.yaml" is used
# in manifest.go and that isn't a valid asset.
ASSETS=$(shell grep -oh '[^"]*/.*\.yaml' pkg/manifests/manifests.go \
| grep -v '^/etc' \
| grep -v '%.*yaml' | sed 's/^/assets\//')

BIN_DIR ?= $(shell pwd)/tmp/bin
Expand Down
15 changes: 15 additions & 0 deletions assets/kube-state-metrics/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,18 @@ rules:
verbs:
- list
- watch
- apiGroups:
- autoscaling.k8s.io
resources:
- verticalpodautoscalers
verbs:
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
- list
- watch

0 comments on commit c87204e

Please sign in to comment.