Skip to content

Commit aa8729a

Browse files
authored
Merge pull request #1754 from chrischdi/pr-customresource-underscore-fix
fix customresourcestate metric names to not contain underscores
2 parents 379b60a + 138e1e6 commit aa8729a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/customresourcestate/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (r Resource) GetSubsystem() string {
132132
return strings.NewReplacer(
133133
"/", "_",
134134
".", "_",
135+
"-", "_",
135136
).Replace(fmt.Sprintf("%s_%s_%s", r.GroupVersionKind.Group, r.GroupVersionKind.Version, r.GroupVersionKind.Kind))
136137
}
137138
if r.Subsystem == "_" {

0 commit comments

Comments
 (0)