Commit Graph

26046 Commits

Author SHA1 Message Date
Brent Baude
cfd4cc0932 remove libartifact from podman
pkg/libartifact has been moved to common and as such needs to be removed
from podman and the new common vendored in along with required deps.

https://issues.redhat.com/browse/RUN-3618

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-10-16 09:55:59 -05:00
openshift-merge-bot[bot]
571031f375 Merge pull request #27303 from goldlinker/main
chore: remove repetitive word in cmd/podman/README.md
2025-10-16 12:30:03 +00:00
goldlinker
b394fe1a87 chore: remove repetitive word in cmd/podman/README.md
Signed-off-by: goldlinker <goldlinker@outlook.jp>
2025-10-16 15:25:34 +08:00
openshift-merge-bot[bot]
86eecc976a Merge pull request #27289 from containers/renovate/actions-setup-node-6.x
[skip-ci] Update actions/setup-node action to v6
2025-10-14 15:54:37 +00:00
renovate[bot]
73e42b3c9c [skip-ci] Update actions/setup-node action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-14 05:09:32 +00:00
openshift-merge-bot[bot]
32d6c54054 Merge pull request #26624 from Odilhao/artifact-quadlet-implementation
Add artifact quadlet unit type support
2025-10-13 14:41:25 +00:00
openshift-merge-bot[bot]
d5b571056e Merge pull request #27262 from Honny1/flake-investigation
Fix flaky sysctl completion by handling /proc/sys errors gracefully
2025-10-10 18:31:43 +00:00
Odilon Sousa
34254cd1d0 Add artifact quadlet unit type support
RFE: Add artifact quadlet unit type #25778

Signed-off-by: Odilon Sousa <osousa@redhat.com>
2025-10-10 11:08:33 -03:00
Jan Rodák
6d63d165ef Fix flaky sysctl completion by handling /proc/sys errors gracefully
Skip directories on any error during /proc/sys traversal (race conditions,
permission denied, etc.) to provide partial completion results rather than
failing completely. Use filepath.WalkDir for better performance.

Fixes: #27252

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-10 10:53:36 +02:00
openshift-merge-bot[bot]
3e85b2ef8f Merge pull request #27250 from nimdrak/27120
Pod Quadlet can configure podman pod stop --time
2025-10-09 16:38:27 +00:00
openshift-merge-bot[bot]
8d71de5762 Merge pull request #27244 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.45.0
2025-10-09 16:24:09 +00:00
openshift-merge-bot[bot]
2816ab0fd0 Merge pull request #27257 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.36.0
2025-10-09 15:48:06 +00:00
openshift-merge-bot[bot]
39872c1f8d Merge pull request #27059 from Honny1/build-local-api
Add local build API for direct filesystem builds on MacOS and Windows
2025-10-09 15:45:14 +00:00
openshift-merge-bot[bot]
7ebc20b886 Merge pull request #27259 from lsm5/security-container-libs
SECURITY.md: point to container-libs
2025-10-09 15:30:41 +00:00
Jan Rodák
1656c90c6e Iterate through all machine providers in FindMachineByPort
Replace single provider.Get() with provider.GetAll() loop to search
across all available machine providers when finding machine by port.

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-09 15:14:51 +02:00
Jan Rodák
a1e7e9a46d Add local build API for direct filesystem builds on MacOS and Windows (only WSL)
Adds /libpod/local/build endpoint, client bindings, and path translation
utilities to enable container builds from mounted directories to podman machine without tar uploads.

This optimization significantly speeds up build operations when working with remote Podman machines by eliminating redundant file transfers for already-accessible files.

