Skip to content

v1.0.0-beta.10

Compare
Choose a tag to compare
@maslow maslow released this 12 Jul 08:44
· 450 commits to main since this release

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.9...v1.0.0-beta.10

Migration Guides

Update sys_db to support autoscaling of applications:

db.ApplicationBundle.updateMany({}, {
    $set: { 
        autoscaling: {
            enable: false,
            minReplicas: 1,
            maxReplicas: 5,
            targetCPUUtilizationPercentage: null,
            targetMemoryUtilizationPercentage: null,
        },
    }
})

Update sys_db to support invitation bonus:

db.Setting.insertOne({
  public: true,
  key: 'invitation_profit',
  value: 500,
  desc: "Set up invitation rebate"
})

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.10

# upgrade laf WEB
kubectl set image deployments/laf-web -n laf-system \
	laf-web=docker.io/lafyun/laf-web:1.0.0-beta.10

Update sys_db to upgrade runtime images

// runtime version
const version = "1.0.0-beta.10"
// const version = "1.0.0-beta.10"

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()