refactor name of api method

This commit is contained in:
Moustafa Baiou
2020-11-09 01:45:54 -05:00
committed by moustafab
parent 1166fcc36e
commit a2f791836e
3 changed files with 3 additions and 3 deletions
@@ -50,7 +50,7 @@ export class KubernetesBackendClient implements KubernetesApi {
return await response.json();
}
async getObjectsByLabelSelector(
async getObjectsByEntity(
requestBody: KubernetesRequestBody,
): Promise<ObjectsByEntityResponse> {
return await this.getRequired(
+1 -1
View File
@@ -27,7 +27,7 @@ export const kubernetesApiRef = createApiRef<KubernetesApi>({
});
export interface KubernetesApi {
getObjectsByLabelSelector(
getObjectsByEntity(
requestBody: KubernetesRequestBody,
): Promise<ObjectsByEntityResponse>;
}
@@ -133,7 +133,7 @@ export const KubernetesContent = ({ entity }: KubernetesContentProps) => {
// TODO: Add validation on contents/format of requestBody
kubernetesApi
.getObjectsByLabelSelector(requestBody)
.getObjectsByEntity(requestBody)
.then(result => {
setKubernetesObjects(result);
})