// GetKubeletPods retrieves the list of pods on the kubelet. func GetKubeletPods(ctx context.Context, c clientset.Interface, node string) (*v1.PodList, error) { … } // GetKubeletRunningPods retrieves the list of running pods on the kubelet. The pods // includes necessary information (e.g., UID, name, namespace for // pods/containers), but do not contain the full spec. func GetKubeletRunningPods(ctx context.Context, c clientset.Interface, node string) (*v1.PodList, error) { … } func getKubeletPods(ctx context.Context, c clientset.Interface, node, resource string) (*v1.PodList, error) { … }