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 topic configuration settings to KafkaTopic CR status #5758
Comments
This feature suggestion was originally discussed in the community call as a result of discussions around issue #5681. However upon further investigation I noted that the KafkaTopic CRD contains a minimum value for partitions and replication factor. https://github.com/strimzi/strimzi-kafka-operator/blob/main/packaging/install/cluster-operator/043-Crd-kafkatopic.yaml#L62 I believe this means that the default is actually never taken if developers use the KafkaTopic CR. I tested this theory by creating a KafkaTopic with |
I believe my tests were against that version of the CRD. I do not see the |
Hmm, I guess it was not properly tested in that case. The idea was that you don't specify these fields and without them the Kafka cluster defaults will be used. :-( |
@katheris had you configured the The TO is a bit weird in that it doesn't follow the usual operator pattern of treating the |
tl;dr On reflection, I think adding this info to status will likely confuse people since the |
Ah @tombentley I hadn't realised the topic operator would update the spec, I had assumed it was Kubernetes filling it in. I will have another go with the topic operator turned off and see what the behaviour is. But if you are correct and the topic operator will update the spec with the value that is being used, then I agree that perhaps we don't need it in the status. |
@katheris Did you had a chance to look into it? Is this still something we want / need? |
Hey @scholzj, I've tested this and without the topic operator enabled I can create a |
Is your feature request related to a problem? Please describe.
As a user when I create a KafkaTopic it would be useful to see what configuration has been applied to the topic as some of these values may be set based on either Kafka or Strimzi defaults. This issue is being created based on a discussion in the community call on 21st October 2021.
Describe the solution you'd like
Add configuration details such as replication factor and minimum insync replicas into the KafkaTopic CR status field.
Describe alternatives you've considered
As an alternative developers could specify these values themselves in the CR so that they don't use any defaults
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: