options

package
v0.18.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Codecs provides access to encoding and decoding for the scheme
	Codecs = serializer.NewCodecFactory(scheme)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	GenericConfig *genericapiserver.Config
	ExtraConfig   ExtraConfig
}

Config contains configuration for the aggregated API server

type ExtraConfig

type ExtraConfig struct {
}

ExtraConfig holds custom configuration

type ServerOptions

type ServerOptions struct {
	SecureServing *genericoptions.SecureServingOptionsWithLoopback
}

ServerOptions contains configuration for the aggregated API server Following metrics-server pattern with individual options instead of RecommendedOptions

func NewServerOptions

func NewServerOptions() *ServerOptions

NewServerOptions creates a new ServerOptions with default values

func (*ServerOptions) AddFlags

func (o *ServerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the flagset

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

Complete fills in missing options

func (*ServerOptions) Config

func (o *ServerOptions) Config() (*Config, error)

Config returns a server configuration

func (*ServerOptions) Validate

func (o *ServerOptions) Validate() error

Validate validates the options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL