diff --git a/pkg/simple/client/openpitrix/helmrepoindex/load_package.go b/pkg/simple/client/openpitrix/helmrepoindex/load_package.go index 8fe35e164..98b61957d 100644 --- a/pkg/simple/client/openpitrix/helmrepoindex/load_package.go +++ b/pkg/simple/client/openpitrix/helmrepoindex/load_package.go @@ -74,6 +74,10 @@ func (h HelmVersionWrapper) GetKeywords() string { return strings.Join(h.ChartVersion.Keywords, ",") } +func (h HelmVersionWrapper) GetRawKeywords() []string { + return h.ChartVersion.Keywords +} + func (h HelmVersionWrapper) GetRawMaintainers() []*v1alpha1.Maintainer { mt := make([]*v1alpha1.Maintainer, 0, len(h.Maintainers)) for _, value := range h.Maintainers { diff --git a/pkg/utils/reposcache/repo_cahes.go b/pkg/utils/reposcache/repo_cahes.go index e12ee44d3..87f31c468 100644 --- a/pkg/utils/reposcache/repo_cahes.go +++ b/pkg/utils/reposcache/repo_cahes.go @@ -287,9 +287,15 @@ func (c *cachedRepos) addRepo(repo *v1alpha1.HelmRepo, builtin bool) error { }, Spec: v1alpha1.HelmApplicationVersionSpec{ Metadata: &v1alpha1.Metadata{ - Name: hvw.GetName(), - AppVersion: hvw.GetAppVersion(), - Version: hvw.GetVersion(), + Name: hvw.GetName(), + AppVersion: hvw.GetAppVersion(), + Version: hvw.GetVersion(), + Description: hvw.GetDescription(), + Home: hvw.GetHome(), + Icon: hvw.GetIcon(), + Maintainers: hvw.GetRawMaintainers(), + Sources: hvw.GetRawSources(), + Keywords: hvw.GetRawKeywords(), }, URLs: chartVersion.URLs, Digest: chartVersion.Digest,