The API handling for the declarative apply feature is currently a single endpoint
that acts as a switch for all registered handlers.
Extending the supported apiVersions and object kinds requires manually adding a function
to the set of registered appliers reachable for this single, in-process, handler.
apiVersions and kinds are expected in the foreseeable future.Instead of using a signle apply API endpoint create more explict ones.
The exact path is to be defined later but similar to any of:
/api/apply/{apiVersion}/{kind}/api/v0/apply/{apiVersion}/{kind}/api/{apiVersion}/apply/{kind}The idea:
apply endpoint to proxy proxy to the new endpoints.replictl apply to use the new endpoints directly.This new format would allow more flexibility and a more additive & decoupled architecture.