Issue #1025 - Fix /v1/applications/<appName>/manifests for app with helm depencencies (#1026)

This commit is contained in:
Alexander Matyushentsev 2019-01-16 11:30:42 -08:00 committed by GitHub
parent 07effbd950
commit 6a4d84d42c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,6 +186,10 @@ func (s *Server) GetManifests(ctx context.Context, q *ApplicationManifestQuery)
if err != nil {
return nil, err
}
helmRepos, err := s.db.ListHelmRepos(ctx)
if err != nil {
return nil, err
}
manifestInfo, err := repoClient.GenerateManifest(ctx, &repository.ManifestRequest{
Repo: repo,
Revision: revision,
@ -194,6 +198,7 @@ func (s *Server) GetManifests(ctx context.Context, q *ApplicationManifestQuery)
AppLabelValue: a.Name,
Namespace: a.Spec.Destination.Namespace,
ApplicationSource: &a.Spec.Source,
HelmRepos: helmRepos,
})
if err != nil {
return nil, err