Add NoOpScaleUpStatusProcessor
This will be useful for the purposes of testing.
This commit is contained in:
parent
b8ae6df5d3
commit
e9d2afda21
|
|
@ -33,12 +33,19 @@ type ScaleUpStatus struct {
|
|||
PodsAwaitEvaluation []*apiv1.Pod
|
||||
}
|
||||
|
||||
// ScaleUpStatusProcessor processes the state of the cluster after a scale-up.
|
||||
// ScaleUpStatusProcessor processes the status of the cluster after a scale-up.
|
||||
type ScaleUpStatusProcessor interface {
|
||||
Process(context *context.AutoscalingContext, state *ScaleUpStatus)
|
||||
Process(context *context.AutoscalingContext, status *ScaleUpStatus)
|
||||
}
|
||||
|
||||
// NewDefaultScaleUpStatusProcessor creates a default instance of ScaleUpStatusProcessor.
|
||||
func NewDefaultScaleUpStatusProcessor() ScaleUpStatusProcessor {
|
||||
return &EventingScaleUpStatusProcessor{}
|
||||
}
|
||||
|
||||
// NoOpScaleUpStatusProcessor is a ScaleUpStatusProcessor implementations useful for testing.
|
||||
type NoOpScaleUpStatusProcessor struct{}
|
||||
|
||||
// Process processes the status of the cluster after a scale-up.
|
||||
func (p *NoOpScaleUpStatusProcessor) Process(context *context.AutoscalingContext, status *ScaleUpStatus) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue