Skip to content
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

Add ability to specify additional container ports for kafka clusters (#897) #898

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

david-simon
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets #897
License Apache 2.0

What's in this PR?

Allows users to specify additional ports to expose from the container.
A new field named 'AdditionalPorts' was added to 'KafkaClusterSpec' with '[]corev1.ContainerPort' type.

Why?

Some kafka distributions have integrated services that expose resources and metrics through a HTTP endpoint. This change allows users to reach those services as well.
Additionally this can be used to open a port for remote debugging.

Additional context

The change was tested manually.

Checklist

  • Implementation tested

@david-simon david-simon requested a review from a team as a code owner November 23, 2022 09:18
@CLAassistant
Copy link

CLAassistant commented Nov 23, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@panyuenlau panyuenlau left a comment

Choose a reason for hiding this comment

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

Thanks for the contributions! Can you add an example here https://github.com/banzaicloud/koperator/blob/master/config/samples/banzaicloud_v1beta1_kafkacluster.yaml#L7 to illustrate how this field can be used in the CR?

@david-simon
Copy link
Contributor Author

Thanks for the contributions! Can you add an example here https://github.com/banzaicloud/koperator/blob/master/config/samples/banzaicloud_v1beta1_kafkacluster.yaml#L7 to illustrate how this field can be used in the CR?

Sure, I added an example there

Copy link
Member

@panyuenlau panyuenlau left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for your contribution :shipit:

@pregnor pregnor merged commit 49c1079 into banzaicloud:master Nov 30, 2022
@david-simon david-simon deleted the issue-897 branch November 30, 2022 16:12
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.

5 participants