options

package
v0.29.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServerConfig

type AuthServerConfig struct {
	TLSConfig                      *tls.Config
	Address                        string
	ClientCAProvider               dynamiccertificates.CAContentProvider
	AuthenticationAlwaysAllowPaths map[string]struct{}
}

type Config

type Config struct {
	ResyncPeriod     resyncPeriod
	AuthServerConfig AuthServerConfig
}

Config has all the context to run an OIDC Webhook Authenticator

type Options

type Options struct {
	ResyncPeriod   resyncPeriod
	ServingOptions ServingOptions
}

Options contain the server options.

func NewOptions

func NewOptions() *Options

NewOptions return options with default values.

func (*Options) AddFlags

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

AddFlags adds server options to flagset

func (*Options) ApplyTo

func (o *Options) ApplyTo(server *Config) error

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

func (*Options) Validate

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

Validate checks if options are valid

type ServingOptions

type ServingOptions struct {
	TLSCertFile                    string
	TLSKeyFile                     string
	ClientCAFile                   string
	AuthenticationAlwaysAllowPaths []string

	Address string
	Port    uint
}

ServingOptions are options applied to the authentication webhook server.

func (*ServingOptions) AddFlags

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

AddFlags adds server options to flagset

func (*ServingOptions) ApplyTo

func (s *ServingOptions) ApplyTo(c *AuthServerConfig) error

func (*ServingOptions) Validate

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

Jump to

Keyboard shortcuts

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