mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -74,7 +74,7 @@ const charts = new Map([
|
||||
repo: "stable",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
]),
|
||||
"redis": sortCharts([
|
||||
{
|
||||
@@ -92,7 +92,7 @@ const charts = new Map([
|
||||
repo: "stable",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
]),
|
||||
}],
|
||||
["experiment", {
|
||||
@@ -113,7 +113,7 @@ const charts = new Map([
|
||||
digest: "test",
|
||||
deprecated: true,
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
]),
|
||||
}],
|
||||
["bitnami", {
|
||||
@@ -133,7 +133,7 @@ const charts = new Map([
|
||||
repo: "bitnami",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
]),
|
||||
"pretzel": sortCharts([
|
||||
{
|
||||
@@ -151,7 +151,7 @@ const charts = new Map([
|
||||
repo: "bitnami",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
]),
|
||||
}],
|
||||
]);
|
||||
|
||||
@@ -62,7 +62,7 @@ describe("Helm Service tests", () => {
|
||||
repo: "stable",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
},
|
||||
],
|
||||
"invalid-semver": [
|
||||
{
|
||||
@@ -114,8 +114,8 @@ describe("Helm Service tests", () => {
|
||||
repo: "stable",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
experiment: {
|
||||
"fairwind": [
|
||||
@@ -136,8 +136,8 @@ describe("Helm Service tests", () => {
|
||||
digest: "test",
|
||||
created: "now",
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -189,9 +189,9 @@ describe("Helm Service tests", () => {
|
||||
repo: "bitnami",
|
||||
digest: "test",
|
||||
created: "now",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -143,9 +143,9 @@ function normalizeHelmCharts(repoName: string, entries: RepoHelmChartList): Repo
|
||||
repo: repoName,
|
||||
})),
|
||||
),
|
||||
] as const
|
||||
] as const,
|
||||
),
|
||||
([, charts]) => !charts.every(chart => chart.deprecated),
|
||||
)
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ export class HelmCli extends LensBinary {
|
||||
version,
|
||||
baseDir,
|
||||
originalBinaryName: "helm",
|
||||
newBinaryName: "helm3"
|
||||
newBinaryName: "helm3",
|
||||
};
|
||||
|
||||
super(opts);
|
||||
|
||||
@@ -69,8 +69,8 @@ export async function installChart(chart: string, values: any, name: string | un
|
||||
log: stdout,
|
||||
release: {
|
||||
name: releaseName,
|
||||
namespace
|
||||
}
|
||||
namespace,
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
throw error?.stderr || error;
|
||||
@@ -91,7 +91,7 @@ export async function upgradeRelease(name: string, chart: string, values: any, n
|
||||
|
||||
return {
|
||||
log: stdout,
|
||||
release: getRelease(name, namespace, cluster)
|
||||
release: getRelease(name, namespace, cluster),
|
||||
};
|
||||
} catch (error) {
|
||||
throw error?.stderr || error;
|
||||
|
||||
@@ -112,7 +112,7 @@ export class HelmRepoManager extends Singleton {
|
||||
} catch { }
|
||||
|
||||
return {
|
||||
repositories: []
|
||||
repositories: [],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ export class HelmRepoManager extends Singleton {
|
||||
|
||||
return repositories.map(repo => ({
|
||||
...repo,
|
||||
cacheFilePath: `${this.helmEnv.HELM_REPOSITORY_CACHE}/${repo.name}-index.yaml`
|
||||
cacheFilePath: `${this.helmEnv.HELM_REPOSITORY_CACHE}/${repo.name}-index.yaml`,
|
||||
}));
|
||||
} catch (error) {
|
||||
logger.error(`[HELM]: repositories listing error "${error}"`);
|
||||
|
||||
@@ -42,7 +42,7 @@ class HelmService {
|
||||
const repositories = await HelmRepoManager.getInstance().repositories();
|
||||
|
||||
return Object.fromEntries(
|
||||
await Promise.all(repositories.map(async repo => [repo.name, await HelmChartManager.forRepo(repo).charts()]))
|
||||
await Promise.all(repositories.map(async repo => [repo.name, await HelmChartManager.forRepo(repo).charts()])),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user