1.add application list page (#779)

2.ignore the deleted applicationconfig resource instead return nil
3.code style fix
This commit is contained in:
majian
2020-12-18 01:22:38 +08:00
committed by GitHub
parent 0fab691ba3
commit c09e4df452
10 changed files with 185 additions and 7 deletions

View File

@@ -76,6 +76,10 @@ func ListApplications(ctx context.Context, c client.Client, opt Option) ([]apis.
}
for _, a := range appConfigList.Items {
// ignore the deleted resource
if a.GetDeletionGracePeriodSeconds() != nil {
continue
}
applicationMeta, err := RetrieveApplicationStatusByName(ctx, c, a.Name, a.Namespace)
if err != nil {
return applicationMetaList, nil