Crossplane v2.5.0-rc.1 Introduces Function-Controlled Deletion and OCI Digest Referencing for Enhanced Composition
Crossplane has released v2.5.0-rc.1, an important release candidate that introduces several key features aimed at enhancing the flexibility and reliability of infrastructure composition. Most notably, this version includes an alpha implementation of function-controlled deletion, allowing composition functions to dictate the order and method of resource teardown. This directly addresses the need for more sophisticated deletion logic beyond the default background or foreground options. Another significant addition is the alpha capability to reference composition functions by their OCI digest, promoting immutability and verifiable deployments.
This release matters deeply to platform engineers and DevOps practitioners who are building sophisticated internal developer platforms (IDPs) with Crossplane. The ability to control deletion through functions unlocks scenarios where resources have interdependencies that require specific shutdown sequences, preventing orphaned resources or service disruptions during deprovisioning. For example, a database might need to be backed up before its instance is terminated, or a load balancer might need to be drained before its associated services are removed. Referencing functions by OCI digest is equally critical for security and operational consistency, ensuring that the exact version of a function used in a composition is immutable and auditable, mitigating risks associated with mutable tags or accidental changes.
These features align with the broader trend in cloud-native platforms towards greater control, automation, and security in infrastructure management. As organizations increasingly adopt GitOps principles and strive for fully declarative infrastructure, the need for precise lifecycle management and verifiable components becomes paramount. Crossplane, by extending Kubernetes' control plane capabilities to external infrastructure, naturally evolves to meet these demands. The introduction of composition functions in earlier versions already pushed the boundaries of dynamic infrastructure provisioning, and these new features further solidify Crossplane's position as a powerful tool for building highly customized and resilient control planes.
In practice, practitioners should begin experimenting with these alpha features in non-production environments. For function-controlled deletion, this means carefully designing deletion logic within composition functions to handle complex resource dependencies. This will require a deeper understanding of the resource graph and potential failure modes during teardown. For OCI digest referencing, it implies adopting a more rigorous approach to function packaging and versioning, potentially integrating with existing CI/CD pipelines to ensure that function images are built, pushed, and referenced by their immutable digests. While these features are in alpha, early adoption and feedback will be crucial for shaping their maturity and ensuring they meet real-world operational needs.
Read original source