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 apiVersion
s and object kind
s requires manually adding a function
to the set of registered appliers reachable for this single, in-process, handler.
apiVersion
s and kind
s are expected in the foreseeable future.Instead of using a single apply
API endpoint create more explicit 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.