setup

package
v1.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevModeConfigKey     = "dev-mode"
	DevModeConfigDefault = true
	LogLevelConfigKey    = "log-level"
)
View Source
const (
	ControllerDisabledSuffixConfigKey = "controller-disabled"
)
View Source
const (
	WebhookDisabledSuffixConfigKey = "webhook-disabled"
)

Variables

This section is empty.

Functions

func ControllersWithManager

func ControllersWithManager(ctx context.Context, mgr manager.Manager) error

func FromLogrusToZapLevel

func FromLogrusToZapLevel(level logrus.Level) zapcore.Level

func Logger

func Logger(ctx context.Context, name, version string) error

func WebhooksWithManager

func WebhooksWithManager(ctx context.Context, mgr manager.Manager) error

func WithManager

func WithManager(ctx context.Context, mgr manager.Manager) error

Types

type Controller

type Controller interface {
	WithManager(context.Context, manager.Manager) (commonCtrl.Reconciler, error)
	IsEnabled(context.Context) (bool, error)
}

type WebHook

type WebHook interface {
	SetupWebhookWithManager(context.Context, manager.Manager) error
}

Jump to

Keyboard shortcuts

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