Skip to content

Commit 2f736b5

Browse files
committed
pkg/cvo/metrics: Fix error returned when listen address is empty
1 parent 3519037 commit 2f736b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cvo/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ type MetricsOptions struct {
213213
// occurs before or simultaneously with shutdownContext.Done().
214214
func RunMetrics(runContext context.Context, shutdownContext context.Context, listenAddress, certFile, keyFile string, restConfig *rest.Config, metricsOptions MetricsOptions) error {
215215
if listenAddress == "" {
216-
return errors.New("TLS configuration is required to serve metrics")
216+
return errors.New("listen address is required to serve metrics")
217217
}
218218

219219
if metricsOptions.DisableAuthentication && !metricsOptions.DisableAuthorization {

0 commit comments

Comments
 (0)