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 WithConfigCtrl ¶ added in v1.1.5
func WithConfigCtrl(configCtrl internal.ConfigController) Option
func WithDisableLoaders ¶
func WithScheme ¶
type TeamNamespaceStatusOption ¶
type TeamNamespaceStatusOption func(teamComp *s2hv1beta1.Team) (string, corev1.ResourceList, s2hv1beta1.TeamConditionType)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.