cleaning up
parent
b67db8c2c8
commit
4c9baecda6
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/derailed/k9s/internal"
|
||||
"github.com/derailed/k9s/internal/client"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
|
@ -45,11 +46,11 @@ func (j *Job) List(ctx context.Context, ns string) ([]runtime.Object, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
for _, r := range j.ObjectMeta.OwnerReferences {
|
||||
if r.Name == n {
|
||||
ll = append(ll, o)
|
||||
}
|
||||
for _, r := range j.ObjectMeta.OwnerReferences {
|
||||
if r.Name == n {
|
||||
ll = append(ll, o)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ll, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue