options

package
v0.0.0-...-a6c227c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationOptions

type AuthorizationOptions struct {
	*options.BuiltInAuthorizationOptions
}

AuthorizationOptions wraps BuiltInAuthorizationOptions and mask some unused options It only use subset of master's authorization builtin options

func NewAuthorizationOptions

func NewAuthorizationOptions() *AuthorizationOptions

func (*AuthorizationOptions) AddFlags

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

func (*AuthorizationOptions) ApplyTo

func (o *AuthorizationOptions) ApplyTo(
	c *genericserver.AuthorizationInfo,
	versionedInformerFactory informers.SharedInformerFactory,
) error

func (*AuthorizationOptions) ToAuthorizationConfig

func (o *AuthorizationOptions) ToAuthorizationConfig(
	versionedInformerFactory informers.SharedInformerFactory,
) kubeauthorizer.Config

func (*AuthorizationOptions) Validate

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

type RateLimitOptions

type RateLimitOptions struct {
	ShardingCount      int
	LimitStore         string
	Identity           string
	K8sStoreSyncPeriod time.Duration
	componentbaseconfig.LeaderElectionConfiguration

	EnableControlPlane bool
}

func (*RateLimitOptions) AddFlags

func (c *RateLimitOptions) AddFlags(fs *pflag.FlagSet)

type SecureServingOptions

type SecureServingOptions struct {
	SecurePort int
}

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,
	controlPlaneSecureServingOptions *options.SecureServingOptions,
) error

func (*SecureServingOptions) ValidateWith

func (s *SecureServingOptions) ValidateWith(controlPlaneSecureServingOptions *options.SecureServingOptions, enableControlPlane bool) []error

Jump to

Keyboard shortcuts

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