setup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 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 added in v1.0.1

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)
}

func NewController added in v1.0.1

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