-
Notifications
You must be signed in to change notification settings - Fork 71
Improve template behavior in Kafka Node Pools #181
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
base: main
Are you sure you want to change the base?
Improve template behavior in Kafka Node Pools #181
Conversation
Signed-off-by: Jakub Scholz <[email protected]>
Is there any reason why the merge would only happen on the top-level properties and not all the way down as per the strategic merge patch semantics from kubernetes? As a user that would be what I would expect to happen, or the previous behaviour where it was all overriden. The middle ground seems like the worst in terms of communicating the behaviour. I do believe that in general this is a step in the right direction though and I do prefer it to the status quo. |
I guess that would make it essentially impossible to unset anything that is set in the And TBH, for me personally, it would be a very unexpected behavior. (But I might not be the best sample on which to define what would and would not be expected of course) |
I do concur that unsetting items with SMP (strategic merge patch) is quite annoying but there is a way to do it in kustomize with the |
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.
LGTM. It describes what was discussed so I am fine with it.
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.
Looks good
Proposal shows the benefits of allowing merge in template behavior
Clear docs will be an important aspect of the change
Co-authored-by: PaulRMellor <[email protected]> Signed-off-by: Jakub Scholz <[email protected]>
Signed-off-by: Jakub Scholz <[email protected]>
Thanks for addressing comments. |
This proposal tries to address the discussion outcome from strimzi/strimzi-kafka-operator#11791 and proposes a change to how we treat situations when the template section is configured in both
Kafka
andKafkaNodePool
resources. This is a breaking change for users who are in this situation. But based on the previous discussion, it seems to be the preferred way going forward, and should be more understandable to users.