Skip to content

Commit cce635d

Browse files
committed
update
1 parent 9b4db3b commit cce635d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cmd/epp/runner/runner.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ const (
7575
)
7676

7777
var (
78-
grpcPort = flag.Int("grpc-port", runserver.DefaultGrpcPort, "The gRPC port used for communicating with Envoy proxy")
79-
grpcHealthPort = flag.Int("grpc-health-port", runserver.DefaultGrpcHealthPort, "The port used for gRPC liveness and readiness probes")
80-
metricsPort = flag.Int("metrics-port", runserver.DefaultMetricsPort, "The metrics port")
81-
metricsEndpointAuth = flag.Bool("metrics-endpoint-auth", true, "Enables authentication and authorization of the metrics endpoint")
82-
enablePprof = flag.Bool("enable-pprof", runserver.DefaultEnablePprof, "Enables pprof handlers. Defaults to true. Set to false to disable pprof handlers.")
83-
poolName = flag.String("pool-name", runserver.DefaultPoolName, "Name of the InferencePool this Endpoint Picker is associated with.")
84-
poolGroup = flag.String("pool-group", runserver.DefaultPoolGroup, "group of the InferencePool this Endpoint Picker is associated with.")
85-
poolNamespace = flag.String("pool-namespace", "", "Namespace of the InferencePool this Endpoint Picker is associated with.")
86-
logVerbosity = flag.Int("v", logging.DEFAULT, "number for the log level verbosity")
87-
secureServing = flag.Bool("secure-serving", runserver.DefaultSecureServing, "Enables secure serving. Defaults to true.")
88-
healthChecking = flag.Bool("health-checking", runserver.DefaultHealthChecking, "Enables health checking")
89-
certPath = flag.String("cert-path", runserver.DefaultCertPath, "The path to the certificate for secure serving. The certificate and private key files "+
78+
grpcPort = flag.Int("grpc-port", runserver.DefaultGrpcPort, "The gRPC port used for communicating with Envoy proxy")
79+
grpcHealthPort = flag.Int("grpc-health-port", runserver.DefaultGrpcHealthPort, "The port used for gRPC liveness and readiness probes")
80+
metricsPort = flag.Int("metrics-port", runserver.DefaultMetricsPort, "The metrics port")
81+
metricsEndpointAuth = flag.Bool("metrics-endpoint-auth", true, "Enables authentication and authorization of the metrics endpoint")
82+
enablePprof = flag.Bool("enable-pprof", runserver.DefaultEnablePprof, "Enables pprof handlers. Defaults to true. Set to false to disable pprof handlers.")
83+
poolName = flag.String("pool-name", runserver.DefaultPoolName, "Name of the InferencePool this Endpoint Picker is associated with.")
84+
poolGroup = flag.String("pool-group", runserver.DefaultPoolGroup, "group of the InferencePool this Endpoint Picker is associated with.")
85+
poolNamespace = flag.String("pool-namespace", "", "Namespace of the InferencePool this Endpoint Picker is associated with.")
86+
logVerbosity = flag.Int("v", logging.DEFAULT, "number for the log level verbosity")
87+
secureServing = flag.Bool("secure-serving", runserver.DefaultSecureServing, "Enables secure serving. Defaults to true.")
88+
healthChecking = flag.Bool("health-checking", runserver.DefaultHealthChecking, "Enables health checking")
89+
certPath = flag.String("cert-path", runserver.DefaultCertPath, "The path to the certificate for secure serving. The certificate and private key files "+
9090
"are assumed to be named tls.crt and tls.key, respectively. If not set, and secureServing is enabled, "+
9191
"then a self-signed certificate is used.")
9292
// metric flags
@@ -188,7 +188,7 @@ func (r *Runner) Run(ctx context.Context) error {
188188
metricsServerOptions := metricsserver.Options{
189189
BindAddress: fmt.Sprintf(":%d", *metricsPort),
190190
FilterProvider: func() func(c *rest.Config, httpClient *http.Client) (metricsserver.Filter, error) {
191-
if *metricsAuth {
191+
if *metricsEndpointAuth {
192192
return filters.WithAuthenticationAndAuthorization
193193
}
194194

0 commit comments

Comments
 (0)