v1.0.0-beta.12
What's Changed
- fix(server): fix user quota by @HUAHUAI23 in #1534
- fix(web): fix params not update & change function list type by @newfish-cmyk in #1535
- refactor(web): adjust editor fontsize & optimize function create modal by @newfish-cmyk in #1533
- feat(web): add client settings & change settings directory by @newfish-cmyk in #1536
- refactor(web): change function list & revert create function by @newfish-cmyk in #1537
- fix(web): fix files can't be accessed before refreshing & change file path by @newfish-cmyk in #1538
- feat(cli): support database export and import by @skyoct in #1540
- fix(web): fix create function default code by @newfish-cmyk in #1544
- fix(web): fix style in npm deps list area (#1546) by @yuedanlabs in #1547
- feat(web): add function list desc-name display & fix editor min-h by @newfish-cmyk in #1545
- feat(server): add runtime affinity settings in region by @HUAHUAI23 in #1548
- feat(runtime): reuse context by @skyoct in #1539
- Add auto-compact of apisix-etcd. by @zzjin in #1551
- fix(build): minio console ingress enable websocket by @Itswag in #1555
- fix(web): fix function list folder name display by @newfish-cmyk in #1561
- feat(runtime): proxy cloud storage request to minio by @0fatal in #1560
- feat(gateway): refactor gateway to support ingress by @maslow in #1559
- chore(build): optimize installation sequence by @nightwhite in #1556
- fix(runtime): fix compile error by @maslow in #1563
- fix(server): fix nest deps missing by @maslow in #1564
- fix(gateway): fix cors headers conf of runtime; fix ingress nginx installation by @maslow in #1565
- chore(deploy): fix ingress-nginx image name typo by @maslow in #1566
- fix(server) solving function template sorting problems by @HUAHUAI23 in #1568
- feat(server): add tls config for ingress gateway by @maslow in #1569
- chore(web): add sentry by @0fatal in #1570
- chore(ci): set ci getsentry working directory by @0fatal in #1571
- feat: optimize ctx data definition by @nightwhite in #1558
- doc: fix Cloud function introduction document path error by @nightwhite in #1575
- doc: optimizing Cloud Function naming document by @nightwhite in #1576
- doc: added a tips for appid in cloud storage by @nightwhite in #1573
- doc: add cloud sdk attribute introduction by @nightwhite in #1572
- doc: fix error about ctx.env by @nightwhite in #1574
- feat(web): support github login by @newfish-cmyk in #1543
- feat(server): support github login by @0fatal in #1542
- feat(server): runtime add sealos manager labels by @HUAHUAI23 in #1577
- fix(server): fix app restart not reapply service by @HUAHUAI23 in #1578
- fix(web): disable navigate cache for api endpoint by @0fatal in #1579
- fix(web): fix sign up navigate & storage display by @newfish-cmyk in #1580
- refactor(web): add template page state & optimize use template & fix app restart by @newfish-cmyk in #1554
- fix(server): fixed runtime labels by @HUAHUAI23 in #1583
- chore: remove custom storage class, use default sc; by @maslow in #1584
- fix(server) fix runtime deployment labels by @HUAHUAI23 in #1585
- fix(web): fix sentry allowlist by @0fatal in #1587
- doc: Instructions for modifying cloud function logs by @nightwhite in #1589
- doc: update env.md by @spaceoi in #1582
- feat(cli): improve the cli interface by @nightwhite in #1591
- fix(runtime): fix db stream initialize by @0fatal in #1592
- chore(server): remove minio sts by @HUAHUAI23 in #1593
- refactor(web): cloud storage use ak/sk instead of sts by @newfish-cmyk in #1581
- fix(web): remove storage.credential by @newfish-cmyk in #1594
- feat(runtime): refactor function engine by @skyoct in #1590
- chore(server): remove minio version control by @HUAHUAI23 in #1595
- fix(runtime): fix update function not effective by @skyoct in #1597
- chore(ci): update dockerize-web.yml by @0fatal in #1601
- feat(runtime): support default function by @skyoct in #1602
- fix(runtime): enable cors in runtime; disable cors in gateway ingress by @maslow in #1603
- fix(runtime): default close module cache by @skyoct in #1604
- chore(build): change prometheus url by @0fatal in #1605
- fix(web): fix edit bucket name display by @newfish-cmyk in #1606
- fix(runtime): fix runtime cors options by @maslow in #1607
- fix(cli): fix app init error by @nightwhite in #1608
- fix(cli): fix update func bug by @nightwhite in #1610
- fix(cli): storage server api changed for cli by @nightwhite in #1609
- refactor(gateway): refactor logics of ingress deletion by @maslow in #1612
- fix(server): set deleting phase when deleting app by @0fatal in #1613
- feat: Cors added Access-Control-Max-Age by @nightwhite in #1615
- fix(server): update logic of cronjob deletion by @maslow in #1623
- feat(web&sdk): add index manage by @0fatal in #1611
- chore: remove husky from laf-web by @maslow in #1624
New Contributors
- @zzjin made their first contribution in #1551
- @Itswag made their first contribution in #1555
- @spaceoi made their first contribution in #1582
Full Changelog: v1.0.0-beta.11...v1.0.0-beta.12
Migration Guides
Update laf-server & laf-web images:
# upgrade laf SERVER
kubectl set image deployments/laf-server -n laf-system \
laf-server=docker.io/lafyun/laf-server:1.0.0-beta.12
# upgrade laf WEB
kubectl set image deployments/laf-web -n laf-system \
laf-web=docker.io/lafyun/laf-web:1.0.0-beta.12
Update sys_db
to upgrade runtime images
// runtime version
const version = "1.0.0-beta.12"
// const version = "1.0.0-beta.12"
const main_image = `docker.io/lafyun/runtime-node:${version}`
const init_image = `docker.io/lafyun/runtime-node:${version}`
db.Runtime.updateOne({ latest: true }, {
$set: {
version: version,
image: {
main: main_image,
init: init_image
}
}
})
db.Runtime.find().pretty()
Update sys_db.Region
if you still use apisix gateway:
Deprecated: apisix gateway is deprecated in laf, will not be supported in future.
use sys_db
db.Region.updateOne({}, {
$set: {
namespaceConf: {
mode: 'appid',
prefix: '',
fixed: ''
},
'gatewayConf.tls.wildcardCertificateSecretName': null,
'gatewayConf.driver': 'apisix'
}
})
Migrate apisix gateway to nginx ingress gateway:
First stop all laf applications by update sys_db
:
use sys_db;
db.Application.updateMany({ state: 'Running' }, {
$set: {
state: 'Stopped',
_restart_flag: 'migration-gateway'
}
})
Waiting for all application stopped.
# stop laf-server
kubectl scale deployment laf-server -n laf-system --replicas=0
# uninstall apisix
helm delete apisix --namespace laf-system
sealos run docker.io/labring/ingress-nginx:v1.8.1 \
-e HELM_OPTS="-n ingress-nginx --set controller.hostNetwork=true --set controller.kind=DaemonSet --set controller.service.enabled=false"
kubectl create namespace laf-runtime
use sys_db
db.Region.updateOne({}, {
$set: {
namespaceConf: {
mode: 'fixed',
prefix: '',
fixed: 'laf-runtime'
},
'gatewayConf.tls.wildcardCertificateSecretName': '',
'gatewayConf.driver': 'nginx'
}
})
# start laf-server
kubectl scale deployment laf-server -n laf-system --replicas=1
Start all applications:
db.Application.updateMany({ state: 'Stopped', _restart_flag: 'migration-gateway' }, {
$set: { state: 'Running' }
})