Documentation ¶
Index ¶
Constants ¶
View Source
const MsgUnschedulable = "Failed to schedule backupbucket"
MsgUnschedulable is the Message for the Event on a BackupBucket that the Scheduler creates in case it cannot schedule the BackupBucket to any Seed
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchedulerController ¶
type SchedulerController struct {
// contains filtered or unexported fields
}
SchedulerController controls Seeds.
func NewGardenerScheduler ¶
func NewGardenerScheduler(ctx context.Context, k8sGardenClient kubernetes.Interface, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory, config *config.SchedulerConfiguration, recorder record.EventRecorder) *SchedulerController
NewGardenerScheduler takes a Kubernetes client for the Garden clusters <k8sGardenClient>, a <sharedInformerFactory>, a struct containing the scheduler configuration and a <recorder> for event recording. It creates a new NewGardenerScheduler.
func (*SchedulerController) CollectMetrics ¶
func (c *SchedulerController) CollectMetrics(ch chan<- prometheus.Metric)
CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface
func (*SchedulerController) Run ¶
func (c *SchedulerController) Run(ctx context.Context, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory)
Run runs the SchedulerController until the given stop channel can be read from.
func (*SchedulerController) RunningWorkers ¶
func (c *SchedulerController) RunningWorkers() int
RunningWorkers returns the number of running workers.
Click to show internal directories.
Click to hide internal directories.