Fix the broken ingress metrics, the namespace is needed in the opts. (#4203)

Signed-off-by: Patrick J McNerthney <pat@mcnerthney.com>
This commit is contained in:
Patrick J. McNerthney authored and GitHub committed 2021-11-01 11:21:13 +03:00
1 parent f73ec81cf3
commit 6294343b79
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ export class IngressApi extends KubeApi<Ingress> {
}
export function getMetricsForIngress(ingress: string, namespace: string): Promise<IIngressMetrics> {
const opts = { category: "ingress", ingress };
const opts = { category: "ingress", ingress, namespace };
return metricsApi.getMetrics({
bytesSentSuccess: opts,