options

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication added in v0.9.0

type Authentication struct {
	BuiltInOptions *kubeoptions.BuiltInAuthenticationOptions
	PassOnGroups   []string
	DropGroups     []string
}

Authentication wraps BuiltInAuthenticationOptions so we can minimize the dependencies on apiserver auth machinery, specifically by overriding the ApplyTo so we can remove those config dependencies not relevant to the subset of auth methods we enable in the proxy.

func NewAuthentication added in v0.9.0

func NewAuthentication() *Authentication

NewAuthentication creates a default Authentication.

func (*Authentication) AddFlags added in v0.9.0

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

AddFlags delegates to ClientCertAuthenticationOptions.

func (*Authentication) AdditionalAuthEnabled added in v0.10.0

func (c *Authentication) AdditionalAuthEnabled() bool

When configured to enable auth other than ClientCert, this returns true.

func (*Authentication) ApplyTo added in v0.9.0

func (c *Authentication) ApplyTo(authenticationInfo *genericapiserver.AuthenticationInfo, servingInfo *genericapiserver.SecureServingInfo, rootShardConfig *rest.Config) error

func (*Authentication) Validate added in v0.9.0

func (c *Authentication) Validate() []error

type Options

type Options struct {
	SecureServing    apiserveroptions.SecureServingOptionsWithLoopback
	Authentication   Authentication
	MappingFile      string
	RootDirectory    string
	RootKubeconfig   string
	ShardsKubeconfig string
	ProfilerAddress  string
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

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

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Validate

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

Jump to

Keyboard shortcuts

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