Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingOptions ¶
type LoggingOptions struct { Level string // contains filtered or unexported fields }
func NewLoggingOptions ¶
func NewLoggingOptions(logger log.Logger) *LoggingOptions
func (*LoggingOptions) AddFlags ¶
func (o *LoggingOptions) AddFlags(fs *pflag.FlagSet)
func (*LoggingOptions) ApplyTo ¶
func (o *LoggingOptions) ApplyTo(c *genericapiserver.RecommendedConfig) error
func (*LoggingOptions) Validate ¶
func (o *LoggingOptions) Validate() []error
type MetricsOptions ¶
type MetricsOptions struct { Enabled bool MetricsRegisterer prometheus.Registerer // contains filtered or unexported fields }
func NewMetrcicsOptions ¶
func NewMetrcicsOptions(logger log.Logger) *MetricsOptions
func (*MetricsOptions) AddFlags ¶
func (o *MetricsOptions) AddFlags(fs *pflag.FlagSet)
func (*MetricsOptions) ApplyTo ¶
func (o *MetricsOptions) ApplyTo(c *genericapiserver.RecommendedConfig) error
func (*MetricsOptions) Validate ¶
func (o *MetricsOptions) Validate() []error
type Options ¶
type Options struct { LoggingOptions *LoggingOptions ExtraOptions *options.ExtraOptions RecommendedOptions *genericoptions.RecommendedOptions TracingOptions *TracingOptions MetricsOptions *MetricsOptions ServerRunOptions *genericoptions.ServerRunOptions StorageOptions *options.StorageOptions }
func (*Options) ApplyTo ¶
func (o *Options) ApplyTo(serverConfig *genericapiserver.RecommendedConfig) error
func (*Options) ModifiedApplyTo ¶
func (o *Options) ModifiedApplyTo(config *genericapiserver.RecommendedConfig) error
A copy of ApplyTo in recommended.go, but for >= 0.28, server pkg in apiserver does a bit extra causing a panic when CoreAPI is set to nil
type TracingOptions ¶
type TracingOptions struct { JaegerAddress string JaegerPropagation string OTLPAddress string OTLPPropagation string ServiceName string Tags map[string]string SamplerType string SamplerParam float64 SamplingServiceURL string TracingService *tracing.TracingService // contains filtered or unexported fields }
func NewTracingOptions ¶
func NewTracingOptions(logger log.Logger) *TracingOptions
func (*TracingOptions) AddFlags ¶
func (o *TracingOptions) AddFlags(fs *pflag.FlagSet)
func (*TracingOptions) ApplyTo ¶
func (o *TracingOptions) ApplyTo(config *genericapiserver.RecommendedConfig) error
func (*TracingOptions) Validate ¶
func (o *TracingOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.