app

package
v1.46.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is a const for the name of this component.
	Name = "gardener-seed-admission-controller"
)

Variables

This section is empty.

Functions

func NewSeedAdmissionControllerCommand added in v1.17.0

func NewSeedAdmissionControllerCommand() *cobra.Command

NewSeedAdmissionControllerCommand creates a new *cobra.Command able to run gardener-seed-admission-controller.

Types

type Options

type Options struct {
	// BindAddress is the address the HTTP server should bind to.
	BindAddress string
	// Port is the port that should be opened by the HTTP server.
	Port int
	// ServerCertDir is the path to server TLS cert and key.
	ServerCertDir string
	// MetricsBindAddress is the TCP address that the controller should bind to
	// for serving prometheus metrics.
	// It can be set to "0" to disable the metrics serving.
	MetricsBindAddress string
	// HealthBindAddress is the TCP address that the controller should bind to for serving health probes.
	HealthBindAddress string
	// EnableProfiling enables profiling via web interface host:port/debug/pprof/.
	EnableProfiling bool
	// EnableContentionProfiling enables lock contention profiling, if
	// enableProfiling is true.
	EnableContentionProfiling bool
}

Options has all the context and parameters needed to run gardener-seed-admission-controller.

func (*Options) AddFlags

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

AddFlags adds gardener-seed-admission-controller's flags to the specified FlagSet.

func (*Options) Run added in v1.17.0

func (o *Options) Run(ctx context.Context) error

Run runs gardener-seed-admission-controller using the specified options.

Jump to

Keyboard shortcuts

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