Skip to content

Commit 554fea0

Browse files
committed
pkg/start/start: Use directly HyperShift flag
The `o.HyperShift` option is not available in older release branches. In newer branches, the option can be utilized.
1 parent 18495ae commit 554fea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/start/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (o *Options) run(ctx context.Context, controllerCtx *Context, lock resource
350350
resultChannelCount++
351351
go func() {
352352
defer utilruntime.HandleCrash()
353-
disableMetricsAuth := o.InjectClusterIdIntoPromQL // this is wired to the "--hypershift" flag, so when hypershfit is no, we disableMetricsAuth
353+
disableMetricsAuth := o.HyperShift
354354
err := cvo.RunMetrics(postMainContext, shutdownContext, o.ListenAddr, o.ServingCertFile, o.ServingKeyFile, restConfig, disableMetricsAuth)
355355
resultChannel <- asyncResult{name: "metrics server", error: err}
356356
}()

0 commit comments

Comments
 (0)