v0.2.0
Release v0.2.0 - function-deletion-protection
Overview
This release introduces major functionality enabling Crossplane Operations support, allowing protection of any Kubernetes resource beyond composed resources in pipelines, plus code quality enhancements and improved documentation.
This is the first release out of the Crossplane-contrib GitHub org via https://github.com/crossplane-contrib/function-deletion-protection and published to the Upbound Marketplace.
Key Features
Operations Support
The function now integrates with WatchOperation to protect arbitrary Kubernetes resources. When resources matching watch conditions receive specific labels, the system automatically generates Usage objects preventing deletion.
An example of Protecting namespaces from deletion via labeled resources has been created at https://github.com/crossplane-contrib/function-deletion-protection/tree/main/examples/operations.
Enhanced Usage Reason Strings
The release provides more descriptive reason messages:
- Label-based protection identification
- Composite resource protection tracking
- Operation and WatchOperation attribution
Documentation Improvements
- Reorganized examples into composition and operations directories
- Enhanced README with Operations guidance
- Clearer Crossplane version compatibility notes
Installation
Install via Crossplane package specification using the image:
apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: crossplane-contrib-function-deletion-protection
spec:
package: xpkg.upbound.io/crossplane-contrib/function-deletion-protection:v0.2.0Compatibility
- Crossplane 2.x required for Operations
- Composition pipeline support: Crossplane 1.x and 2.x
- V1 mode available for older clusters
What's Changed
- update for crossplane-contrib repo by @stevendborrelli in #1
New Contributors
- @stevendborrelli made their first contribution in #1
Full Changelog: https://github.com/crossplane-contrib/function-deletion-protection/commits/v0.2.0