mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
commit
0d4924e371
@ -80,7 +80,7 @@ func mustSetupScheduler() (util.ShutdownFunc, coreinformers.PodInformer, clients
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns the list of scheduled pods in the specified namespaces.
|
// Returns the list of scheduled pods in the specified namespaces.
|
||||||
// Note that no namespces specified matches all namespaces.
|
// Note that no namespaces specified matches all namespaces.
|
||||||
func getScheduledPods(podInformer coreinformers.PodInformer, namespaces ...string) ([]*v1.Pod, error) {
|
func getScheduledPods(podInformer coreinformers.PodInformer, namespaces ...string) ([]*v1.Pod, error) {
|
||||||
pods, err := podInformer.Lister().List(labels.Everything())
|
pods, err := podInformer.Lister().List(labels.Everything())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user