Documentation
¶
Index ¶
- func RouterNewer(rg *v1alpha1.RouterGroup, rev string, fg features.Gates) updater.NewFactory[*runtime.Router]
- func TaskService(state common.ObjectState[*v1alpha1.RouterGroup], 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 RouterNewer ¶
func RouterNewer(rg *v1alpha1.RouterGroup, rev string, fg features.Gates) updater.NewFactory[*runtime.Router]
func TaskService ¶
func TaskService(state common.ObjectState[*v1alpha1.RouterGroup], 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 Router when spec of RouterGroup is changed.
Types ¶
type ReconcileContext ¶
type ReconcileContext struct {
// TODO: replace all fields in ReconcileContext by State
State
}
type State ¶
type State interface {
common.ContextObjectNewer[*v1alpha1.RouterGroup]
common.ContextClusterNewer[*v1alpha1.RouterGroup]
common.ContextSliceNewer[*v1alpha1.RouterGroup, *v1alpha1.Router]
common.ObjectState[*v1alpha1.RouterGroup]
common.RevisionStateInitializer[*runtime.RouterGroup]
common.ClusterState
common.InstanceSliceState[*runtime.Router]
common.SliceState[*v1alpha1.Router]
common.RevisionState
common.GroupState[*runtime.RouterGroup]
common.StatusUpdater
common.StatusPersister[*v1alpha1.RouterGroup]
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.