Skip to content

Vela Core cue upgrade 0.14 deprecates list arithmetic operators addons incompatiblity #786

@oanasc

Description

@oanasc

Summary
Upgrading to CUE v0.14.1 in Vela Core in this PR (future release) causes template validation failures for addons that still use deprecated list arithmetic operators (listA + listB). List addition was removed starting in CUE v0.11 and superseded by list.Concat. Addons that have not migrated to the new syntax fail during manifest generation.

Reference: https://cuelang.org/docs/concept/faq/removing-list-arithmetic-operators-v0.11/

Impact

Addons using list addition (+) fail during template evaluation.Application health status cannot be collected.

Affects FluxCD addon components (observed in image automation and kustomize controllers).

0226 19:07:22.086238       1 application_controller.go:810] "Failed to collect health status" err=<
	GenerateComponentManifest: evaluate template trait=command app=fluxcd-image-automation-controller: validation failed for trait command:

	Template errors:
	  patch.spec.template.spec.containers.0.args: Addition of lists is superseded by list.Concat; see https://cuelang.org/e/v0.11-list-arithmetic
 > application="vela-system/addon-fluxcd" controller="application" resource_version="13314" generation=1 publish_version="addon-20260226170927748" spanID="i-47t4jc2a"
W0226 19:07:23.562296       1 template.go:321] Trait definition 'command' has malformed 'errs' field (expected []string): patch.spec.template.spec.containers.0.args: Addition of lists is superseded by list.Concat; see https://cuelang.org/e/v0.11-list-arithmetic. Custom error reporting will be skipped.
E0226 19:07:23.564109       1 application_controller.go:810] "Failed to collect health status" err=<
	GenerateComponentManifest: evaluate template trait=command app=fluxcd-kustomize-controller: validation failed for trait command:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions