Skip to content

Commit

Permalink
fix events jank
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Oct 29, 2023
1 parent ae0ddd4 commit b4492c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions services/deployments.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,16 @@ module.exports = {
const query = {
kind: 'Event',
'metadata.namespace': namespace.name,
'metadata.involvedObject.uid': deployment.uid,

}

return ctx.call('v1.kube.find', query);
return ctx.call('v1.kube.find', query)
.then((res) => {
// filter events by deployment
return res.filter((event) => {
return event.involvedObject.name.includes(deployment.name);
});
});
}
},

Expand Down

0 comments on commit b4492c2

Please sign in to comment.