From 53a1748ca39f1b7e90e82f0e568a4832343b1039 Mon Sep 17 00:00:00 2001 From: Evangelos Skopelitis Date: Mon, 16 Dec 2024 17:28:34 -0500 Subject: [PATCH] frontend: KubeObject: Use apiName for resource name This change assigns the apiName (rather than the less descriptive pluralName) when the resource name is missing. Signed-off-by: Evangelos Skopelitis --- frontend/src/lib/k8s/KubeObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/k8s/KubeObject.ts b/frontend/src/lib/k8s/KubeObject.ts index 383870b6cb..38d7f857cd 100644 --- a/frontend/src/lib/k8s/KubeObject.ts +++ b/frontend/src/lib/k8s/KubeObject.ts @@ -508,7 +508,7 @@ export class KubeObject { }; if (!resourceAttrs.resource) { - resourceAttrs['resource'] = this.pluralName; + resourceAttrs['resource'] = this.apiName; } // @todo: We should get the API info from the API endpoint.