Documentation ¶
Index ¶
Constants ¶
const ( SingleInstanceReason = "MultiKueue" SingleInstanceMessage = "only one multikueue managed admission check can be used in one ClusterQueue" FlavorIndependentCheckReason = "MultiKueue" FlavorIndependentCheckMessage = "admission check cannot be applied at ResourceFlavor level" )
const ( UsingKubeConfigs = "spec.kubeconfigs" UsingMultiKueueClusters = "spec.multiKueueClusters" AdmissionCheckUsingConfigKey = "spec.multiKueueConfig" )
Variables ¶
This section is empty.
Functions ¶
func SetupControllers ¶
func SetupControllers(mgr ctrl.Manager, namespace string, opts ...SetupOption) error
func SetupIndexer ¶
Types ¶
type ACReconciler ¶
type ACReconciler struct {
// contains filtered or unexported fields
}
ACReconciler implements the reconciler for all the admission checks controlled by multikueue. Its main task being to maintain the active state of the admission checks based on the heath of its referenced MultiKueueClusters.
type KubeConfigFSWatcher ¶ added in v0.7.0
type KubeConfigFSWatcher struct {
// contains filtered or unexported fields
}
func (*KubeConfigFSWatcher) AddOrUpdate ¶ added in v0.7.0
func (w *KubeConfigFSWatcher) AddOrUpdate(cluster, path string) error
func (*KubeConfigFSWatcher) Remove ¶ added in v0.7.0
func (w *KubeConfigFSWatcher) Remove(cluster string) error
func (*KubeConfigFSWatcher) Start ¶ added in v0.7.0
func (w *KubeConfigFSWatcher) Start(ctx context.Context) error
func (*KubeConfigFSWatcher) Started ¶ added in v0.7.0
func (w *KubeConfigFSWatcher) Started() bool
type SetupOption ¶
type SetupOption func(o *SetupOptions)
func WithAdapters ¶ added in v0.9.2
func WithAdapters(adapters map[string]jobframework.MultiKueueAdapter) SetupOption
WithAdapter - sets or updates the adapter of the MultiKueue adapters.
func WithEventsBatchPeriod ¶ added in v0.8.0
func WithEventsBatchPeriod(d time.Duration) SetupOption
WithEventsBatchPeriod - sets the delay used when adding remote triggered events to the workload's reconcile queue.
func WithGCInterval ¶
func WithGCInterval(i time.Duration) SetupOption
WithGCInterval - sets the interval between two garbage collection runs. If 0 the garbage collection is disabled.
func WithOrigin ¶
func WithOrigin(origin string) SetupOption
WithOrigin - sets the multikueue-origin label value used by this manager
func WithWorkerLostTimeout ¶ added in v0.7.0
func WithWorkerLostTimeout(d time.Duration) SetupOption
WithWorkerLostTimeout - sets the time for which the multikueue admission check is kept in Ready state after the connection to the admitting worker cluster is lost.
type SetupOptions ¶
type SetupOptions struct {
// contains filtered or unexported fields
}