cgroup

package
v0.0.0-...-163236c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVersion2

func IsVersion2(ctx context.Context, c client.Client) (bool, error)

func PidParser

func PidParser(lines []byte) (string, error)

PidParser parsing /proc/pid/cgroup

Types

type ControllersGetter

type ControllersGetter interface {
	// Pod is for getting controller config at the pod level
	Pod(ctx context.Context, pod *corev1.Pod, controllerConfig interface{}) error
	// Container is for getting controller config at the container level
	Container(ctx context.Context, pod *corev1.Pod, containerName string, controllerConfig interface{}) error
	// Child is for getting controller config at the container's child level
	Child(ctx context.Context, pod *corev1.Pod, containerName, childName string, controllerConfig interface{}) error
}

func BuildGetter

func BuildGetter(ctx context.Context, c client.Client, k8sClient *kubernetes.Clientset) (ControllersGetter, error)

BuildGetter return a cgroup information getter that complies with the cgroup version that is currently used by the nodes on the cluster

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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