service

package
v1.2.0-alpha.5....-c8f1019 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: Apache-2.0 Imports: 62 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 resource.CPUShares,
	defaultContainerMemLimit resource.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