Skip to content

Commit a7c2ab6

Browse files
Apply Features flags (related to pprof)
The flags "profiling" and "contention-profiling", provided by FeatureOptions, are already added by custom-metrics-apiserver, but were not applied.
1 parent 28a0c93 commit a7c2ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/options/options.go

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func (o *CustomMetricsAdapterServerOptions) ApplyTo(serverConfig *genericapiserv
9595
if err := o.Audit.ApplyTo(serverConfig); err != nil {
9696
return err
9797
}
98+
if err := o.Features.ApplyTo(serverConfig); err != nil {
99+
return err
100+
}
98101

99102
// enable OpenAPI schemas
100103
if o.OpenAPIConfig != nil {

0 commit comments

Comments
 (0)