-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Do not require APIConversion
to exist for APIResourceSchema
if no conversion required
#2696
Comments
/assign |
Thanks for filing! We do need to add a spec field on APIRS to indicate to kcp that the developer intends to supply an APIConversion. We need to know definitively if an APIConversion is expected, or not. |
@ncdc ack -- adding a I would advocate for the latter strategy of using a |
I think @sttts suggested in Slack to have an enum for |
@ncdc Given the original set of steps that led to this issue being opened (and mirroring CRD behavior), I would think |
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: