 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package scalex provides primitives for the scaling logic
Index ¶
Constants ¶
      View Source
      
  
const ( ReasonScaleDeployment = "ScaleSuccess" ReasonFailedScaleDeployment = "ScaleFail" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scaler ¶
type Scaler struct {
	// contains filtered or unexported fields
}
    Scaler hold interval and client for scaling logic
func (Scaler) ExecuteScale ¶
func (s Scaler) ExecuteScale(ctx context.Context, scale *oldmonkv1.QueueAutoScaler) (*appsv1.Deployment, int32, error)
ExecuteScale will check the scaling policy and the scale according to the logic It returns the updated deployment,delta and error
func (Scaler) Worker ¶
func (s Scaler) Worker(jobs chan oldmonkv1.QueueAutoScaler)
 Click to show internal directories. 
   Click to hide internal directories.