Evolving the APIs
Crossplane is primarily an API-based infrastructure automation platform. Changes to the APIs are inevitable as the business requirements and technology landscape evolve. We can classify these changes into three different buckets:
- API implementation change
- Non-breaking API contract change
- Breaking API contract change
Let’s start with the API implementation change.
API implementation change
These changes are limited to the API implementation details without any changes to the contract. In other words, these are changes to Compositions YAML, a construct used by XR for API implementation. CompositionRevision
is the Crossplane concept that will work with compositions to support such changes. If the --enable-composition-revisions
flag is set while installing Crossplane, a CompositionRevision
object is created with all the updates to composition. The name of the CompositionRevision
object is autogenerated on every increment. The compositions...