User can select every pod in Kubernetes pod health dashboard

Summary

A customer reported that they can see every pod in the drop down when viewing the Kubernetes pod health dashboard.

Steps to reproduce

  1. Connect a Kubernetes cluster in your instance.
  2. Install Prometheus as GitLab Managed App.
  3. Deploy using Auto Devops.
  4. Go to the Project's Kubernetes pod health dashboard.
  5. Click on the dropdown for the pod name.

What is the current bug behavior?

You can see every pod in the cluster.

What is the expected correct behavior?

You can see only the pods related to the deployment.

Relevant logs and/or screenshots

Screen_Shot_2020-08-25_at_10.26.40_AM

Output of checks

This is tested on 13.3.0.

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Customer information