-
Notifications
You must be signed in to change notification settings - Fork 579
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
RPK transmutes redpanda CLI args without equals sign #4778
Comments
We also have a competing idea of completely removing |
@twmb - ping the check if this is on deck to be fixed soonish. We have applied a workaround inside redpanda itself to strip the Is the problem that adding |
The problem is this logic: redpanda/src/go/rpk/pkg/cli/cmd/redpanda/start.go Lines 807 to 852 in b5a9328
(particularly line 842 and 843) assumes boolean flags must be passed to redpanda with the value of true . It looks as if every flag (key) must have a value.
The logic to fix this would probably be a bit deeper. The logic here: redpanda/src/go/rpk/pkg/redpanda/launcher.go Lines 92 to 107 in b5a9328
adds key, value flags when invoking redpanda. The change could probably be:
This entire bit could probably be a bit simpler, but the proposal in this comment would be a quick fix cc @r-vasquez |
Note that is start is removed we need something to do sys checks and error out if not a good working environment |
Line 99 already does this so it's easier, pushing a fix in a min. |
To avoid regression, reproduce redpanda-data#4778
To avoid regression, reproduce redpanda-data#4778
To avoid regression, reproduce redpanda-data#4778
Version & Environment
Redpanda version: latest (rev 54f2f84)
What went wrong?
Failed to start redpanda when specifying
--abort-on-seastar-bad-alloc
on the command line.What should have happened instead?
Redpanda should start with that CLI argument passed by
rpk
.How to reproduce the issue?
cd
into the build dir (dir that containsbin
directory)rpk redpanda start --config ../../../rp-localhost.yaml --install-dir . --abort-on-seastar-bad-alloc
Additional information
Evidently
rpk
transforms arguments of the form--foo
into-foo=true
, however this is not a valid transformation for all arguments, e.g., not for the one specified above.-foo=
is also transmuted the same way. However,-foo=
specified in the the config sectionrpk.additional_start_flags
does work per @r-vasquez.The text was updated successfully, but these errors were encountered: