Open sync-by-unito[bot] opened 3 years ago
➤ Christopher Bradford commented:
Is this a custom wrapper or just a generated client from the OpenAPI spec?
It's generated but a bit more involved. @emerkle826 can shed more light.
➤ Erik Merkle commented:
The intent of this ticket is to create a Go client library that is generated from the openapi/swagger spec in Management API. Then, in another ticket for k8ssandra, update the k8ssandra code to use this new Go client, as opposed to implementing all of the Management API interactions directly in k8ssandra. So this ticket essentially creates a standard public library that can be used by any applications wanting to invoke Management API endpoints. Perhaps "wrapper" wasn't a good way to word it.
Once the go client for the management api is available, we need to code a wrapper library to make it usable in the context of K8ssandra, or some facade code that would allow us to elegantly deal with sending requests to the right pods. This code should be generic in a way that it doesn't need to be updated when the Go Client gets modified to support a new operation.
┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: K8OP-102