management-api-for-apache-cassandra icon indicating copy to clipboard operation
management-api-for-apache-cassandra copied to clipboard

K8SSAND-969 ⁃ Create a k8ssandra wrapper library for the mgmt api Go client

Open sync-by-unito[bot] opened this issue 4 years ago • 3 comments

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

sync-by-unito[bot] avatar Oct 14 '21 12:10 sync-by-unito[bot]

Is this a custom wrapper or just a generated client from the OpenAPI spec?

bradfordcp avatar Apr 08 '22 01:04 bradfordcp

➤ John Sanda commented:

It's generated but a bit more involved. emerkle826 can shed more light.

sync-by-unito[bot] avatar Apr 08 '22 01:04 sync-by-unito[bot]

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.

emerkle826 avatar Apr 08 '22 13:04 emerkle826