1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-08-18 13:47:15 -04:00
parent b5bf068b82
commit 32a8425052
3 changed files with 6 additions and 6 deletions

View File

@ -154,7 +154,7 @@ const charts = new Map([
} }
]), ]),
}], }],
]) ]);
export class HelmChartManager { export class HelmChartManager {
constructor(private repo: HelmRepo){ } constructor(private repo: HelmRepo){ }

View File

@ -97,10 +97,10 @@ export class HelmChartManager {
name, name,
sortCharts( sortCharts(
charts.map(chart => ({ charts.map(chart => ({
...chart, ...chart,
created: Date.parse(chart.created).toString(), created: Date.parse(chart.created).toString(),
repo: this.repo.name, repo: this.repo.name,
})), })),
logger.warn, logger.warn,
), ),
] as const) ] as const)

View File

@ -53,7 +53,7 @@ class HelmService {
return { return {
readme: await chartManager.getReadme(chartName, version), readme: await chartManager.getReadme(chartName, version),
versions: await chartManager.chartVersions(chartName), versions: await chartManager.chartVersions(chartName),
} };
} }
public async getChartValues(repoName: string, chartName: string, version = "") { public async getChartValues(repoName: string, chartName: string, version = "") {