1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

add comment about retry

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-09-24 09:26:00 -04:00
parent 3ed4b5b86f
commit db597abc88

View File

@ -64,11 +64,12 @@ export class InstallChartStore extends DockTabStore<IChartInstallData> {
const data = this.getData(tabId) const data = this.getData(tabId)
const { repo, name, version } = data const { repo, name, version } = data
for (const i of Array(3)) { // This loop is for "retrying" the "getValues" call
for (const _ of Array(3)) {
const values = await helmChartsApi.getValues(repo, name, version) const values = await helmChartsApi.getValues(repo, name, version)
if (values) { if (values) {
this.setData(tabId, { ...data, values }) this.setData(tabId, { ...data, values })
break return
} }
} }
} }