Skip to content

Commit

Permalink
version: make sure to always have namespace when reporting version
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Apr 22, 2020
1 parent 346ac43 commit d14c889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controllercmd/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (b *ControllerBuilder) Run(ctx context.Context, config *unstructured.Unstru
if b.versionInfo != nil {
buildInfo := metrics.NewGaugeVec(
&metrics.GaugeOpts{
Name: strings.Replace(b.componentNamespace, "-", "_", -1) + "_build_info",
Name: strings.Replace(namespace, "-", "_", -1) + "_build_info",
Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, " +
"and compiler from which " + b.componentName + " was built, and platform on which it is running.",
StabilityLevel: metrics.ALPHA,
Expand Down

0 comments on commit d14c889

Please sign in to comment.