Skip to content
Prev Previous commit
Next Next commit
pkg/start/start: Use directly HyperShift flag
  • Loading branch information
DavidHurta committed Dec 12, 2025
commit b9072206eb1638c4166566f7d003a4dc32214dea
2 changes: 1 addition & 1 deletion pkg/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (o *Options) run(ctx context.Context, controllerCtx *Context, lock resource
resultChannelCount++
go func() {
defer utilruntime.HandleCrash()
disableMetricsAuth := o.InjectClusterIdIntoPromQL // this is wired to the "--hypershift" flag, so when hypershfit is no, we disableMetricsAuth
disableMetricsAuth := o.HyperShift
err := cvo.RunMetrics(postMainContext, shutdownContext, o.ListenAddr, o.ServingCertFile, o.ServingKeyFile, restConfig, disableMetricsAuth)
resultChannel <- asyncResult{name: "metrics server", error: err}
}()
Expand Down