Compare commits

...

11 Commits

Author SHA1 Message Date
eball
45a326230e fix: handle case for system applications without configuration in provider list (#2507) 2026-02-09 15:14:35 +08:00
eball
914c99e5df Merge branch 'main' into module-appservice
* main:
  Modify release-daemon.yaml for arm64 support
  fix: seafile trim commit_id for syncing and change psql ccnet init (#2495)
  backup: sync systemEnv default remote url (#2492)
  download-server: nats message publish modify (#2489)
  fix(cli): clear master host config when uninstalling (#2488)
  market, settings: support optional data deletion and fix bugs. (#2486)
  fix(cli): do not override upgrade target version by config file (#2483)
  app-service: feat app uninstall delete data (#2480)
2026-02-05 17:23:00 +08:00
eball
8f85a09564 app-service: handle case for system apps without configuration in permission API 2026-02-05 17:21:45 +08:00
eball
65b57fbf66 fix: handle case for system apps without configuration in permission API (#2498) 2026-02-05 17:19:13 +08:00
hysyeah
b91566d6cd fix: app uninstall delete data (#2478) 2026-02-03 20:33:47 +08:00
dkeven
de87bd6b8e feat(appservice): support updating more fields in api & controller (#2472) 2026-02-03 20:32:14 +08:00
hys
95291474cb fix: add spec ports 2026-02-03 20:31:32 +08:00
hys
7a23d52b13 fix: check k8s request before into installing state 2026-02-03 20:31:32 +08:00
hys
93a9fcd834 fix: v2 app stop 2026-02-03 20:31:32 +08:00
hys
45a3e91bbd fix: helm upgrade do not use atomic param and allow upgrade failed release 2026-02-03 20:31:32 +08:00
hys
c9bac68646 fix: failed release upgrade 2026-02-03 20:31:32 +08:00
2 changed files with 19 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ spec:
priorityClassName: "system-cluster-critical"
containers:
- name: app-service
image: beclab/app-service:0.5.0
image: beclab/app-service:0.5.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6755

View File

@@ -586,6 +586,18 @@ func (h *Handler) getApplicationPermission(req *restful.Request, resp *restful.R
return
}
// sys app does not have app config
if am.Spec.Config == "" {
ret := &applicationPermission{
App: am.Spec.AppName,
Owner: owner,
Permissions: []permission{},
}
resp.WriteAsJson(ret)
return
}
var appConfig appcfg.ApplicationConfig
err = am.GetAppConfig(&appConfig)
if err != nil {
@@ -717,6 +729,12 @@ func (h *Handler) getApplicationProviderList(req *restful.Request, resp *restful
return
}
// sys app does not have app config
if am.Spec.Config == "" {
resp.WriteAsJson([]providerRegistry{})
return
}
var appConfig appcfg.ApplicationConfig
err = am.GetAppConfig(&appConfig)
if err != nil {