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

docs(api): updates description of config exclusions #11139

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PaulRMellor
Copy link
Contributor

@PaulRMellor PaulRMellor commented Feb 12, 2025

Documentation

Updates description of config exclusions for KafkaClusterSpec considering support ending for ZooKeeper

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Check RBAC rights for Kubernetes / OpenShift roles
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging
  • Update CHANGELOG.md
  • Supply screenshots for visual changes, such as Grafana dashboards

Signed-off-by: prmellor <pmellor@redhat.com>
@PaulRMellor PaulRMellor added this to the 0.46.0 milestone Feb 12, 2025
Copy link
Member

Choose a reason for hiding this comment

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

Please don't change this. This can have all kind of consequences. I would changeonly the handwritten list in documentation/api/io.strimzi.api.kafka.model.kafka.KafkaClusterSpec.adoc.

Copy link
Member

Choose a reason for hiding this comment

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

What are the consequences you are referring to? ZooKeeper is not supported anymore why should we keep those ZK related configurations as forbidden? The only reason I can think of is that with the coming Strimzi we don't support ZooKeeper anymore but the Kafka 3.9 version has still such support and not forbidding zookeeper. stuff it would allow the user to set them in the custom resource and messing up with the cluster?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it would be okay to take them out, but I've just reverted.

Copy link
Member

Choose a reason for hiding this comment

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

What are the consequences you are referring to? ZooKeeper is not supported anymore why should we keep those ZK related configurations as forbidden? The only reason I can think of is that with the coming Strimzi we don't support ZooKeeper anymore but the Kafka 3.9 version has still such support and not forbidding zookeeper. stuff it would allow the user to set them in the custom resource and messing up with the cluster?

There might be all kind of validations, warnings, etc.

Also, TBH, we do not really want these to just make the config files more confusing either. You do not want to spend the time on some log showing you that it has ZooKeeper configured just to find out few days later that it is a Kraft cluster where a user for some reason put these values into .spec.kafka.config. (and yes, there are users who have these things configured in the Kafka CR fro years and do not really understand that they are completely ignored 🤷 )

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could at least adding a code comment on the top of the FORBIDDEN_PREFIXES declaration mentioning why the zookeeper. stuff is there. I could expect someone coming on the same code in the next months/years and trying to open a PR to remove them. @PaulRMellor can you do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. We could add something to the property description.

Copy link
Member

@scholzj scholzj Feb 13, 2025

Choose a reason for hiding this comment

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

I would leave it as is TBH. If someone removes it next year, nobody might care anymore maybe?

Copy link
Member

Choose a reason for hiding this comment

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

Next year, for sure, but what if someone does beforehand in the next coming months ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the description in the code to make it clear that the zookeeper options are no longer relevant

Signed-off-by: prmellor <pmellor@redhat.com>
@PaulRMellor PaulRMellor self-assigned this Feb 13, 2025
Signed-off-by: prmellor <pmellor@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants