clientutil

package
v0.0.0-...-811cdb2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeSystemPodsRequests

func GetKubeSystemPodsRequests(ctx context.Context, clientset *kubernetes.Clientset) (corev1.ResourceList, error)

func ListAllNodes

func ListAllNodes(ctx context.Context, clientSet *kubernetes.Clientset) ([]corev1.Node, error)

func ListAllNodesWithPageSize

func ListAllNodesWithPageSize(ctx context.Context, clientSet *kubernetes.Clientset, pageSize int) ([]corev1.Node, error)

func ListAllPods

func ListAllPods(ctx context.Context, clientSet *kubernetes.Clientset) ([]corev1.Pod, error)

func ListAllPodsWithPageSize

func ListAllPodsWithPageSize(ctx context.Context, clientSet *kubernetes.Clientset, pageSize int) ([]corev1.Pod, error)

func NilOr

func NilOr[T any](val *T, defaultVal T) T

func SumResourceRequest

func SumResourceRequest(podspecs []corev1.PodSpec) corev1.ResourceList

Types

This section is empty.

Jump to

Keyboard shortcuts

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