apiserver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmissionOptions

func NewAdmissionOptions() *genericoptions.AdmissionOptions

NewAdmissionOptions creates a new instance of AdmissionOptions this is eidentical to the options created by upstream apiserver, but omits validatingadmissionpoicy.

func StartAPIServer

func StartAPIServer(opts *StartOptions) error

Types

type ServerOptions

type ServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	APIBuilders        []*builders.APIGroupBuilder

	GetOpenAPIDefinitions openapi.GetOpenAPIDefinitions
	DisableWebhooks       bool
}

func (*ServerOptions) GenericConfig

func (o *ServerOptions) GenericConfig(
	tweakConfig func(config *genericapiserver.RecommendedConfig) error,
) (*genericapiserver.RecommendedConfig, error)

func (*ServerOptions) RunServer

func (o *ServerOptions) RunServer(
	APIServerVersion *version.Info,
	stopCh <-chan struct{},
	authorizer authorizer.Authorizer,
	tweakServerConfig func(config *genericapiserver.RecommendedConfig) error,
) error

type StartOptions

type StartOptions struct {
	Apis       []*builders.APIGroupBuilder
	Authorizer authorizer.Authorizer

	GetOpenAPIDefinitions openapi.GetOpenAPIDefinitions
	Version               *version.Info

	TweakServerOptions func(options *ServerOptions)
	TweakServerConfig  func(config *genericapiserver.RecommendedConfig) error

	StopChan            <-chan struct{}
	DisableCommandFlags bool
}

Jump to

Keyboard shortcuts

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