Skip to content

Commit

Permalink
frontend: KubeObject: Use apiName for resource name
Browse files Browse the repository at this point in the history
This change assigns the apiName (rather than the less descriptive
pluralName) when the resource name is missing.

Signed-off-by: Evangelos Skopelitis <[email protected]>
  • Loading branch information
skoeva committed Dec 20, 2024
1 parent b762a52 commit 25834ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/k8s/KubeObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class KubeObject<T extends KubeObjectInterface | KubeEvent = any> {
};

if (!resourceAttrs.resource) {
resourceAttrs['resource'] = this.pluralName;
resourceAttrs['resource'] = this.apiName;
}

// @todo: We should get the API info from the API endpoint.
Expand Down

0 comments on commit 25834ad

Please sign in to comment.