-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: update version of the kafka admin SDK #848
Conversation
pkg/api/api.go
Outdated
@@ -11,7 +11,7 @@ import ( | |||
type API struct { | |||
Kafka func() kafkamgmtclient.DefaultApi | |||
ServiceAccount func() kafkamgmtclient.SecurityApi | |||
KafkaAdmin func(kafkaID string) (kafkainstanceclient.DefaultApi, *kafkamgmtclient.KafkaRequest, error) | |||
KafkaAdmin func(kafkaID string) (kafkainstanceclient.TopicsApi, kafkainstanceclient.GroupsApi, *kafkamgmtclient.KafkaRequest, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KafkaAdmin func(kafkaID string) (kafkainstanceclient.TopicsApi, kafkainstanceclient.GroupsApi, *kafkamgmtclient.KafkaRequest, error) | |
KafkaAdmin func(kafkaID string) (kafkainstanceclient, *kafkamgmtclient.KafkaRequest, error) |
If we return the full API client like this, it can be used like: _ = api.TopicsApi.GetTopic()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This requires refactor of the KeycloakConnection so it will take some time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see us return the full Kafka Admin client as suggested rather than returning multiple API groups
@craicoverflow kafkainstanceclient is namespace. |
Actually SDK returns: kafkainstanceclient.APIClient and that should be used, however this conflicts with unit testing capabilities etc. Still this is as good we can go without large refactor |
New API splits for topics/groups/acls.
I did not add ACL API yet but have concerns how to do update CLI.
We can either do this:
Or this:
Opinions? FIrst approach is implemented in PR