Fixes: https://issues.redhat.com/browse/RUN-3249

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-09 15:14:48 +02:00
renovate[bot]
1f1354c2a4 fix(deps): update module golang.org/x/term to v0.36.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-09 12:55:11 +00:00
ByoungUk Lee
e3c9fa6ddd Update docs for StopTimeOut
Signed-off-by: ByoungUk Lee <nimdrak@gmail.com>
2025-10-09 01:52:26 +00:00
Lokesh Mandvekar
6786f59648 SECURITY.md: point to container-libs
The containers/common repo README has a Warning on top about the package
being moved. So, the SECURITY.md link should be updated as well to point
to the actively maintained repo.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2025-10-08 18:40:09 -04:00
openshift-merge-bot[bot]
685a448ccc Merge pull request #27255 from containers/renovate/golang.org-x-sys-0.x
fix(deps): update module golang.org/x/sys to v0.37.0
2025-10-08 20:15:35 +00:00
renovate[bot]
aaf957edf9 fix(deps): update module golang.org/x/sys to v0.37.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 15:28:32 +00:00
ByoungUk Lee
d1c43e3ae8 Fixed #27120: Pod Quadlet can configure podman pod stop --time
Signed-off-by: ByoungUk Lee <nimdrak@gmail.com>
2025-10-08 23:53:14 +09:00
renovate[bot]
928a50d228 fix(deps): update module golang.org/x/net to v0.45.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-07 19:23:34 +00:00
openshift-merge-bot[bot]
7fecff5c29 Merge pull request #27239 from Honny1/fix-mapping-ns
Fix --userns=ns:<path> conflicting with runc 1.1.11+
2025-10-07 19:21:01 +00:00
openshift-merge-bot[bot]
2455ac327d Merge pull request #27153 from rhatdan/cursor
Add --replace option to podman artifact add command
2025-10-07 17:09:03 +00:00
Jan Rodák
79ecc1d56b Fix --userns=ns:<path> conflicting with runc 1.1.11+
Remove dummy UID/GID mappings added when joining existing user
namespaces, which runc 1.1.11+ rejects as conflicting.

RUNC fix: https://github.com/opencontainers/runc/pull/4124

Fixes #27148

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-07 15:45:45 +02:00
openshift-merge-bot[bot]
14b68ba9c6 Merge pull request #27233 from Luap99/test-fix
test/system: two small fixes
2025-10-06 18:00:40 +00:00
openshift-merge-bot[bot]
7f6bd39ce0 Merge pull request #27236 from Honny1/fix-arg
quadlet: standardize Convert function signatures
2025-10-06 17:48:47 +00:00
Jan Rodák
98cb7b75d9 quadlet: standardize Convert function signatures
Remove unused 'name' parameter from ConvertPod and reorder ConvertContainer
parameters to match other Convert functions (unitFile, unitsInfoMap, isUser).

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-06 18:26:47 +02:00
Daniel J Walsh
b765c91580 Add --replace option to podman artifact add command
This commit implements the --replace functionality for the artifact add command,
allowing users to replace existing artifacts without having to manually remove
them first.

Changes made:
- Add Replace field to ArtifactAddOptions entity types
- Add --replace CLI flag with validation to prevent conflicts with --append
- Implement replace logic in ABI backend to remove existing artifacts before adding
- Update API handlers and tunnel implementation for podman-remote support
- Add comprehensive documentation and examples to man page
- Add e2e and system BATS tests for --replace functionality
- Fix code formatting in pkg/bindings/artifacts/types_pull_options.go:
  * Reorder imports with proper spacing
  * Fix function declaration spacing
  * Convert spaces to proper tab indentation
  * Remove extraneous blank lines

The --replace option follows the same pattern as other podman replace options
like 'podman container create --replace' and 'podman pod create --replace'.
It gracefully handles cases where no existing artifact exists (no error thrown).

Usage examples:
  podman artifact add --replace quay.io/myimage/artifact:latest /path/to/file
  podman artifact add --replace localhost/test/artifact /tmp/newfile.txt

Fixes: Implements requested --replace functionality for artifact add command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-10-06 12:22:40 -04:00
Paul Holzinger
3e774ee285 test/system: actually wait for container removal
podman wait by default waits for exit not removal as the man page
documents.

Fixes: 3a98b6dc0e ("test: Wait for killed container to avoid leak")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-10-06 16:01:31 +02:00
Paul Holzinger
fdb5ac5e8f test/system: run_podman ? needs quoting
Bash will expand a signle ? to a file name which consists of a single
char, and thus if you have a file named "a" in the cwd it will add a as
argument which causes podman a ... to be executed which clearly fails
the test.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-10-06 16:01:31 +02:00
openshift-merge-bot[bot]
80b20c7614 Merge pull request #27234 from Honny1/fix-linter
quadlet: remove unused 'name' parameter from ConvertNetwork and ConvertVolume
2025-10-06 13:59:36 +00:00
Jan Rodák
09e535fb46 quadlet: remove unused 'name' parameter from ConvertNetwork and ConvertVolume
The 'name' parameter was unused in both ConvertNetwork and ConvertVolume functions.
Remove the parameter entirely and update all function calls accordingly.

