Documentation ¶
Index ¶
- type Controller
- func (c *Controller) CollectMetrics(ch chan<- prometheus.Metric)
- func (c *Controller) Initialize(ctx context.Context, seedClient kubernetes.Interface) error
- func (c *Controller) Run(ctx context.Context, controllerInstallationWorkers, shootStateWorkers int)
- func (c *Controller) RunningWorkers() int
- func (c *Controller) Stop()
- type ShootStateControl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller watches the extension resources and has several control loops.
func NewController ¶
func NewController(gardenClient, seedClient kubernetes.Interface, seedName string, log *logrus.Logger, recorder record.EventRecorder) *Controller
NewController creates new controller that syncs extensions states to ShootState
func (*Controller) CollectMetrics ¶
func (c *Controller) CollectMetrics(ch chan<- prometheus.Metric)
CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface
func (*Controller) Initialize ¶
func (c *Controller) Initialize(ctx context.Context, seedClient kubernetes.Interface) error
Initialize sets up all necessary dependencies to run this controller. This function must be called before Run is executed.
func (*Controller) Run ¶
func (c *Controller) Run(ctx context.Context, controllerInstallationWorkers, shootStateWorkers int)
Run creates workers that reconciles extension resources. Initialize must be called before running the controller.
func (*Controller) RunningWorkers ¶
func (c *Controller) RunningWorkers() int
RunningWorkers returns the number of running workers.
type ShootStateControl ¶
type ShootStateControl struct {
// contains filtered or unexported fields
}
ShootStateControl is used to update data about extensions and any resources required by them in the ShootState.
func NewShootStateControl ¶
func NewShootStateControl(k8sGardenClient, seedClient kubernetes.Interface, log *logrus.Logger, recorder record.EventRecorder) *ShootStateControl
NewShootStateControl creates a new instance of ShootStateControl.
func (*ShootStateControl) CreateShootStateSyncReconcileFunc ¶
func (s *ShootStateControl) CreateShootStateSyncReconcileFunc(kind string, objectCreator func() client.Object) reconcile.Func
CreateShootStateSyncReconcileFunc creates a function which can be used by the reconciliation loop to sync the extension state and its resources to the ShootState