options

package
v1.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubeClientOptions kube.ClientOptions
	CertFile          string
	KeyFile           string
	CaCertFile        string
	CertData          []byte
	KeyData           []byte
	CaCertData        []byte
	ListenAddress     string
	Port              int
	PrintVersion      bool
	WebhookName       string
	WebhookNamespace  string
	SchedulerNames    []string
	WebhookURL        string
	ConfigPath        string
	EnabledAdmission  string
	IgnoredNamespaces string

	EnableHealthz bool
	// HealthzBindAddress is the IP address and port for the health check server to serve on
	// defaulting to :11251
	HealthzBindAddress string
}

Config admission-controller server config.

func NewConfig

func NewConfig() *Config

NewConfig create new config.

func (*Config) AddFlags

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

AddFlags add flags.

func (*Config) CheckPortOrDie

func (c *Config) CheckPortOrDie() error

CheckPortOrDie check valid port range.

func (*Config) ParseCAFiles added in v1.5.0

func (c *Config) ParseCAFiles(decryptFunc DecryptFunc) error

ParseCAFiles parse ca file by decryptFunc

type DecryptFunc added in v1.5.0

type DecryptFunc func(c *Config) error

Jump to

Keyboard shortcuts

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