This fixes revive linter warnings:
- pkg/systemd/quadlet/quadlet.go:961:47: unused-parameter: parameter 'name' seems to be unused
- pkg/systemd/quadlet/quadlet.go:1050:45: unused-parameter: parameter 'name' seems to be unused

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-10-06 14:00:49 +02:00
openshift-merge-bot[bot]
8daac5220c Merge pull request #25647 from aguidirh/fix/issue-23915
fix: #23915 podman build is not parsing sbom command line arguments
2025-10-06 10:16:24 +00:00
Alex Guidi
4bd6aff4b6 fix: #23915 podman build is not parsing sbom command line arguments
Signed-off-by: Alex Guidi <aguidi@redhat.com>

add sbom flags on server side for podman-remote

Signed-off-by: Alex Guidi <aguidi@redhat.com>
2025-10-03 22:28:36 +02:00
openshift-merge-bot[bot]
ef584d4d6d Merge pull request #27169 from ygalblum/quadlet-template-dependency
Quadlet - Support template dependency
2025-10-03 15:51:31 +00:00
openshift-merge-bot[bot]
0a58e05a68 Merge pull request #27142 from nothiaki/feat-artifact-rm-ignore
Feat artifact rm ignore
2025-10-03 15:45:28 +00:00
openshift-merge-bot[bot]
d9ca93ef09 Merge pull request #27223 from ninja-quokka/update_stable_api_links
[DOCS] Add missing stable swagger API links
2025-10-03 15:42:31 +00:00
openshift-merge-bot[bot]
a0992f7afd Merge pull request #27230 from ricardobranco777/fix/130-kill
test: Wait for killed container to avoid leak
2025-10-03 14:07:59 +00:00
openshift-merge-bot[bot]
089d153fb6 Merge pull request #27203 from nothiaki/quadlets-api-resource
pkg/api: api list quadlets resource
2025-10-03 12:59:32 +00:00
Ricardo Branco
3a98b6dc0e test: Wait for killed container to avoid leak
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-10-03 13:51:06 +02:00
Celso Henrique
b415b0ad3e Update pkg/api/server/register_artifacts.go
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Celso Henrique <86984438+nothiaki@users.noreply.github.com>
2025-10-02 20:23:15 -03:00
Lewis Roy
fb3eaf0c87 [DOCS] Add missing stable swagger API links
Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-10-03 06:05:09 +10:00
openshift-merge-bot[bot]
77dd165e47 Merge pull request #27193 from shiavm006/fix-secret-ls-format-docs
secrets: align 'secret ls' format docs and completion
2025-10-02 19:40:20 +00:00
openshift-merge-bot[bot]
e87e2c0ab1 Merge pull request #27219 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.26.0
2025-10-02 19:25:10 +00:00
renovate[bot]
72ffd00c5a fix(deps): update module github.com/onsi/ginkgo/v2 to v2.26.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-02 15:28:39 +00:00
openshift-merge-bot[bot]
9570f99790 Merge pull request #27156 from rhatdan/inspect
Add artifact fallback to podman inspect command
2025-10-02 12:16:11 +00:00
shiavm006
00309d3955 secret ls: align docs, completion, and tests; fix formatting
- Use SecretListReport for --format completion and correct help text
- Update manpage placeholders and ordering per xref rules
- Add and adjust e2e tests; verify CreatedAt contains 'ago'
- gofmt formatting fixes

Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
2025-10-02 17:33:38 +05:30
Daniel J Walsh
6405925f79 Add artifact fallback to podman inspect command
This commit implements automatic artifact fallback for the podman inspect command
as requested in GitHub issue #27075.

Changes made:
- Add ArtifactType constant to cmd/podman/common/inspect.go
- Update AutocompleteInspectType to include artifact type in completions
- Add artifact case to main inspect switch statement for explicit --type artifact
- Implement artifact fallback in inspectAll function for automatic detection
- Update shell completion to recognize artifacts in getEntityType function
- Update command help text, usage, and examples to include artifacts
- Update podman-inspect.1.md man page with artifact documentation
- Add comprehensive e2e tests for artifact inspect functionality

The inspect command now automatically falls back to artifact inspection when
no container, image, volume, network, or pod matches the specified name.
Users can also explicitly use --type artifact for direct artifact inspection.

This maintains backward compatibility while extending functionality to support
the artifact object type seamlessly.

Examples:
  podman inspect myartifact                        # Auto-detects artifact
  podman inspect --type artifact myartifact       # Explicit artifact type
  podman inspect --format '{{.Name}}' myartifact  # Format support

Fixes: https://github.com/containers/podman/issues/27075
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-10-02 06:52:32 -04:00