options

package
v0.0.0-...-43b7830 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReusePortListener

func CreateReusePortListener(network, addr string) (net.Listener, int, error)

Types

type ControlPlaneOptions

type ControlPlaneOptions struct {
	*apiserveroptions.RecommendedOptions

	SecureServing *SecureServingOptions
}

ControlPlaneOptions contains RecommendedOptions and use its own secure serving options with reuse port and proxy protocol

func NewControlPlaneOptions

func NewControlPlaneOptions() *ControlPlaneOptions

NewControlPlaneOptions return a new controle plane options

func (*ControlPlaneOptions) ApplySecureServingTo

func (o *ControlPlaneOptions) ApplySecureServingTo(recommended *server.RecommendedConfig, tweakLoopbackConfig func(*rest.Config)) error

Sometimes you need to apply secure serving options firstly to get loopbackClientConfig

func (*ControlPlaneOptions) ApplyTo

func (o *ControlPlaneOptions) ApplyTo(
	recommended *server.RecommendedConfig,
	tweakLoopbackConfig func(*rest.Config),
	defaultResourceConfig *serverstorage.ResourceConfig,
	pluginInitializers ...admission.PluginInitializer,
) error

ApplyTo adds RecommendedOptions to the server configuration. pluginInitializers can be empty, it is only need for additional initializers.

func (*ControlPlaneOptions) Complete

func (o *ControlPlaneOptions) Complete() error

func (*ControlPlaneOptions) Flags

func (o *ControlPlaneOptions) Flags() (fss cliflag.NamedFlagSets)

func (*ControlPlaneOptions) Validate

func (o *ControlPlaneOptions) Validate() []error

type SecureServingOptions

type SecureServingOptions struct {
	*genericoptions.SecureServingOptionsWithLoopback

	ReusePort           bool
	OtherPorts          []int
	LoopbackClientToken string
}

secure serving options with reuse port and loop back

func NewSecureServingOptions

func NewSecureServingOptions() *SecureServingOptions

func (*SecureServingOptions) AddFlags

func (s *SecureServingOptions) AddFlags(fs *pflag.FlagSet)

func (*SecureServingOptions) ApplyTo

func (s *SecureServingOptions) ApplyTo(secureServingInfo **server.SecureServingInfo, loopbackClientConfig **rest.Config) error

ApplyTo fills up serving information in the server configuration.

func (*SecureServingOptions) Validate

func (s *SecureServingOptions) Validate() []error

Jump to

Keyboard shortcuts

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