Skip to content

Commit f3a9ef4

Browse files
committed
fix(download-abi): update request parameter to _continue for listNamespacedConfigMap
- Changed the `continue` parameter to `_continue` in the request object for the `listNamespacedConfigMap` method to align with the updated KubernetesClient interface. - Updated the test suite for the `download-abi` command to reflect this change and ensure proper handling of pagination tokens.
1 parent a3bb31a commit f3a9ef4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/cli/commands/download-abi/download-abi.command.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const createContext = (
3939
listNamespacedConfigMap: (request: {
4040
namespace: string;
4141
limit?: number;
42-
continue?: string;
42+
_continue?: string;
4343
}) => {
44-
if (request.continue) {
44+
if (request._continue) {
4545
return Promise.resolve({ body: { items: [], metadata: {} } });
4646
}
4747
return Promise.resolve({
@@ -65,10 +65,10 @@ const createPaginatedContext = (
6565
listNamespacedConfigMap: (request: {
6666
namespace: string;
6767
limit?: number;
68-
continue?: string;
68+
_continue?: string;
6969
}) => {
7070
const expectedToken = tokens[callIndex];
71-
const providedToken = request.continue ?? undefined;
71+
const providedToken = request._continue ?? undefined;
7272
if (providedToken !== expectedToken) {
7373
throw new Error(
7474
`Unexpected continue token: expected ${expectedToken}, received ${providedToken}`

src/cli/commands/download-abi/download-abi.command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ const fetchAbiConfigMaps = async (
135135
const request: {
136136
namespace: string;
137137
limit: number;
138-
continue?: string;
138+
_continue?: string;
139139
} = {
140140
namespace: context.namespace,
141141
limit: PAGE_SIZE,
142142
};
143143
if (continueToken) {
144-
request.continue = continueToken;
144+
request._continue = continueToken;
145145
}
146146

147147
const response = await context.client.listNamespacedConfigMap(request);

0 commit comments

Comments
 (0)