Page MenuHomePhabricator

Container Logs: retrieve only pods for environment
Open, Needs TriagePublic2 Estimated Story Points

Description

Currently, when retrieving the logs for an environment, we are first getting all the pods in the default namespace and then filter manually to extract the logs from the relevant ones: https://gitlab.wikimedia.org/repos/qte/catalyst/catalyst-api/-/blob/main/kubernetes/client.go?ref_type=heads#L83

The scope of this story is to change the behavior so we request only the pods of the particular environment from the cluster. There's a good chance this is something than can be achieved easily using the Helm client.

Details

TitleReferenceAuthorSource BranchDest Branch
Draft: Testing error generation for envvars-apirepos/cloud/toolforge/envvars-api!36sstefanovaenvvars-api-T366697main
Draft: Testing error generation for envvars-apirepos/cloud/toolforge/envvars-api!35ebomaniT366697main
Customize query in GitLab

Event Timeline

SDunlap set the point value for this task to 2.
SDunlap moved this task from Backlog to Acersecomicke 🐑 on the Catalyst board.
SDunlap edited projects, added Catalyst (Acersecomicke 🐑); removed Catalyst.

Note: Please ignore the above CodeReviewBot links. They are a result of mistakenly marking the "Bug" in commit message and are actually linked to this task for toolforge.

Will sadly have to un-assign as it seems I cannot finish this before my mandatory off-boarding time.

EBomani subscribed.