mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-17 06:46:47 +00:00
1.add application list page (#779)
2.ignore the deleted applicationconfig resource instead return nil 3.code style fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user