Upgrade from v1.9 to v1.10
Read the v1.10.0 release notes before you upgrade.
caution
Upgrade to v1.10.5 or later, not v1.10.4. v1.10.4 breaks components whose templates use import
statements. The commands below use v1.10.10, the latest v1.10 patch.
Check your definitions
v1.10 renders definitions with the CueX engine on CUE v0.9.2 (v1.9 used CUE v0.5.0). Before you
upgrade, check that your custom ComponentDefinitions, TraitDefinitions, PolicyDefinitions and
WorkflowStepDefinitions still compile, for example with vela def vet <file> using the v1.10 CLI.
Also check:
ref-objectscomponents that reference resources outside thecore.oam.devgroup and the empty group must setgroup; see Distribute Reference Objects.- If you pass
--leader-election-resource-lockto the controller, remove it. The flag no longer exists and the controller fails to start with it. - v1.10.10 has breaking changes of its own:
helm upgrade --reuse-valuesfails to render; config steps read configs from the Application's namespace, except shared system configs invela-system, and Terraform module SSH keys come from the definition's namespace; Argo CD and Flux need to ignore the webhookfailurePolicy. See the v1.10.10 release notes.
Upgrade steps
- Upgrade the CRDs, please make sure you upgrade the CRDs first before upgrade the helm chart. v1.10
adds the
packages.cue.oam.devCRD.
helm repo remove kubevela 2>/dev/null || true
helm repo add kubevela https://kubevela.github.io/charts
helm repo update
helm pull kubevela/vela-core --version 1.10.10 --untar
kubectl apply -f vela-core/crds/
- Upgrade your kubevela chart
helm upgrade -n vela-system --install kubevela kubevela/vela-core --version 1.10.10 --wait
- Download and upgrade to the corresponding CLI
curl -fsSl https://kubevela.io/script/install.sh | bash -s 1.10.10
- Upgrade VelaUX or other addon
vela addon upgrade velaux