farm: add --quiet/-q flag to podman farm list - #29536
Open
umar11b wants to merge 1 commit into
Open
Conversation
The farm command is helpful when it comes to building multi-architecture container images, with a build out on various different CPU architecture machines (e.g. amd64, arm64 etc). This produces a multi-architecture image usable on many different kinds of machines. Once those farms are built, we can list them out (ls) in a human readable format. Currently, podman farm list prints out every field (name, connections, default, etc). The --quiet/-q flags cut the noise by only printing the names of the farms, rather than all the other farm list metadata. The benefit of having this feature is for automation and scripts to pull just the farm names from the list, which is mostly important for CI pipelines to loop over. Signed-off-by: umar11b <uzaman2018@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The command feature 'farm' is really helpful when it comes to building multi-architecture container images, with a build out on various different CPU architecture machines (e.g. amd64, arm64 etc.). With this we essentially produce a multi-architecture image useable on many different kinds of machines. Once those farms are built, we can list them out (ls) in a human readable format.
Essentially, when we do a 'podman farm list', it will print out every field (e.g. name, connections, default etc.). What --quiet & -q flags does is it cuts the noise by ONLY printing the names of the farms, rather than all the other farms list metadata.
Benefits of having this feature in the future is for automation and scripts to just pull the farm names from the list. This is mostly important for the CI pipelines to loop over.
Note: make validatepr fails at hack/ci/pr-removes-fixed-skips.t due to a missing Perl module (Test::Differences) in the validatepr container image; Unrelated to this change. All lint/format/docs steps (golangci-lint, pre-commit hooks, markdown-preprocess, xref-helpmsgs-manpages) passed clean.
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
Yes; Please refer to the video demo along with the release notes
Screen.Recording.2026-08-15.at.8.32.53.PM.mov