Skip to content

v1.7.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@wonderflow wonderflow released this 11 Jan 10:28
· 55 commits to release-1.7 since this release
1ee5915

What's Changed

Highlights

  • Feat: vela dry-run render results should be affected by override policy and deploy workflowstep by @cezhang in #4815

Enhancements

  • Test: use mock server in addon tests to make it more stable by @charlie0129 in #5286
  • Fix: delete appplication fails if status.workflow.endTime not specified. by @LiuFang07 in #5287
  • Fix: fix vela debug cli to find id for step by @FogDong in #5294
  • Fix: don't return err if subresource type is not found when listing application resources. by @hnd4r7 in #5295
  • Fix: provide more explicit error when addon package hasn't a metadata.yaml by @wangyikewxgm in #5298
  • Fix: Index structure map[string]string,Mongo resulting in inconsistent results obtained by filtering non-string type by index. by @LiuFang07 in #5274
  • Fix: enhance the application synchronizer with publishVersion by @barnettZQG in #5299
  • Fix: create a config with the same name reported an incorrect error by @nuclearwu in #5270
  • Fix: error msg when uninstall vela by @Xunzhuo in #5304

How to install

Install Vela Core by Using Vela CLI

curl -fsSl https://kubevela.io/script/install.sh | bash -s 1.7.0-beta.2
vela install -v 1.7.0-beta.2

Install Vela Core by Using Helm:

helm repo add kubevela https://charts.kubevela.net/core
helm repo update
helm install --create-namespace -n vela-system kubevela kubevela/vela-core --version 1.7.0-beta.2 --wait

Install VelaUX addon

vela addon enable velaux --version=v1.7.0-beta.2

How to upgrade from old version?

Refer to the docs( https://kubevela.net/docs/platform-engineers/system-operation/migration-from-old-version ) if you're migrating from older versions.

Upgrade by using Vela CLI

The install command will also handle the upgrade automatically:

curl -fsSl https://kubevela.io/script/install.sh | bash -s 1.7.0-beta.2
vela install -v 1.7.0-beta.2 -r

Upgrade by using Helm

⚠️ Please upgrade the CRD first if you're upgrading to this release.

  1. Upgrade the CRDs, please make sure you upgrade the CRDs first before upgrade the helm chart.
kubectl apply -f https://raw.githubusercontent.com/oam-dev/kubevela/release-1.7/charts/vela-core/crds/core.oam.dev_applicationrevisions.yaml
kubectl apply -f https://raw.githubusercontent.com/oam-dev/kubevela/release-1.7/charts/vela-core/crds/core.oam.dev_applications.yaml
kubectl apply -f https://raw.githubusercontent.com/oam-dev/kubevela/release-1.7/charts/vela-core/crds/core.oam.dev_resourcetrackers.yaml
kubectl apply -f https://raw.githubusercontent.com/oam-dev/kubevela/release-1.7/charts/vela-core/crds/core.oam.dev_componentdefinitions.yaml
kubectl apply -f https://raw.githubusercontent.com/oam-dev/kubevela/release-1.7/charts/vela-core/crds/core.oam.dev_definitionrevisions.yaml
  1. Upgrade your kubevela chart

Since we have migrated some workflowstep definitions and views from workflow addon to KubeVela core repo, so it may cause the following error if you upgrade:

Error: Could not install KubeVela control plane installation: error when installing/upgrading Helm Chart kubevela in namespace vela-system: rendered manifests contain a resource that already exists. Unable to continue with update: WorkflowStepDefinition "apply-deployment" in namespace "vela-system" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "kubevela"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "vela-system"

You can execute this script to solve it before upgrade helm chart:

curl -fsSl https://kubevela.net/script/checklegacy.sh | bash

The script will just help patch helm annotations for you, you can also do that manually one by one like:

kubectl patch -n vela-system workflowstepdefinition <item> --type=merge -p '{"metadata":{"annotations":{"meta.helm.sh/release-name":"kubevela","meta.helm.sh/release-namespace":"vela-system"},"labels":{"app.kubernetes.io/managed-by":"Helm"}}}'
kubectl patch -n vela-system configMap <item> --type=merge -p '{"metadata":{"annotations":{"meta.helm.sh/release-name":"kubevela","meta.helm.sh/release-namespace":"vela-system"},"labels":{"app.kubernetes.io/managed-by":"Helm"}}}'

Then you can upgrade the helm chart now:

helm repo add kubevela https://charts.kubevela.net/core
helm repo update
helm upgrade -n vela-system --install kubevela kubevela/vela-core --version 1.7.0-beta.2 --wait
  1. Download the new CLI and enable velaux
curl -fsSl https://kubevela.io/script/install.sh | bash -s 1.7.0-beta.2
vela addon enable velaux

Upgrade VelaUX

vela addon upgrade velaux --version=v1.7.0-beta.2

New Contributors

Full Changelog: v1.7.0-beta.1...v1.7.0-beta.2