rootcmd

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rootcmd implements the cobra.Command that manages the controller manager lifecycle.

Index

Constants

View Source
const (
	// DiagnosticConfigBufferDepth is the size of the channel buffer for receiving diagnostic
	// config dumps from the proxy sync loop. The chosen size is essentially arbitrary: we don't
	// expect that the receive end will get backlogged (it only assigns the value to a local
	// variable) but do want a small amount of leeway to account for goroutine scheduling, so it
	// is not zero.
	DiagnosticConfigBufferDepth = 3
)

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context)

Execute is the entry point to the controller manager.

func Run

func Run(ctx context.Context, c *manager.Config) error

func StartAdmissionServer

func StartAdmissionServer(ctx context.Context, c *manager.Config) error

func StartDiagnosticsServer

func StartDiagnosticsServer(ctx context.Context, port int, c *manager.Config) (diagnostics.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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