Skip to content

Commit

Permalink
Merge pull request kubernetes#1 from branden/upbound-fix-metricname-a…
Browse files Browse the repository at this point in the history
…pigroup

Allow custom resources with the same kind to be watched
  • Loading branch information
branden committed Mar 3, 2023
2 parents 054f2a4 + 7af9116 commit bc0b977
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FLAGS =
TESTENVVAR =
REGISTRY ?= gcr.io/k8s-staging-kube-state-metrics
REGISTRY ?= us-west1-docker.pkg.dev/orchestration-build/kube-state-metrics
TAG_PREFIX = v
VERSION = $(shell cat VERSION)
TAG ?= $(TAG_PREFIX)$(VERSION)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.1
2.8.1-upbound001
2 changes: 1 addition & 1 deletion pkg/customresourcestate/custom_resource_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewCustomResourceMetrics(resource Resource) (customresource.RegistryFactory
}

func (s customResourceMetrics) Name() string {
return s.ResourceName
return s.ResourceName + "." + s.GroupVersionKind.Group
}

func (s customResourceMetrics) CreateClient(cfg *rest.Config) (interface{}, error) {
Expand Down

0 comments on commit bc0b977

Please sign in to comment.