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

Support rpk cluster config set param=value #12862

Closed
patrickangeles opened this issue Aug 16, 2023 · 0 comments · Fixed by #13325
Closed

Support rpk cluster config set param=value #12862

patrickangeles opened this issue Aug 16, 2023 · 0 comments · Fixed by #13325
Labels
area/rpk kind/enhance New feature or request

Comments

@patrickangeles
Copy link

Currently the syntax goes:

rpk cluster config set <parameter> <value>

This doesn't work for when the value is a negative number, because of how POSIX flags commonly work.

rpk cluster config set delete_retention_ms -1
Error: unknown shorthand flag: '1' in -1

The following does work:

rpk cluster config set -- delete_retention_ms -1

We can also propose an alternative that is more intuitive:

rpk cluster config set delete_retention_ms=-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpk kind/enhance New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants