utils

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Component is volcano agent component name
	Component = "volcano-agent"
)

Variables

View Source
var (
	SysFsPathEnv     = "SYS_FS_PATH"
	DefaultSysFsPath = "/sys/fs"
)

Functions

func GetCPUManagerPolicy

func GetCPUManagerPolicy() string

func GetEvictionVersion

func GetEvictionVersion(kubeClient clientset.Interface) (string, error)

func SetEvictionWatermark

func SetEvictionWatermark(cfg *api.ColocationConfig, lowWatermark apis.Watermark, highWatermark apis.Watermark)

SetEvictionWatermark set eviction watermark.

func UpdateFile

func UpdateFile(path string, content []byte) error

func UpdatePodCgroup

func UpdatePodCgroup(cgroupFile string, content []byte) error

Types

type OSRelease

type OSRelease struct {
	Name      string
	Version   string
	ID        string
	VersionID string
}

func GetOSReleaseFromFile

func GetOSReleaseFromFile(releaseFile string) (*OSRelease, error)

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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