Skip to content

Commit

Permalink
Merge pull request #1754 from chrischdi/pr-customresource-underscore-fix
Browse files Browse the repository at this point in the history
fix customresourcestate metric names to not contain underscores
  • Loading branch information
k8s-ci-robot authored Jun 9, 2022
2 parents 379b60a + 138e1e6 commit aa8729a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/customresourcestate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (r Resource) GetSubsystem() string {
return strings.NewReplacer(
"/", "_",
".", "_",
"-", "_",
).Replace(fmt.Sprintf("%s_%s_%s", r.GroupVersionKind.Group, r.GroupVersionKind.Version, r.GroupVersionKind.Kind))
}
if r.Subsystem == "_" {
Expand Down

0 comments on commit aa8729a

Please sign in to comment.