The services tab of the cluster UI does not filter for the namespace
Summary
The services tab of the cluster UI does not filter for the namespace
Steps to reproduce
- Set up an agent
- Set up an environment with the agent, pick a namespace
- Check the "Services" tab of the cluster UI
Example Project
https://gitlab.com/gitlab-org/ci-cd/deploy-stage/demos/podtato-head-delivery/-/environments
What is the current bug behavior?
All the services across the cluster are returned
What is the expected correct behavior?
Only the services from the selected namespace are returned
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Update the k8sServices
resolver to expect a namespace similar to how the k8sPods
resolver handles it. Update the corresponding query input and create a test for it.
Edited by Anna Vovchenko