Skip to content

fix: changes required for Kafka SDK update#1470

Merged
wtrocki merged 1 commit intomainfrom
kafka-sdk
Mar 14, 2022
Merged

fix: changes required for Kafka SDK update#1470
wtrocki merged 1 commit intomainfrom
kafka-sdk

Conversation

@wtrocki
Copy link
Collaborator

@wtrocki wtrocki commented Mar 11, 2022

I have verified all commands manually:

  • Topics
  • Consumer-Groups
  • ACLs

Just minor changes were required.

@wtrocki wtrocki requested a review from rkpattnaik780 March 11, 2022 14:38
return err
}

offsetEnum, _ := kafkainstanceclient.NewOffsetTypeFromValue(opts.offset)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should handle error as we are doing validation before so we are guaranteed to have valid offset.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can skip handling here.

apiURL, _ = url.Parse(apiHost)
apiURL.Scheme = "https"
apiURL.Path = "/rest"
apiURL.Path = "/"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have zero impact when we move to /api/v1

return err
}

offsetEnum, _ := kafkainstanceclient.NewOffsetTypeFromValue(opts.offset)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can skip handling here.

@wtrocki
Copy link
Collaborator Author

wtrocki commented Mar 14, 2022

@rkpattnaik780 I will merge so we can do automatic tests and rebase other PRs

@wtrocki wtrocki merged commit 72515dc into main Mar 14, 2022
@wtrocki wtrocki deleted the kafka-sdk branch March 14, 2022 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants