appclass

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationOfflineKey   = types.PodAnnotationPrefix + "app-class"
	AnnotationOfflineValue = "greedy"
)
View Source
const (
	// oneline pod
	AppClassOnline = "online"
	// offline pod
	AppClassOffline = "offline"
	// system pod
	AppClassSystem  = "system"
	AppClassUnknown = "unknown"
	// such as /kubepods/burstable
	AppClassAggregatedCgroup = "aggregatedcgroup"
)

Variables

This section is empty.

Functions

func IsOffline

func IsOffline(pod *v1.Pod) bool

IsOffline return if a pod is offline pod if offline is nodemanager, should be added the annotation key with greedy

func PodCgroupDirs

func PodCgroupDirs(pod *v1.Pod) []string

PodCgroupDirs get pod cgroup path

Types

type AppClass

type AppClass string

AppClass defines

func GetAppClass

func GetAppClass(pod *v1.Pod) AppClass

GetAppClass return app class of this pod

type QOSList

type QOSList map[v1.ResourceName]v1.PodQOSClass

QOSList is a set of (resource name, QoS class) pairs.

Jump to

Keyboard shortcuts

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