platformchangelog.dev
45 tools
feedrelease

Crossplane v2.5.0

breakingsecurity+++++++++++~-***!!!

Crossplane v2.5.0 ships 146 changes, including five marked breaking: status.crossplane is now reserved for Crossplane on modern XRs, and XRDs that declare their own status.crossplane fields must move them before upgrading. Alpha features add function-controlled deletion with Foreground, Background and Pipeline policies, and function references by OCI digest with per-revision pinning. It also adds garbage collection of unused CompositionRevisions and several security hardening fixes in code paths where a caller could reach further than intended.

What changes for platform teams

Platform teams with XRDs that declare status.crossplane fields must relocate them before upgrading, or the upgrade will conflict with Crossplane's own status data. The alpha deletion and OCI function reference features can be enabled by flag and give more control over teardown order and function rollouts.

Changes

  • !Status.crossplane is now reserved for Crossplane on modern XRs, the same way spec.crossplane already is.changed / breaking
  • !Crossplane records its own state there, starting with status.crossplane.deletionPolicy, and replaces any status.crossplane an XRD's schema declares.changed / breaking
  • !If your XRD declares its own fields under status.crossplane, move them to a different status field before upgrading.changed / breaking
  • !Legacy XRs are unaffected.changed / breaking
  • !See crossplane/crossplane-runtime#1226 for related change.changed / breaking
  • Security hardening: Several fixes focus on tightening code paths where a caller could reach further than intended.security
  • Crossplane now builds with Go 1.26 (#7802), alongside security updates to Crossplane's dependencies across this release cycle.security
  • Update module golang.org/x/mod to v0.40.0 [security] (main)security
  • Update module google.golang.org/grpc to v1.83.1 [security] (main)security
  • Update vulnerable dependencies [security] (main)security
  • Update module go.opentelemetry.io/otel/exporters/otlp/otlptrace to v1.45.0 [security] (main)security
  • Update vulnerable dependencies [security] (main)security
67 more lines
  • Update vulnerable dependencies [security] (main)security
  • Update vulnerable dependencies [security] (main)security
  • Update vulnerable dependencies [security] (main)security
  • Update vulnerable dependencies [security] (main)security
  • Pkg: Remove the shared runtime builder layerremoved
  • Function-controlled deletion (alpha): Your composition functions can now decide when and in what order an XR's composed resources are deleted, enabling ordered teardown and custom deletion hooks, which is a long standing feature request tracked in #5092.added
  • A new Composition field spec.deletionPolicy lets you specify the deletion behavior:added
  • Background (the default) keeps today's behavioradded
  • Foreground keeps the XR alive until all composed resources are deleted completelyadded
  • Pipeline keeps running your functions during deletion so they decide how/when to delete their composed resourcesadded
  • Crossplane internal render can also render an XR's deletion so you can see it play out locally.added
  • Enable it with --enable-function-controlled-deletion. See the design, #8000 and #8012.added
  • Reference functions by OCI digest (alpha): Pipeline steps in a Composition or Operation can now reference a function package directly by digest with the new function field, instead of a functionRef by name to an installed Function.added
  • Crossplane installs the function for you, and several versions of the same function can run side by side.added
  • Each CompositionRevision pins the exact function versions it calls, so a function upgrade no longer changes the behavior of every XR at once and can be rolled out progressively like any other composition change.added
  • Enable it with --enable-pipeline-oci-references. See the design and #7840, fixing #6139.added
  • Garbage collection of unused CompositionRevisions (alpha): Crossplane can now garbage collect CompositionRevisions that are no longer in use, instead of that list continuing to grow forever.added
  • With --enable-composition-revision-gc, Crossplane deletes unused revisions beyond the new spec.unusedRevisionHistoryLimit field on Composition (default 1, and 0 keeps every revision).added
  • The latest revision and any revision in use by an XR are always kept. #7916, closing #4837.added
  • Lighter on memory and the API server:added
  • Crossplane no longer caches the OpenAPI schema of every CRD in the cluster, which cut heap usage from 338 MiB to 190 MiB and RSS from 415 MiB to 250 MiB on a cluster with 791 CRDs (#7955).added
  • The MRD, MRAP and PackageRevision controllers stopped rewriting unchanged status on every sync (#7851), and Usages no longer rewrite the in-use label on every reconcile (#7860).added
  • Optional function credentials: Set resolvePolicy: Optional on a pipeline step's credential and the function runs without it when the Secret doesn't exist, instead of simply failing the pipeline completely. If your function can work with or without credentials, then use this setting to ensure your function is run either way.added
  • A namespaced XR can no longer compose a cluster scoped resource by having a function set metadata.namespace on it.added
  • The RBAC manager builds generated ClusterRoles only from CRDs actually owned by the ProviderRevision or XRD, and removes stale grants on every reconcile.added
  • The RBAC manager only binds a provider's ServiceAccount when its runtime Deployment is in Crossplane's namespace and is controlled by the exact ProviderRevision.added
  • A claim that can't look up its XRD now fails reconciliation, so it can't bypass an XRD's enforcedCompositionRef.added
  • Other notable improvements:added
  • New Helm values webhooks.usage.failurePolicy (Fail or Ignore) and usages.enabled let you relax or remove the Usage webhook, which previously blocked Azure AKS cluster stop on clusters running Crossplane.added
  • Crossplane-edit and crossplane-admin users can now kubectl scale XRs and claims whose XRD serves the scale subresource.added
  • Providers and other packages with packagePullPolicy: Always no longer download the package again every minute when its tag still points to the same digest. Previously a slow registry could mark healthy Providers Unhealthy. crossplane/crossplane-runtime#1242, fixing #7984.added
  • A new package revision now reliably takes ownership of its objects during upgrades, which could previously leave it unhealthy with no runtime. #7733,added
  • An ImageConfig that only sets a runtime config is now applied right away instead of on the next resync.added
  • DeploymentRuntimeConfig has a drc short name.added
  • Operations now record how many resources they applied in status.appliedResources, shown in the APPLIED column of kubectl get operations. #7885, backported in #8075.added
  • Add events.k8s.io to RBAC rules for provider event recordingadded
  • Add RTL Nederland to ADOPTERS.mdadded
  • Add one-pager for ProviderConfig deletion protection under foreground deletionadded
  • Make Usage webhook failurePolicy configurable and gate it on Usagesadded
  • Add one-pager for function-controlled deletionadded
  • Allow function pipelines to reference functions by OCI refadded
  • Allow users with crossplane-edit and crossplane-admin access to scale XRs that serve itadded
  • Add a deletion policy to Compositionsadded
  • Add drc shortName to DeploymentRuntimeConfigadded
  • Strip CRD schemas from the engine cacheadded
  • Function-controlled deletion of composite resourcesadded
  • Add optional credentials for composition functionsadded
  • Render deletion of composite resourcesadded
  • Add the status.appliedResourceCount fieldadded
  • Pin negz/create-tag to v2 so apis/ submodule tagging works againfixed
  • Correct typos in code commentsfixed
  • Take control of established objects from replaced revisionsfixed
  • Demote old revision controller ownerReference for SAfixed
  • Fail closed when a claim cannot list its XRDfixed
  • Stop rewriting the in-use label on every Usage reconcilefixed
  • Skip no-op status writes in MRD, MRAP and PackageRevisionfixed
  • Check scope of every resource composed by a namespaced XRfixed
  • Limit provider Deployment discovery to runtime namespacefixed
  • Derive generated roles from owned CRDsfixed
  • Blog post:other
  • Release notes:other
  • E2e: Use xpkg.upbound.io for private package pull testother
  • Skip incomplete version tags in findDependencyVersionToUpdateother
  • Resolver: check type assertion before using its valueother
  • Design: Propose a new approach to controlled rollout of composition functionsother
  • Composition: Garbage collect unused CompositionRevisionsother
  • Enqueue package revisions for runtime-only ImageConfigsother
67 maintenance lines (dependency bumps, CI, tests, docs)
  • Bump crossplane-runtime to v2.5.0-rc.0maintenance
  • Add release-2.4 to renovate baseBranchesmaintenance
  • Update renovatebot/github-action action to v46.2.2 (main)maintenance
  • Lock file maintenance (main)maintenance
  • Post v2.4 release tasksmaintenance
  • Lock file maintenance (main)maintenance
  • Lock file maintenance (main)maintenance
  • Update module github.com/crossplane/crossplane/apis/v2 to v2.4.0 (main)maintenance
  • Update renovatebot/github-action action to v46.2.4 (main)maintenance
  • Add AI contribution policymaintenance
  • Bump go to 1.26maintenance
  • Add non-goal that Composition authors are trustedmaintenance
  • Update governance to use .project maintainer listmaintenance
  • Update cachix/install-nix-action digest to 13d8dd5 (main)maintenance
  • Update renovatebot/github-action action to v46.3.2 (main)maintenance
  • Update actions/stale action to v11 (main)maintenance
  • Update e2e-manifests (main)maintenance
  • Update module github.com/alecthomas/kong to v1.16.1 (main)maintenance
  • Update github/codeql-action digest to 1c5b675 (main)maintenance
  • Fix tests broken by the provider-nop v0.5.0 bumpmaintenance
  • Update korthout/backport-action action to v4.7.0 (main)maintenance
  • Update renovatebot/github-action action to v46.3.6 (main)maintenance
  • Update module github.com/prometheus/client_golang to v1.24.1 (main)maintenance
  • Update module golang.org/x/sync to v0.23.0 (main)maintenance
  • Update dependency renovate to v44.132.1 (main)maintenance
  • Update github/codeql-action digest to 2892aa5 (main)maintenance
  • Update module github.com/google/go-containerregistry to v0.22.1 (main)maintenance
  • Update module google.golang.org/protobuf to v1.36.12 (main)maintenance
  • Update jlumbroso/free-disk-space action to v2 (main)maintenance
  • Update dependency ubuntu to v26 (main)maintenance
  • Update cachix/cachix-action digest to 38b0826 (main)maintenance
  • Update codecov/codecov-action digest to 303a32d (main)maintenance
  • Update module github.com/crossplane/crossplane/apis/v2 to v2.4.2 (main)maintenance
  • Update module google.golang.org/grpc to v1.84.0 (main)maintenance
  • Update e2e-manifests to v0.6.0 (main)maintenance
  • Update dependency renovate to v44.133.0 (main)maintenance
  • Update renovatebot/github-action action to v46.3.7 (main)maintenance
  • Update dependency renovate to v44.135.0 (main)maintenance
  • Update dependency renovate to v44.161.2 (main)maintenance
  • Update github/codeql-action digest to 6f2ac81 (main)maintenance
  • Update cachix/install-nix-action digest to 448cde7 (main)maintenance
  • Update actions/create-github-app-token digest to 64ab729 (main)maintenance
  • Update actions/upload-artifact digest to cf430e0 (main)maintenance
  • Update renovatebot/github-action action to v46.3.9 (main)maintenance
  • Update dependency renovate to v44.171.1 (main)maintenance
  • Update module github.com/alecthomas/kong to v1.16.1 (main)maintenance
  • Add Wordfully to adoptersmaintenance
  • Lock file maintenance (main)maintenance
  • Lock file maintenance (main)maintenance
  • Renovate: Group non-major go dependency updates to avoid conflictsmaintenance
  • Bump crossplane-runtimemaintenance
  • Lock file maintenance (main)maintenance
  • Fix repository for free-disk-space actionmaintenance
  • Update github/codeql-action digest to 33d7b85 (main)maintenance
  • Update docker/login-action digest to 8aa5831 (main)maintenance
  • Update cachix/install-nix-action digest to 75c75c3 (main)maintenance
  • Update dependency renovate to v44.221.4 (main)maintenance
  • Update korthout/backport-action action to v4.7.1 (main)maintenance
  • Update buildpulse/buildpulse-action digest to e27b872 (main)maintenance
  • Update bufbuild/buf-action digest to 37ac33d (main)maintenance
  • Update dependency renovate to v44.222.5 (main)maintenance
  • Update dependency renovate to v44.235.1 (main)maintenance
  • Update go dependencies (main)maintenance
  • Update renovatebot/github-action action to v46.3.13 (main)maintenance
  • Bump crossplane-runtime to v2.5.0-rc.1maintenance
  • Give lifecycle DeleteClaim more time after a version switchmaintenance
  • Bump crossplane-runtime to v2.5.0maintenance
146 lines11 security1 removed44 added5 changed10 fixed8 other67 maintenancetyped from the source notes

Full release notes ↗ · all Crossplane releases

written by claude-haiku-5-5, prompt 7cbe154, checked by publish rules

Report a mistake

context

Tools

Crossplane

Other Crossplane releases

How this was written

The change list is the project's own release notes, sorted into change types by fixed rules. The summary was written from the original by the model named above, checked by fixed publishing rules, and read by an editor after publication. See the methodology.

Back to the feed