mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
task reconciliation must look at NamespaceAll, not NamespaceDefault
This commit is contained in:
parent
473c51593a
commit
d1589b9571
@ -689,8 +689,7 @@ func (k *KubernetesScheduler) makeTaskRegistryReconciler() ReconcilerAction {
|
||||
// tasks identified by annotations in the Kubernetes pod registry.
|
||||
func (k *KubernetesScheduler) makePodRegistryReconciler() ReconcilerAction {
|
||||
return ReconcilerAction(func(drv bindings.SchedulerDriver, cancel <-chan struct{}) <-chan error {
|
||||
ctx := api.NewDefaultContext()
|
||||
podList, err := k.client.Pods(api.NamespaceValue(ctx)).List(labels.Everything(), fields.Everything())
|
||||
podList, err := k.client.Pods(api.NamespaceAll).List(labels.Everything(), fields.Everything())
|
||||
if err != nil {
|
||||
return proc.ErrorChanf("failed to reconcile pod registry: %v", err)
|
||||
}
|
||||
@ -920,8 +919,7 @@ requestLoop:
|
||||
}
|
||||
|
||||
func (ks *KubernetesScheduler) recoverTasks() error {
|
||||
ctx := api.NewDefaultContext()
|
||||
podList, err := ks.client.Pods(api.NamespaceValue(ctx)).List(labels.Everything(), fields.Everything())
|
||||
podList, err := ks.client.Pods(api.NamespaceAll).List(labels.Everything(), fields.Everything())
|
||||
if err != nil {
|
||||
log.V(1).Infof("failed to recover pod registry, madness may ensue: %v", err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user