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

cli: use StringArray over StringSlice Part 2 #20976

Merged
merged 9 commits into from
Dec 13, 2023

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Dec 11, 2023

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?

The following cli options have been changed so that multiple values are no longer split by comma. This allows values with comma in them to be used:
podman pull --decryption-key
podman push --encryption-key
podman image trust set --pubkeysfile
podman kube play --annotation
podman kube play --log-opt
podman kube play --configmap
podman manifest add/annotate --annotation

Copy link
Contributor

openshift-ci bot commented Dec 11, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 11, 2023
@Luap99
Copy link
Member Author

Luap99 commented Dec 11, 2023

For reference part 1: #20945

@edsantiago
Copy link
Member

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]>
@edsantiago
Copy link
Member

LGTM again

@rhatdan
Copy link
Member

rhatdan commented Dec 13, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 13, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit 5db4224 into containers:main Dec 13, 2023
89 of 92 checks passed
@Luap99 Luap99 deleted the string-array branch December 13, 2023 12:57
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Mar 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants