-
Notifications
You must be signed in to change notification settings - Fork 13
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 Controller listener to the advertised.listeners #111
Conversation
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 think you need to be careful with this. You want to listen on 0.0.0.0. But you do not want to advertise it. That does not seem to be what you are doing here.
I see, currently, we have in single-node this configuration
for the controller listener, I had to change it to DNS [1] i.e., [1] - apache/kafka@9be27e7 |
No. You need to add the controller to the advertised hosts. |
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]> # Conflicts: # src/test/java/io/strimzi/test/container/AbstractIT.java
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
585d1fa
to
9472f2a
Compare
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
public static String extractVersionFromImageName(final String imageName) { | ||
final Matcher matcher = KAFKA_VERSION_PATTERN.matcher(imageName); | ||
if (matcher.find()) { | ||
return matcher.group(1); // Returns the Kafka version string like "3.9.0" |
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.
This is pretty unreliable. I think we need to have better way to configure KAfka version than through the container image. If you do not want to solve it in this PR it might be fine, but we should have issues to track this.
This is pretty likel to fail when using custom images when in various ofline / disconnected environments, when you want to fix to use some specific image through digest etc.
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.
Yeah, I was thinking about the same with custom images. I can create an issue when I solve that also for custom images or at least log a warning when using custom images.
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 think it should work like this:
- The builders should have a
withVersion
field/method - If not set, the default version (the latest Kafka version) should be used
- The image should be by the users always set to correspond to the version
I think that is the way it should work. (As I said, I'm happy to leave it for later and not block this PR.)
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.
Yeah, I think I have come up with a more clear solution. Let me know what you think
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.
Okay, that doesn't seem to work :/. I will have to think about that.....created issue [1] to track it. And I rollback that solution I had previously.
[1] - #112
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
This PR adds the
CONTROLLER
toadvertised.listeners
.