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 {
341341 fieldSelector ?: string ,
342342 labelSelector ?: string ,
343343 limit ?: number ,
344+ continueToken ?: string ,
344345 options : { headers : { [ name : string ] : string } } = { headers : { } } ,
345346 ) : Promise < { body : KubernetesListObject < KubernetesObject > ; response : http . IncomingMessage } > {
346347 // verify required parameters 'apiVersion', 'kind' is not null or undefined
@@ -388,6 +389,10 @@ export class KubernetesObjectApi extends ApisApi {
388389 localVarQueryParameters . limit = ObjectSerializer . serialize ( limit , 'number' ) ;
389390 }
390391
392+ if ( continueToken !== undefined ) {
393+ localVarQueryParameters . continue = ObjectSerializer . serialize ( continueToken , 'string' ) ;
394+ }
395+
391396 const localVarRequestOptions : request . Options = {
392397 method : 'GET' ,
393398 qs : localVarQueryParameters ,
Original file line number Diff line number Diff line change @@ -1751,7 +1751,7 @@ describe('KubernetesObject', () => {
17511751 it ( 'should list resources in a namespace' , async ( ) => {
17521752 const scope = nock ( 'https://d.i.y' )
17531753 . 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 ' ,
17551755 )
17561756 . reply ( 200 , {
17571757 apiVersion : 'v1' ,
@@ -1768,6 +1768,7 @@ describe('KubernetesObject', () => {
17681768 ] ,
17691769 metadata : {
17701770 resourceVersion : '216532459' ,
1771+ continue : 'abc' ,
17711772 } ,
17721773 } ) ;
17731774 const lr = await client . list (
@@ -1780,6 +1781,7 @@ describe('KubernetesObject', () => {
17801781 'metadata.name=test-secret1' ,
17811782 'app=my-app' ,
17821783 5 ,
1784+ 'abc' ,
17831785 ) ;
17841786 const items = lr . body . items ;
17851787 expect ( items ) . to . have . length ( 1 ) ;
@@ -1806,6 +1808,7 @@ describe('KubernetesObject', () => {
18061808 ] ,
18071809 metadata : {
18081810 resourceVersion : '216532459' ,
1811+ continue : 'abc' ,
18091812 } ,
18101813 } ) ;
18111814 const lr = await client . list (
You can’t perform that action at this time.
0 commit comments