From e469f59700ea129eeb8566e107caf2d5d7c8956e Mon Sep 17 00:00:00 2001 From: Negash Date: Thu, 21 Mar 2024 14:43:15 +0000 Subject: [PATCH] Add fix pageSize --- package.json | 2 +- pkg/vcd-node-driver/package.json | 2 +- pkg/vcd-node-driver/vcd.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f012c17..277e125 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rancher-vcloud-director-node-driver-ui-plugin", - "version": "0.2.0", + "version": "0.2.1", "private": false, "engines": { "node": ">=12" diff --git a/pkg/vcd-node-driver/package.json b/pkg/vcd-node-driver/package.json index 92e1215..759a18c 100644 --- a/pkg/vcd-node-driver/package.json +++ b/pkg/vcd-node-driver/package.json @@ -1,7 +1,7 @@ { "name": "vcd-node-driver", "description": "vCloud Director node-driver plugin for rancher", - "version": "0.2.0", + "version": "0.2.1", "private": false, "rancher": { "annotations": { diff --git a/pkg/vcd-node-driver/vcd.ts b/pkg/vcd-node-driver/vcd.ts index 2d409f6..37080b7 100644 --- a/pkg/vcd-node-driver/vcd.ts +++ b/pkg/vcd-node-driver/vcd.ts @@ -84,19 +84,19 @@ export class Vcd { } public async getCatalog(value: any, initial?: string) { - return await this.getOptions(value, '/query?type=catalog', 'record', undefined, initial); + return await this.getOptions(value, '/query?type=catalog&pageSize=1000', 'record', undefined, initial); } public async getTemplate(value: any, catalog: string, initial?: string) { - return await this.getOptions(value, `/query?type=vAppTemplate&filter=(catalogName==${ catalog })`, 'record', undefined, initial); + return await this.getOptions(value, `/query?type=vAppTemplate&pageSize=1000&filter=(catalogName==${ catalog })`, 'record', undefined, initial); } public async getNetwork(value: any, initial?: string) { - return await this.getOptions(value, `/cloudapi/1.0.0/orgVdcNetworks?filterEncoded=true&filter=((crossVdcNetworkId==null))`, 'values', undefined, initial, true); + return await this.getOptions(value, `/cloudapi/1.0.0/orgVdcNetworks?filterEncoded=true&pageSize=1000&filter=((crossVdcNetworkId==null))`, 'values', undefined, initial, true); } public async getStorage(value: any, initial?: string) { - return await this.getOptions(value, '/query?type=orgVdcStorageProfile', 'record', undefined, initial); + return await this.getOptions(value, '/query?type=orgVdcStorageProfile&pageSize=1000', 'record', undefined, initial); } public async getVAppVms(value: any, api: string, initial?: string) {