Documentation ¶
Index ¶
- func GetKubeSystemPodsRequests(ctx context.Context, clientset *kubernetes.Clientset) (corev1.ResourceList, error)
- func ListAllNodes(ctx context.Context, clientSet *kubernetes.Clientset) ([]corev1.Node, error)
- func ListAllNodesWithPageSize(ctx context.Context, clientSet *kubernetes.Clientset, pageSize int) ([]corev1.Node, error)
- func ListAllPods(ctx context.Context, clientSet *kubernetes.Clientset) ([]corev1.Pod, error)
- func ListAllPodsWithPageSize(ctx context.Context, clientSet *kubernetes.Clientset, pageSize int) ([]corev1.Pod, error)
- func NilOr[T any](val *T, defaultVal T) T
- func SumResourceRequest(podspecs []corev1.PodSpec) corev1.ResourceList
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 ListAllPods ¶
func ListAllPodsWithPageSize ¶
func SumResourceRequest ¶
func SumResourceRequest(podspecs []corev1.PodSpec) corev1.ResourceList
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.