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