From 6294343b791b3f4b1480a08a2bd9465d312ba797 Mon Sep 17 00:00:00 2001 From: "Patrick J. McNerthney" Date: Sun, 31 Oct 2021 22:21:13 -1000 Subject: [PATCH] Fix the broken ingress metrics, the namespace is needed in the opts. (#4203) Signed-off-by: Patrick J McNerthney --- src/common/k8s-api/endpoints/ingress.api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/k8s-api/endpoints/ingress.api.ts b/src/common/k8s-api/endpoints/ingress.api.ts index 5a1a404f20..cf607fa144 100644 --- a/src/common/k8s-api/endpoints/ingress.api.ts +++ b/src/common/k8s-api/endpoints/ingress.api.ts @@ -30,7 +30,7 @@ export class IngressApi extends KubeApi { } export function getMetricsForIngress(ingress: string, namespace: string): Promise { - const opts = { category: "ingress", ingress }; + const opts = { category: "ingress", ingress, namespace }; return metricsApi.getMetrics({ bytesSentSuccess: opts,