samsahai

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtrlName = "samsahai-ctrl"

	DefaultPluginsDir  = "plugins"
	PromotedBySamsahai = "samsahai"

	// MaxConcurrentProcess represents no. of concurrent process in internal process
	MaxConcurrentProcess = 1

	// MaxReconcileConcurrent represents no. of concurrent process in operator controller
	MaxReconcileConcurrent = 1

	DefaultWorkQueueBaseDelay = 5 * time.Millisecond
	DefaultWorkQueueMaxDelay  = 60 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(
	mgr manager.Manager,
	ns string,
	configs internal.SamsahaiConfig,
	options ...Option,
) internal.SamsahaiController

New returns Samsahai controller and assign itself to Manager for doing the reconcile when `Team` CRD got changed.

Types

type Option

type Option func(*controller)

func WithClient

func WithClient(client client.Client) Option

func WithConfigCtrl added in v1.1.5

func WithConfigCtrl(configCtrl internal.ConfigController) Option

func WithDisableLoaders

func WithDisableLoaders(checkers, plugins, reporters bool) Option

func WithScheme

func WithScheme(scheme *runtime.Scheme) Option

type TeamNamespaceStatusOption

type TeamNamespaceStatusOption func(teamComp *s2hv1.Team) (string, corev1.ResourceList, s2hv1.TeamConditionType)

Directories

Path Synopsis
checker

Jump to

Keyboard shortcuts

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