Documentation ¶
Index ¶
Constants ¶
View Source
const ( CtrlName = "samsahai-ctrl" DefaultPluginsDir = "plugins" // 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, configCtrl internal.ConfigController, 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 WithDisableLoaders ¶
func WithScheme ¶
type TeamNamespaceStatusOption ¶
type TeamNamespaceStatusOption func(teamComp *s2hv1beta1.Team) (string, s2hv1beta1.TeamConditionType)
Click to show internal directories.
Click to hide internal directories.