Skip to content

Commit 9afab6e

Browse files
authored
feat: show notes txt for helmapps deployed by helm (#2966)
* added notes field in installed app details * added omitempty field in installed app details
1 parent 00d3489 commit 9afab6e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

api/bean/AppView.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ type AppDetailContainer struct {
158158
Environments []Environment `json:"otherEnvironment,omitempty"`
159159
LinkOuts []LinkOuts `json:"linkOuts,omitempty"`
160160
ResourceTree map[string]interface{} `json:"resourceTree,omitempty"`
161+
Notes string `json:"notes,omitempty"`
161162
}
162163
type Notes struct {
163164
Notes string `json:"gitOpsNotes,omitempty"`

pkg/appStore/deployment/service/InstalledAppService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ func (impl InstalledAppServiceImpl) FetchResourceTree(rctx context.Context, cn h
995995
resourceTree := util3.InterfaceToMapAdapter(detail.ResourceTreeResponse)
996996
resourceTree["status"] = detail.ApplicationStatus
997997
appDetail.ResourceTree = resourceTree
998+
appDetail.Notes = detail.ChartMetadata.Notes
998999
impl.logger.Warnw("appName and envName not found - avoiding resource tree call", "app", appDetail.AppName, "env", appDetail.EnvironmentName)
9991000
} else {
10001001
appDetail.ResourceTree = map[string]interface{}{}

0 commit comments

Comments
 (0)