Documentation
¶
Index ¶
- func HeadlessServiceName(groupName string) string
- func SchedulingNewer(sg *v1alpha1.SchedulingGroup, rev string, _ features.Gates) updater.NewFactory[*runtime.Scheduling]
- func TaskService(state common.ObjectState[*v1alpha1.SchedulingGroup], c client.Client) task.Task
- func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
- type ReconcileContext
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadlessServiceName ¶
func SchedulingNewer ¶
func SchedulingNewer(sg *v1alpha1.SchedulingGroup, rev string, _ features.Gates) updater.NewFactory[*runtime.Scheduling]
func TaskService ¶
func TaskService(state common.ObjectState[*v1alpha1.SchedulingGroup], c client.Client) task.Task
nolint:staticcheck TODO: extract svc to a common task
func TaskUpdater ¶
func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
TaskUpdater is a task to scale or update Scheduling when spec of SchedulingGroup is changed.
Types ¶
type ReconcileContext ¶
type ReconcileContext struct {
State
}
type State ¶
type State interface {
common.ContextObjectNewer[*v1alpha1.SchedulingGroup]
common.ContextClusterNewer[*v1alpha1.SchedulingGroup]
common.ContextSliceNewer[*v1alpha1.SchedulingGroup, *v1alpha1.Scheduling]
common.ObjectState[*v1alpha1.SchedulingGroup]
common.RevisionStateInitializer[*runtime.SchedulingGroup]
common.ClusterState
common.InstanceSliceState[*runtime.Scheduling]
common.SliceState[*v1alpha1.Scheduling]
common.RevisionState
common.GroupState[*runtime.SchedulingGroup]
common.StatusUpdater
common.StatusPersister[*v1alpha1.SchedulingGroup]
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.