Documentation
¶
Index ¶
- func CreateReusePortListener(network, addr string) (net.Listener, int, error)
- type ControlPlaneOptions
- func (o *ControlPlaneOptions) ApplySecureServingTo(recommended *server.RecommendedConfig, tweakLoopbackConfig func(*rest.Config)) error
- func (o *ControlPlaneOptions) ApplyTo(recommended *server.RecommendedConfig, tweakLoopbackConfig func(*rest.Config), ...) error
- func (o *ControlPlaneOptions) Complete() error
- func (o *ControlPlaneOptions) Flags() (fss cliflag.NamedFlagSets)
- func (o *ControlPlaneOptions) Validate() []error
- type SecureServingOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.