options

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort           = 8443
	DefaultInsecurePort   = 8080
	DefaultClientQPSLimit = 20
	DefaultClientQPSBurst = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Kubeconfig is the file path to the KubeConfig file to use. Only for out-of-cluster configuration.
	Kubeconfig string

	// Config is the file path to the PodSecurity configuration file.
	Config string

	ClientQPSLimit float32
	ClientQPSBurst int

	SecureServing apiserveroptions.SecureServingOptions
}

Options has all the params needed to run a PodSecurity webhook.

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

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

func (*Options) Validate

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

Validate validates all the required options.

Jump to

Keyboard shortcuts

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