service

package
v1.3.0-alpha.3....-c20dcfc Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: Apache-2.0 Imports: 70 Imported by: 0

Documentation

Overview

Package service contains the cmd/k8sm-scheduler glue code

Index

Constants

View Source
const (
	SCHEDULER_SERVICE_NAME = "k8sm-scheduler"
)

Variables

This section is empty.

Functions

func StaticPodValidator

func StaticPodValidator(
	defaultContainerCPULimit resources.CPUShares,
	defaultContainerMemLimit resources.MegaBytes,
	accumCPU, accumMem *float64,
) podutil.FilterFunc

StaticPodValidator discards a pod if we can't calculate resource limits for it.

Types

type SchedulerServer

type SchedulerServer struct {
	// contains filtered or unexported fields
}

func NewSchedulerServer

func NewSchedulerServer() *SchedulerServer

NewSchedulerServer creates a new SchedulerServer with default parameters

func (*SchedulerServer) AddHyperkubeFlags

func (s *SchedulerServer) AddHyperkubeFlags(fs *pflag.FlagSet)

func (*SchedulerServer) AddStandaloneFlags

func (s *SchedulerServer) AddStandaloneFlags(fs *pflag.FlagSet)

func (*SchedulerServer) Run

func (s *SchedulerServer) Run(hks hyperkube.Interface, _ []string) error

Jump to

Keyboard shortcuts

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