-
Notifications
You must be signed in to change notification settings - Fork 557
Description
Summary
With the introduction of external apps, app listing ui will change for devtron chart-store and internal apps. In this tssk, to update the current api response for chart-store to a generic object which will be used for external as well as internal apps.
Current Object -
AppStoreApplicationName string json:"appStoreApplicationName"
ChartName string json:"chartName"
Icon string json:"icon"
Status string json:"status"
AppName string json:"appName"
InstalledAppVersionId int json:"installedAppVersionId"
AppStoreApplicationVersionId int json:"appStoreApplicationVersionId"
EnvironmentName string json:"environmentName"
DeployedAt time.Time json:"deployedAt"
DeployedBy string json:"deployedBy"
InstalledAppsId int json:"installedAppId"
Readme string json:"readme"
EnvironmentId int json:"environmentId"
Deprecated bool json:"deprecated"
New object -
{
"clusterIds": [],
"applicationType": "DEVTRON-CHART-STORE",
"errored": false,
"errorMsg": "cluster not reachable",
"helmApps": [],
"devtronApps": [
{
"appName": "demo-app", (appName in curren object)
"chartName" : "chart-museum" (appStoreApplicationName in current object)
"appId": "12,helm-app|cluster1-ns1",(installedAppId in current object)
"projectId": 12,
"environmentDetails": [
{
"environmentName": "devtroncd",
"environmentId": 56,
"namespace": "devtroncd",
"isPrduction": true,
"clusterName": "qa-cluster"
}
]
}
]
}