Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.9] Bug 2020000: Fix resource metrics 403 errors for project admin users #10396

Commits on Nov 3, 2021

  1. Bug 2015806: Fix resource metrics 403 errors for project admin users

    - Add namespace prop to QueryBrowser in ResourceMetricsDashboardCard component, which causes all queries to be run as namespace-scoped thanos tenancy requests.
    - Remove namespace from all PromQL queries defined in `frontend/packages/console-shared/src/promql/resource-metrics.ts`. These queries will always be run as namespace-scoped tenancy endpoint requests, so including the namespace in the PromQL query is redundant.
    - Adjust dev console top workload metrics "Recieve bandwidth" PromQL query to use `namespace=` rather than `namespace=~`. This was causing a `400: Bad Request` on tenancy requests witn `namespace` in the URL query parameters.
    TheRealJon authored and openshift-cherrypick-robot committed Nov 3, 2021
    Configuration menu
    Copy the full SHA
    3fe33a4 View commit details
    Browse the repository at this point in the history