kubernetes/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go

const corsAllowedOriginsHelpText

type ServerRunOptions

func NewServerRunOptions() *ServerRunOptions {}

func NewServerRunOptionsForComponent(componentName string, componentGlobalsRegistry featuregate.ComponentGlobalsRegistry) *ServerRunOptions {}

// ApplyTo applies the run options to the method receiver and returns self
func (s *ServerRunOptions) ApplyTo(c *server.Config) error {}

// DefaultAdvertiseAddress sets the field AdvertiseAddress if unset. The field will be set based on the SecureServingOptions.
func (s *ServerRunOptions) DefaultAdvertiseAddress(secure *SecureServingOptions) error {}

// Validate checks validation of ServerRunOptions
func (s *ServerRunOptions) Validate() []error {}

func validateHSTSDirectives(hstsDirectives []string) error {}

func validateCorsAllowedOriginList(corsAllowedOriginList []string) error {}

// AddUniversalFlags adds flags for a specific APIServer to the specified FlagSet
func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {}

// Complete fills missing fields with defaults.
func (s *ServerRunOptions) Complete() error {}