Expand description
This crate enables versioning of structs and enums through procedural macros.
Currently supported versioning schemes:
- Kubernetes API versions (eg:
v1alpha1,v1beta1,v1,v2), with optional support for generating CRDs.
Support will be extended to SemVer versions, as well as custom version formats in the future.
See versioned for an in-depth usage guide and a list of supported arguments.
Structs§
- Changed
Value - Contains a changed value for a single field of the CRD.
- Changed
Values - Contains changed values during upgrades and downgrades of CRDs.
- Unknown
Desired ApiVersion Error
Enums§
- Convert
Object Error - This error indicates that converting an object from a conversion review to the desired version failed.
- Parse
Object Error - This error indicates that parsing an object from a conversion review failed.
Traits§
- Tracking
From - A value-to-value conversion that consumes the input value while tracking changes via a Kubernetes status.
- Tracking
Into - A value-to-value conversion that consumes the input value while tracking changes via a
Kubernetes status. The opposite of
TrackingFrom. - Tracking
Status - Used to access
ChangedValuesfrom any status.
Functions§
Attribute Macros§
- versioned
- This macro enables generating versioned structs and enums.