multikueue

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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

func SetupIndexer(ctx context.Context, indexer client.FieldIndexer, configNamespace string) error

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.

func (*ACReconciler) Reconcile

func (a *ACReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

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 Option added in v0.10.0

type Option func(*options)

func WithClock added in v0.10.0

func WithClock(_ testing.TB, c clock.Clock) Option

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
}

Jump to

Keyboard shortcuts

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