Skip to content

Commit 176c0c7

Browse files
committed
remove aliases
1 parent d7bd6e3 commit 176c0c7

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

packages/kubernetesjs/scripts/codegen.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const code = generateOpenApiClient(
1919
...options,
2020
npmApiClient: './client',
2121
operationNamingStrategy: {
22-
aliases: {
23-
listCoreV1PodForAllNamespaces: 'getPods',
24-
},
25-
renameMap: {
26-
listCoreV1PodForAllNamespaces: 'listPods',
27-
},
22+
// aliases: {
23+
// listCoreV1PodForAllNamespaces: 'getPods',
24+
// },
25+
// renameMap: {
26+
// listCoreV1PodForAllNamespaces: 'listPods',
27+
// },
2828
},
2929
paths: {
3030
exclude: ['*flowschema*', '*v1beta1*', '*v2beta1*'],

packages/kubernetesjs/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14495,11 +14495,7 @@ export class KubernetesClient extends APIClient {
1449514495
const path = `/api/v1/persistentvolumes/${params.path.name}/status`;
1449614496
return await this.patch<PersistentVolume>(path, params.query, params.body, opts);
1449714497
}
14498-
async getPods(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList> {
14499-
const path = `/api/v1/pods`;
14500-
return await this.get<PodList>(path, null, null, opts);
14501-
}
14502-
async listPods(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList> {
14498+
async listCoreV1PodForAllNamespaces(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList> {
1450314499
const path = `/api/v1/pods`;
1450414500
return await this.get<PodList>(path, null, null, opts);
1450514501
}

packages/react/scripts/codegen.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const openApiOptions = {
1818
...options,
1919
npmApiClient: './client',
2020
operationNamingStrategy: {
21-
aliases: {
22-
listCoreV1PodForAllNamespaces: 'getPods',
23-
},
24-
renameMap: {
25-
listCoreV1PodForAllNamespaces: 'listPods',
26-
},
21+
// aliases: {
22+
// listCoreV1PodForAllNamespaces: 'getPods',
23+
// },
24+
// renameMap: {
25+
// listCoreV1PodForAllNamespaces: 'listPods',
26+
// },
2727
},
2828
paths: {
2929
exclude: ['*flowschema*', '*v1beta1*', '*v2beta1*'],

packages/react/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,12 +2650,12 @@ export function usePatchCoreV1PersistentVolumeStatus() {
26502650
}
26512651
});
26522652
}
2653-
export function useListPodsQuery(params: ListCoreV1PodForAllNamespacesRequest) {
2653+
export function useListCoreV1PodForAllNamespacesQuery(params: ListCoreV1PodForAllNamespacesRequest) {
26542654
const client = useKubernetes().client;
26552655
return useQuery<PodList, Error>({
26562656
queryKey: [...API_V1_PODS_KEY],
26572657
queryFn: async () => {
2658-
return await client.listPods(params);
2658+
return await client.listCoreV1PodForAllNamespaces(params);
26592659
},
26602660
enabled: true
26612661
});

0 commit comments

Comments
 (0)