-
Notifications
You must be signed in to change notification settings - Fork 47
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
Validate/test if cluster configuration property of type string can be un-set #162
Comments
I don't think there's a way for us to null out something. We depend upon the existence of the key/value in the dict in order to send something to
|
Thinking about this a bit more: since the |
To achieve this we'd likely need to write an RPK module for ansible and define state. We'd then use RPK to check the state of the config value, and remediate accordingly if state is set to present (set to the value provided) or absent (set to null). This is a longer term project, so isn't something we can solve right away. It's necessary for most of the administrative playbooks people want us to put together so it is something on my personal todo list. As it stands today, my recommendation for people who want to shift how their cluster works while using ansible would be for them to change up the playbook and then engage in manual remediation with RPK to ensure the changes are sound. That's the method most likely to lead to good outcomes today. |
The
rpk cluster config set
at the moment of writing has the following logic:https://github.com/redpanda-data/redpanda/blob/c3cca097b01c250715fd4012bac175f09c26778e/src/go/rpk/pkg/cli/cmd/cluster/config/set.go#L85-L99
This mean that if any property of type string which has different default value then
""
(empty string) can not be unset.I didn't test it, but it might be worth checking the
rpk cluster config import
https://github.com/redpanda-data/redpanda/blob/c3cca097b01c250715fd4012bac175f09c26778e/src/go/rpk/pkg/cli/cmd/cluster/config/import.go#L98-L223
Related issue redpanda-data/helm-charts#395
The text was updated successfully, but these errors were encountered: