-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cli: use StringArray over StringSlice Part 2 #20976
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
For reference part 1: #20945 |
All I have time for today is a first-pass review, but I've done so, commit by commit, and it LGTM. Nice work. |
This option accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts a file path so we should allow commas in it. Also add tests for --decryption-key Signed-off-by: Paul Holzinger <[email protected]>
This option accepts a file path so we should allow commas in it. There ar eno tests for this option, I have no idea what this option does nor how to use it so I cannot write one. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts arbitrary input so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
If a user did not set an equal sign in the annotation that old code would panic when accessing the second element in the slice. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts arbitrary input so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts arbitrary input so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
This option accepts arbitrary input so we should allow commas in it. Signed-off-by: Paul Holzinger <[email protected]>
LGTM again |
/lgtm |
5db4224
into
containers:main
This contains part 2 of the StringArray changes, with that all options I could clearly identify as accepting arbitrary input are converted. There are still a lot of StringSlice() calls used but these seem to accept "well defined" values, for example ip addresses. Thus I decided to leave them alone for now because I do not want to introduce breaking changes were it is not required.
see commits for details
Does this PR introduce a user-facing change?