Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes #27121. quadlet: add Pod field to quadlet list output#27552

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
codynguyen-dev wants to merge1 commit intocontainers:main
base:main
Choose a base branch
Loading
fromcodynguyen-dev:quadlet-list-pod-field

Conversation

@codynguyen-dev
Copy link
Contributor

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • [x ] Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all
    commits. (git commit -s). (If needed, usegit commit -s --amend). The author email must match
    the sign-off email address. SeeCONTRIBUTING.md
    for more information.
  • Referenced issues usingFixes: #00000 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits passmake validatepr (format/lint checks)
  • Release note entered in the section below (orNone if no user-facing changes)

Does this PR introduce a user-facing change?

quadlet: `podman quadlet list` now supports a `.Pod` field in `--format` to display which pod a container quadlet belongs to

Copy link
Member

@Honny1Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Code LGTM. Please add a test for listing quadlets to this file:https://github.com/containers/podman/blob/main/test/system/253-podman-quadlet.bats

codynguyen-dev reacted with thumbs up emoji
@TomSweeneyRedHat
Copy link
Member

Code LGTM
As@Honny1 noted, please add a test.

codynguyen-dev reacted with thumbs up emoji

@codynguyen-dev
Copy link
ContributorAuthor

@Honny1 just pushed the test! let me know how it looks

Copy link
Member

@Honny1Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I checked the new test. Overall, it looks good, but it fails. I added an explanation of where the problem is.

Comment on lines 534 to 535
assert "$output" =~ $'standalone.container[[:space:]]*$' "standalone container should have empty pod field"
assert "$output" =~ $'test-pod.pod[[:space:]]*$' "pod itself should have empty pod field"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The test fails because$ matches the end of the entire$output string. If you want to match the end of the line, you need to use\n.

codynguyen-dev reacted with heart emoji
@mheon
Copy link
Member

/approve

@openshift-ciopenshift-cibot added the approvedIndicates a PR has been approved by an approver from all required OWNERS files. labelNov 20, 2025
| .App| Name of application if Quadlet is part of an app|
| .Name| Name of the Quadlet file|
| .Path| Quadlet file path on disk|
| .Pod| Pod name (if the quadlet is part of a pod|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Recommend changing toPod name (if the quadlet is part of a pod - only applicable to .container files)

@mheon
Copy link
Member

I have a documentation nit. Code LGTM.

codynguyen-dev reacted with heart emoji

Fixes:containers#27121Signed-off-by: codynguyen-dev <codynnn@outlook.com>
@codynguyen-dev
Copy link
ContributorAuthor

@mheon@Honny1 sorry for the late response, but thank you for the suggestions! i just pushed the new test and documentation changes, and i think the PR should be good now :D

Copy link
Member

@Honny1Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM,

PTAL at the CI failure@timcoding1988

@openshift-ci
Copy link
Contributor

[APPROVALNOTIFIER] This PR isAPPROVED

This pull-request has been approved by:codynguyen-dev,Honny1,mheon

The full list of commands accepted by this bot can be foundhere.

The pull request process is describedhere

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mheonmheonmheon left review comments

@Honny1Honny1Honny1 approved these changes

Assignees

No one assigned

Labels

approvedIndicates a PR has been approved by an approver from all required OWNERS files.release-note

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@codynguyen-dev@TomSweeneyRedHat@mheon@Honny1

[8]ページ先頭

©2009-2025 Movatter.jp