app

package
v0.0.0-...-1518e46 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package app implements a Server object for running the autoscaler.

Package app implements a Server object for running the autoscaler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoscalerCommand

func NewAutoscalerCommand() *cobra.Command

NewAutoscalerCommand creates a *cobra.Command object with default parameters

func Run

Run runs the pixiu-autoscaler process. This should never exit.

func StartHealthzServer

func StartHealthzServer(healthzHost string, healthzPort string)

func WaitForAPIServer

func WaitForAPIServer(client clientset.Interface, timeout time.Duration) error

WaitForAPIServer waits for the API Server's /healthz endpoint to report "ok" with timeout.

Types

type ControllerContext

type ControllerContext struct {

	// ClientBuilder will provide a client for this controller to use
	ClientBuilder controller.ControllerClientBuilder

	// InformerFactory gives access to informers for the controller.
	InformerFactory informers.SharedInformerFactory

	ObjectOrMetadataInformerFactory controller.InformerFactory

	// Stop is the stop channel
	Stop <-chan struct{}

	// ResyncPeriod generates a duration each time it is invoked; this is so that
	// multiple controllers don't get into lock-step and all hammer the apiserver
	// with list requests simultaneously.
	ResyncPeriod func() time.Duration
}

ControllerContext defines the context obj for pixiu-autoscaler

func CreateControllerContext

func CreateControllerContext(rootClientBuilder, clientBuilder controller.ControllerClientBuilder, stop <-chan struct{}) (ControllerContext, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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