KubeVela v1.12.0 release notes
v1.12.0 is not released yet. These notes track the release-1.12 branch (pre-release
v1.12.0-alpha.2) and may
change before the GA release.
Released: Unreleased · Full changelog · Upgrade guide
These notes list every change since v1.11.0, so they are complete if you upgrade from any v1.11 release. Changes marked backported to v1.11.1 also shipped in v1.11.1; if you already run v1.11.1, you have them.
Summary
v1.12 turns config templates and configs into Kubernetes resources reconciled by the controller,
and adds a set of composition features behind feature gates: SourceDefinition and CEL property
expressions, forEach workflow steps, crate and addon components, and definition inheritance.
vela-core now manages its own admission webhook and cluster-gateway serving certificates.
Compatibility
| Component | Version |
|---|---|
| Kubernetes | Tested with v1.37. >= v1.25 is the minimum implied by the CEL validation rules on ConfigTemplate; versions below v1.37 are not tested. |
| Go | 1.27.1 |
| CUE | v0.14.1 |
| Kubernetes client libraries | k8s.io/client-go v0.37.1, controller-runtime v0.25 |
| Upgrade from | v1.11.x; see the upgrade guide |
Breaking changes
- Trait conflicts. Admission rejects an Application whose traits conflict through
TraitDefinition.spec.conflictsWith; existing ones are refused on their next spec change (v1.11.1 and v1.11.2 refuse every update). See Trait conflicts (#7303, backported to v1.11.1). - Config templates and configs. They are now
ConfigTemplateandConfigresources: users need permissions on them,outputsobjects go to the Config's namespace, and the controller publishes to Nacos. See Config templates and configs. - Workflow HTTP guard. Workflow
request,webhookand HTTP steps refuse metadata and link-local addresses, and read deny lists from labelled ConfigMaps (#7533, backported to v1.11.1). helm upgrade --reuse-values. With the values of v1.11.0 or v1.11.1 the chart fails to render. With the values of v1.11.2 it renders but keeps the v1.11.2 image values, so cluster-gateway stays onv1.9.2. Pass your own values file, or use--reset-then-reuse-values(Helm 3.14 and later).addonandvela-clioutsidevela-system. Theaddoncomponent and thevela-cliworkflow step are refused in other namespaces. Allow more namespaces withdefinitionRestrictions.overrides.addon.namespacesanddefinitionRestrictions.overrides.vela-cli.namespaces. Avela-clistep's Job runs as thedefaultservice account of the Application's namespace unless the step setsserviceAccountName.- Credentials and sources in other namespaces.
helmchartcredentials andvaluesFromsources, configs read by config steps, TLS Secrets used by HTTP steps and Terraform module SSH keys are read only from the Application's namespace. Move them there before you upgrade. - HTTP request limits. A workflow or definition HTTP request fails if its timeout is zero,
negative, has no unit or is longer than
workflow.http.maxTimeout(60s), if the response is larger thanworkflow.http.maxResponseBytes(1 MiB), or if it calls a loopback address. In a definition, avela/httpcall that breaks a limit fails the render. WithfeatureGates.blockPrivateHTTPAddresseson, private addresses are refused too. Therequeststep fails when the response status is 400 or higher (backported to v1.11.2). resourcetrait. It sets only the values you give. A workload that set onlycpu, or onlymemory, no longer gets a default for the other.- Webhooks with cert-manager. With cert-manager, or a certificate Secret you supply, the chart
renders the webhooks with
admissionWebhooks.failurePolicy(Fail) from the first install, so writes are refused until thecaBundleis in place. - Global policy defaults. With
EnableGlobalPolicieson, global policies outsidevela-systemno longer apply and thepolicy.oam.dev/skip-globalannotation is refused, becausecontrollerArgs.allowNamespaceGlobalPoliciesandcontrollerArgs.allowSkipGlobalPoliciesdefault tofalse(v1.11.x:true). Set both totrueto keep the v1.11 behaviour.
Behaviour changes
- Runtime certificates. vela-core creates, reuses and renews the admission webhook and
cluster-gateway serving certificates and sets their
caBundle, instead of thekube-webhook-certgenJobs. Argo CD users needignoreDifferencesfor the webhookfailurePolicy; see Runtime certificates (#7477, backported to v1.11.1, v1.10.10 and v1.9.15). - The
RestrictDefinitionNamespacesfeature gate is on by default. It enforces a definition'sspec.restrictions, or itsdefinition.oam.dev/restrict-namespacesannotation, when an Application is written, and does nothing until a definition declares a restriction.
CRD changes
- New CRDs
configs.config.oam.dev(Config),configtemplates.config.oam.dev(ConfigTemplate) andsourcedefinitions.core.oam.dev(SourceDefinition). AConfigTemplate'ssensitivecan be set totruebut not back tofalse. componentdefinitions,definitionrevisions,policydefinitions,traitdefinitionsandworkflowstepdefinitionsadd definition restrictions and inheritance (spec.extends).applicationsandapplicationrevisionsadd Applicationsourcesandstatus.workflow.ref.workflows(and the Application workflow) addforEachsteps.
Apply the CRDs before helm upgrade; see the
upgrade guide for the commands.
Controller flags and feature gates
| Name | Change | Default |
|---|---|---|
--webhook-tls-secret, --webhook-configuration, --webhook-failure-policy, --webhook-conversion-crds | New (backported to v1.11.1) | Set by the chart |
--cluster-gateway-tls-secret, --cluster-gateway-service | New (backported to v1.11.1) | Set by the chart |
--max-for-each-items | New | 50 |
--helm-cache-max-bytes, --helm-cache-sweep-interval, --helm-cache-immutable-ttl, --helm-cache-mutable-ttl | New (backported to v1.11.1) | 268435456 (256 MiB), 1m0s, 24h0m0s, 5m0s |
--application-default-auto-revision, --application-default-apply-policy-updates, --application-default-apply-data-changes, --allow-namespace-global-policies, --allow-skip-global-policies | New (backported to v1.11.1) | Set by the chart |
--workflow-http-deny-config-template-name | New (backported to v1.11.1) | vela-core-http-deny |
--max-workflow-http-timeout, --max-workflow-http-response-bytes | New (backported to v1.11.2) | 1m0s, 1048576 |
RestrictDefinitionNamespaces | New, Beta | true |
EnableCelExpressions | New, Alpha | false |
RequireCelExpressionOptIn | New, Alpha | true |
EnableSourceAutoUpdate | New, Alpha | false |
EnableDefinitionInheritance | New, Alpha | false |
EnableCrateComponent | New, Alpha | false |
EnableAddonComponent | New, Alpha | false |
AutoMigrateLegacyConfigs | New, Alpha | false |
Details are in Controller Flags and Feature Gates.
Helm chart changes
| Value | Change | Default |
|---|---|---|
builtinDefinitions.job.image.repository | New: image with a shell and kubectl for the built-in definitions hook Jobs; mirror it for air-gapped clusters, see Built-in definitions (backported to v1.11.1) | alpine/k8s |
builtinDefinitions.job.image.tag | New (backported to v1.11.1 as 1.31.13; 1.34.13 from v1.11.2) | 1.34.13, pinned by digest |
builtinDefinitions.job.image.pullPolicy | New (backported to v1.11.1) | IfNotPresent |
builtinDefinitions.job.rolloutTimeoutSeconds | New: controller rollout timeout; with cert-manager, also the webhook caBundle timeout (backported to v1.11.1) | 300 |
builtinDefinitions.job.applyRetries | New: maximum definition apply attempts (backported to v1.11.1) | 6 |
workflow.httpDeny.* | New: deny lists for the workflow HTTP guard (backported to v1.11.1) | configTemplateName: vela-core-http-deny |
workflow.http.maxTimeout, workflow.http.maxResponseBytes | New: the longest timeout and the largest response body a workflow or definition HTTP request may use (backported to v1.11.2) | 60s, 1048576 (1 MiB) |
featureGates.disableWorkflowHTTP, featureGates.blockPrivateHTTPAddresses | New (backported to v1.11.1) | false |
helmCache.* | New: Helm chart cache size and TTLs (backported to v1.11.1) | maxBytes: 268435456 (256 MiB) |
controllerArgs.defaultAutoRevision, defaultApplyPolicyUpdates, defaultApplyDataChanges | New: policy defaults (backported to v1.11.1) | false |
controllerArgs.allowNamespaceGlobalPolicies, allowSkipGlobalPolicies | New: global policy defaults (backported to v1.11.1, where they default to true) | false |
definitionRestrictions.overrides.addon.namespaces, definitionRestrictions.overrides.vela-cli.namespaces | New: namespaces where the addon component and the vela-cli step may be used | ["vela-system"] |
multicluster.clusterGateway.image.tag | Changed from v1.9.0-alpha.2 | v1.10.0-alpha.1, pinned by digest |
featureGates.* for the new feature gates, such as featureGates.autoMigrateLegacyConfigs | New | Same as the feature gate above |
CLI changes
vela config-template migrateandvela config migrateadopt v1.11 templates and configs; see Migrate Configs to ConfigTemplate and Config.vela def testruns CUE tests for X-Definitions.vela crate(init,deploy,publish,registry) manages crates.vela mcpserves KubeVela to AI agents over the Model Context Protocol.vela config createandvela config-template applynow createConfigandConfigTemplateresources.
Each command's flags are on its page under vela CLI.
New features
- Config templates and configs as resources:
ConfigTemplateandConfig, with template scope, cross-namespace access, sensitive rules and Nacos publishing from the controller; see Config Template. - SourceDefinition and CEL
$( )property expressions, including reading another component's output (EnableCelExpressions). - Workflow:
forEachsteps with items from expressions and named by a key, CEL conditions on steps, expressions resolved when each step runs, and restarting before the first run. - Crates: install a crate as an Application component or inline with an addon, with
identity stamping and hub and runtime placement (
EnableCrateComponent); see Crates. - Declarative addon component (
EnableAddonComponent). - Definitions: inheritance and abstract definitions (
EnableDefinitionInheritance), namespace restrictions, per-namespace usage quotas, and admission validation of WorkflowStepDefinition templates. - defkit: Application-scoped and global policies, definition inheritance, reading a
forEachpass from a step template, and expression-based validator messages. - Workflow steps: configurable HTTP timeout on
request,webhookandnotification. - Traits:
sidecarsupportsports(backported to v1.11.1).
Bug fixes
- Built-in definitions: fixes across components, traits and workflow steps so every documented parameter renders (#7445). A changed Pod template restarts Pods, so test affected Applications before upgrading. Parameters are in the Reference pages.
helmchartreleases install on the topology's clusters as the Application's user.- Resource keeper honours shared-resource, GC-propagation and orphan-finalizer protections on delete (backported to v1.11.1).
- PolicyDefinitions are validated with the compiler of their scope, and global and Application-scoped policy changes propagate (backported to v1.11.1).
helmchartkeeps empty maps and lists in rendered manifests (backported to v1.11.1).- External Package CRs are watched in the workload compiler (backported to v1.11.1).
- Nonexistent provider functions in PolicyDefinition CUE are rejected (backported to v1.11.1).
- Workflow restart and trait output fixes (#7488, backported to v1.11.1).
vela authreads service account kubeconfigs, andvela topno longer panics without a rest config (backported to v1.11.1).get-placements-from-topology-policiesrespects--allow-cross-namespace-resource(backported to v1.11.1).multicluster.clusterGateway.portis propagated to the controller (backported to v1.11.1).- The OpenKruise rollout reverts when paused at a canary step (backported to v1.11.1).
Dependencies
| Dependency | From | To |
|---|---|---|
| Go | 1.23.8 | 1.27.1 (#7450) |
k8s.io/* | v0.31.10 | v0.37.1 (#7450) |
controller-runtime | v0.19.7 | v0.25 |
kubevela/workflow | v0.7.2 | v0.8.0-alpha.2 |