mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix: fetching values from both install and upgrade views - develop [R8S-368] (#820)
This commit is contained in:
parent
d51e9205d9
commit
c897baad20
7 changed files with 111 additions and 45 deletions
|
@ -10,12 +10,15 @@ interface HelmSearch {
|
|||
}
|
||||
|
||||
interface Entries {
|
||||
[key: string]: { version: string }[];
|
||||
[key: string]: { version: string; appVersion: string }[];
|
||||
}
|
||||
|
||||
export interface ChartVersion {
|
||||
Chart?: string;
|
||||
Repo: string;
|
||||
Label?: string;
|
||||
Version: string;
|
||||
AppVersion?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -77,8 +80,10 @@ async function getSearchHelmRepo(
|
|||
const versions = data.entries[chart];
|
||||
return (
|
||||
versions?.map((v) => ({
|
||||
Chart: chart,
|
||||
Repo: repo,
|
||||
Version: v.version,
|
||||
AppVersion: v.appVersion,
|
||||
})) ?? []
|
||||
);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue