Documentation ¶
Overview ¶
Package options provides configuration options for the metrics API server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomMetricsAdapterServerOptions ¶
type CustomMetricsAdapterServerOptions struct { SecureServing *genericoptions.SecureServingOptionsWithLoopback Authentication *genericoptions.DelegatingAuthenticationOptions Authorization *genericoptions.DelegatingAuthorizationOptions Audit *genericoptions.AuditOptions Features *genericoptions.FeatureOptions OpenAPIConfig *openapicommon.Config OpenAPIV3Config *openapicommon.OpenAPIV3Config EnableMetrics bool }
CustomMetricsAdapterServerOptions contains the of options used to configure the metrics API server.
It is based on a subset of genericoptions.RecommendedOptions.
func NewCustomMetricsAdapterServerOptions ¶
func NewCustomMetricsAdapterServerOptions() *CustomMetricsAdapterServerOptions
NewCustomMetricsAdapterServerOptions creates a new instance of CustomMetricsAdapterServerOptions with its default values.
func (*CustomMetricsAdapterServerOptions) AddFlags ¶
func (o *CustomMetricsAdapterServerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds the flags defined for the options, to the given flagset.
func (*CustomMetricsAdapterServerOptions) ApplyTo ¶
func (o *CustomMetricsAdapterServerOptions) ApplyTo(serverConfig *genericapiserver.RecommendedConfig) error
ApplyTo applies CustomMetricsAdapterServerOptions to the server configuration.
func (CustomMetricsAdapterServerOptions) Validate ¶
func (o CustomMetricsAdapterServerOptions) Validate() []error
Validate validates CustomMetricsAdapterServerOptions
Click to show internal directories.
Click to hide internal directories.