feature: Do not require APIConversion
to exist for APIResourceSchema
if no conversion required
#2696
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Feature Description
Currently, if an
APIResourceSchema
supports multiple versions and there is no correspondingAPIConversion
, creating anAPIBinding
for anAPIExport
that includes theAPIResourceSchema
fails. In short, anAPIConversion
is required for anyAPIResourceSchema
with multiple versions, even if theAPIConversion
contains no conversion information (i.e. emptyspec
).Proposed Solution
If no conversion information is required to move from one version to another, for example when the versions are identical or dropping fields is acceptable, it would be convenient to assume that the lack of an
APIConversion
is equivalent to the presence of an emptyAPIConversion
.Alternative Solutions
The alternative would be to keep the current system, or have the system generate the no-op
APIConversion
in the cluster and manage its lifecycle. However, in the latter case it would be unclear as to whether the user is planning to add anAPIConversion
but just created theAPIResourceSchema
first.Want to contribute?
Additional Context
No response
The text was updated successfully, but these errors were encountered: