File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ export class KubernetesObjectApi extends ApisApi {
341
341
fieldSelector ?: string ,
342
342
labelSelector ?: string ,
343
343
limit ?: number ,
344
+ continueToken ?: string ,
344
345
options : { headers : { [ name : string ] : string } } = { headers : { } } ,
345
346
) : Promise < { body : KubernetesListObject < KubernetesObject > ; response : http . IncomingMessage } > {
346
347
// verify required parameters 'apiVersion', 'kind' is not null or undefined
@@ -388,6 +389,10 @@ export class KubernetesObjectApi extends ApisApi {
388
389
localVarQueryParameters . limit = ObjectSerializer . serialize ( limit , 'number' ) ;
389
390
}
390
391
392
+ if ( continueToken !== undefined ) {
393
+ localVarQueryParameters . continue = ObjectSerializer . serialize ( continueToken , 'string' ) ;
394
+ }
395
+
391
396
const localVarRequestOptions : request . Options = {
392
397
method : 'GET' ,
393
398
qs : localVarQueryParameters ,
Original file line number Diff line number Diff line change @@ -1751,7 +1751,7 @@ describe('KubernetesObject', () => {
1751
1751
it ( 'should list resources in a namespace' , async ( ) => {
1752
1752
const scope = nock ( 'https://d.i.y' )
1753
1753
. get (
1754
- '/api/v1/namespaces/default/secrets?fieldSelector=metadata.name%3Dtest-secret1&labelSelector=app%3Dmy-app&limit=5' ,
1754
+ '/api/v1/namespaces/default/secrets?fieldSelector=metadata.name%3Dtest-secret1&labelSelector=app%3Dmy-app&limit=5&continue=abc ' ,
1755
1755
)
1756
1756
. reply ( 200 , {
1757
1757
apiVersion : 'v1' ,
@@ -1768,6 +1768,7 @@ describe('KubernetesObject', () => {
1768
1768
] ,
1769
1769
metadata : {
1770
1770
resourceVersion : '216532459' ,
1771
+ continue : 'abc' ,
1771
1772
} ,
1772
1773
} ) ;
1773
1774
const lr = await client . list (
@@ -1780,6 +1781,7 @@ describe('KubernetesObject', () => {
1780
1781
'metadata.name=test-secret1' ,
1781
1782
'app=my-app' ,
1782
1783
5 ,
1784
+ 'abc' ,
1783
1785
) ;
1784
1786
const items = lr . body . items ;
1785
1787
expect ( items ) . to . have . length ( 1 ) ;
@@ -1806,6 +1808,7 @@ describe('KubernetesObject', () => {
1806
1808
] ,
1807
1809
metadata : {
1808
1810
resourceVersion : '216532459' ,
1811
+ continue : 'abc' ,
1809
1812
} ,
1810
1813
} ) ;
1811
1814
const lr = await client . list (
You can’t perform that action at this time.
0 commit comments