26841 Commits

Author SHA1 Message Date
Paul Holzinger
8c1cbdc7a0 Merge pull request #28086 from timcoding1988/pr-approval-doc-updates
docs: Update PR approval process to use GitHub's native review system
2026-02-16 18:25:36 +01:00
Ashley Cui
6cabddb091 Merge pull request #28097 from m-horky/mhorky/quadlet-ls
feat(cmd/podman/quadlet): Add 'ls' as 'list' alias
2026-02-16 12:08:22 -05:00
Matt Heon
fcb7b1fa31 Merge pull request #28083 from Luap99/config
storage.conf config file rework prep work and and design doc updates
2026-02-16 12:00:17 -05:00
Tim Zhou
751d6f7953 updating pr review and approval process
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2026-02-16 11:32:04 -05:00
Paul Holzinger
20f01fb825 Merge pull request #28098 from m-horky/mhorky/quadlet-examples
fix(cmd/podman/quadlet): Indent all examples
2026-02-16 15:10:54 +01:00
mhorky
901ac1b416 feat(cmd/podman/quadlet): Add 'ls' as 'list' alias
All other commands support 'ls' for itemized listing.

Signed-off-by: mhorky <mhorky@redhat.com>
Assisted-By: Claude Code
2026-02-16 14:02:56 +01:00
mhorky
b12c51e5a4 fix(cmd/podman/quadlet): Indent all examples
Since these examples are multiline, we need to manually add padding to
the start of the line, otherwise the lines are not aligned.

Signed-off-by: mhorky <mhorky@redhat.com>
2026-02-16 13:56:34 +01:00
Paul Holzinger
60cfb66d8f podman system reset: do not print storage.conf warning
The orginal motivation was to give a hint to users to delete the file if
they did not create the storage.conf file since some early versions of
podman did auto generate that file[1].

However that was a really long time ago and with the config file rework
there can be many different storage.conf paths so this warning is no
longer useful so we should be able to remove this now.

[1] https://github.com/containers/podman/issues/7447

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-16 13:47:56 +01:00
Paul Holzinger
0778bdaffe podman info: remove storage.conf path
Given the new config file logic will read many files pritning one
specific one here has no meaning anymore, just delete it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-16 13:47:56 +01:00
Paul Holzinger
a1afa58e27 system service: remove config reload functionallity
As I outlined in the design docs this is broken, there are several
data races here because we write to the config files that can be read by
other goroutines in parallel which violates the go memory model and
thus can lead to runtime panics and undefined behavior.
One could fix with a mutex but that would make the whole code base much
more ugly and there is still the risk that something would access this
field without the mutex held.

I am not sure we have any users using this, it never worked for the
storage side and since the service is a not a daemon any user could just
stop and start it again to re-read the files without having to stop
running containers.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-16 13:47:56 +01:00
Paul Holzinger
b45b826061 DESIGN DOC: update config-file-parsing
Add some more work items I should tackle as part of this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-16 13:47:55 +01:00
MayorFaj
5a1a54424c fix: enforce --publish option usage with --import in podman restore
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-02-15 09:38:58 +00:00
renovate[bot]
de35ca847d fix(deps): update module github.com/kevinburke/ssh_config to v1.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-14 13:34:36 +00:00
Jonathan Caicedo
b584337bd6 compat/api: honor VolumeOptions.Subpath for HostConfig.Mounts
fixes: #27171
Signed-off-by: Jonathan Caicedo <jonathan@jcaicedo.com>
2026-02-13 12:47:54 -05:00
Amol Yadav
e9ba515fcf Add debug logging for EnvSecrets to diagnose restart mapping issue
Signed-off-by: Amol Yadav <amyssnipet@yahoo.com>
2026-02-13 22:44:52 +05:30
Amol Yadav
ac7d6c3fc4 inspect: preserve secret target name in env masking
Fixes #28075

Signed-off-by: Amol Yadav <amyssnipet@yahoo.com>
2026-02-13 22:43:14 +05:30
Paul Holzinger
09faf78441 Merge pull request #28090 from axel7083/docs/systemd/remove-false-claim
docs(podman-systemd.unit.5.md): remove false claim on Pods HostName key
2026-02-13 15:06:20 +01:00
axel7083
2369ed4b71 docs(podman-systemd.unit.5.md): remove false claim on Pods HostName key
Fixes https://github.com/containers/podman/issues/28089

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
2026-02-13 14:49:47 +01:00
Paul Holzinger
7b33409ae7 Merge pull request #28088 from kolyshkin/fix-build
libpod: fix build
2026-02-13 13:39:42 +01:00
Kir Kolyshkin
24a04de921 libpod: fix build
In the currently used go.podman.io/common/pkg/libartifact version
there is no store subpackage (yet). Fix the import statement and
usage accordingly.

Fixes: df0e3b6ec7 ("libpod: move artifact volume validation to creation phase"
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-12 17:30:07 -08:00
Ashley Cui
2743ac3430 Merge pull request #27982 from timcoding1988/chore/adding-assign-github-action
adding assign github action
2026-02-12 14:56:16 -05:00
Tim Zhou
243df78fb9 adding assign github action
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2026-02-12 14:31:34 -05:00
Tim Zhou
c69072edb1 update cherry pick with pr
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2026-02-12 14:30:46 -05:00
Paul Holzinger
89b646d8a3 Merge pull request #27946 from kairosci/fix/27747-artifact-volume-validation
libpod: move artifact volume validation to creation phase
2026-02-12 20:22:32 +01:00
Paul Holzinger
88bd85367d Merge pull request #28008 from shiv-tyagi/vendor-detection
Discover GPU vendor from CDI spec before injecting GPU for --gpus option
2026-02-12 18:54:34 +01:00
Alessio Attilio
df0e3b6ec7 libpod: validate artifact volume on create
Fixes: #27747
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
2026-02-12 18:24:16 +01:00
renovate[bot]
3d1dfe6540 fix(deps): update module google.golang.org/grpc to v1.79.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-12 16:39:06 +00:00
Shiv Tyagi
d7a80dda1e Discover vendor from cdi spec before injecting CDI device for --gpu option
Signed-off-by: Shiv Tyagi <Shiv.Tyagi@amd.com>
2026-02-12 12:11:47 +00:00
Paul Holzinger
f29c649470 Merge pull request #28037 from kolyshkin/prealloc
ci: bump golangci-lint to v2.9.0, fix or suppress new warnings
2026-02-12 13:00:07 +01:00
Kir Kolyshkin
0ba42fe487 ci: bump golangci-lint to v2.9.0
Apparently, prealloc got much smarter in this version, so let's disable
it for _test.go files as we're not really interested in
micro-optimizations for the test code.

The rest of its warnings is being fixed by the earlier commits.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
Kir Kolyshkin
94442ae44e pkg/machine/e2e: simplify runWslCommand
runWslCommand never returns err != nil because if there's an error, it
calls Fail (which panics, so the code after it is unreachable).

Remove error returning and checking.

Inspired by the following linter warning:

> pkg/machine/e2e/config_windows_test.go:59:56: runWslCommand - result 1 (error) is always nil (unparam)
> func runWslCommand(cmdArgs []string) (*machineSession, error) {
>                                                        ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
Kir Kolyshkin
f9002cfd31 Fix GOOS=windows prealloc linter warnings
These ones:

> cmd/winpath/main.go:148:2: directive `//nolint:prealloc` is unused for linter "prealloc" (nolintlint)
> 	//nolint:prealloc
> 	^
> pkg/machine/hyperv/vsock/vsock.go:425:2: Consider preallocating allSocks (prealloc)
> 	allSocks := []*HVSockRegistryEntry{}
> 	^
> pkg/machine/wsl/machine.go:464:2: Consider preallocating newArgs with capacity 4 + len(arg) (prealloc)
> 	newArgs := []string{"-u", "root", "-d", dist}
> 	^
> pkg/machine/wsl/machine.go:471:2: Consider preallocating newArgs with capacity 4 + len(arg) (prealloc)
> 	newArgs := []string{"-u", "root", "-d", dist}
> 	^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
Kir Kolyshkin
3c3d32718f libpod: do not reuse names slice
Do not reuse names slice for the unrelated data. This fixes the
following prealoc warning:

> libpod/storage.go:109:2: Consider preallocating names with capacity 2 (prealloc)
> 	names := []string{containerName}
> 	^

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
Kir Kolyshkin
2a99655120 machine: prepend LocalhostSSHArgs to args
Rather than append LocalhostSSHArgs to args, prepend it, assuming the
order doesn't matter here.

This fixes the following prealloc warning (without decreasing
readability):

> cmd/podman/machine/cp.go:130:2: Consider preallocating args (prealloc)
> 	args := []string{"-r", "-i", sshConfig.IdentityPath, "-P", strconv.Itoa(sshConfig.Port)}
> 	^

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
Kir Kolyshkin
b046387979 Inline the initial slice into append
Instead of creating a slice and then appending to it, let's inline the
initial slice into append. This may or may not result in less slice
reallocations, but it is silencing the prealloc linter warnings.

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00
Kir Kolyshkin
38f6bf07cc pkg/emulation: remove slice copying
Copying the slice is not necessary here since registeredBinfmtMisc
always creates the slice from scratch.

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00
Kir Kolyshkin
030057aecd Preallocate a slice
When we already know the resulting slice size but still need/want to use
append, it makes sense to preallocate the slice by using make with the
capacity argument.

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00
Kir Kolyshkin
d316cbb362 Don't use append if not necessary
Calling append can lead to resizing the slice. In case we have all
elements beforehand, it is not necessary to call append in the first
place and this avoid resizing.

This is the first part of fixing issues reported by prealloc linter from
golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00
Jan Rodák
55d968a01f Merge pull request #28069 from simonbrauner/issue-RHEL-145863
setting UID and GID for volumes in quadlet
2026-02-11 19:06:09 +01:00
Paul Holzinger
90dcd10dc4 Merge pull request #28061 from containers/renovate/github.com-mattn-go-sqlite3-1.x
fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.34
2026-02-11 18:29:17 +01:00
Paul Holzinger
d6cd618ea8 Merge pull request #28070 from containers/renovate/docker.io-library-golang-1.x
chore(deps): update docker.io/library/golang docker tag to v1.26
2026-02-11 18:26:37 +01:00
Šimon Brauner
9727a43f5a Added setting UID and GID for volumes in quadlet
Related: https://issues.redhat.com/browse/RHEL-145863

Signed-off-by: Šimon Brauner <sbrauner@redhat.com>
2026-02-11 18:16:30 +01:00
renovate[bot]
d02c3d3b80 chore(deps): update docker.io/library/golang docker tag to v1.26
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 14:40:50 +00:00
Paul Holzinger
acb874657b Merge pull request #28066 from containers/renovate/github.com-containers-gvisor-tap-vsock-0.x
fix(deps): update module github.com/containers/gvisor-tap-vsock to v0.8.8
2026-02-11 15:39:40 +01:00
renovate[bot]
7713a75564 fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.34
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 14:12:56 +00:00
Jan Rodák
2b9e652c47 Merge pull request #28049 from CriszelGipala/cgipala-fix-typos-and-links
Fix broken links in transfer.md
2026-02-11 14:49:36 +01:00
renovate[bot]
73cede901f fix(deps): update module github.com/containers/gvisor-tap-vsock to v0.8.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 01:09:30 +00:00
Paul Holzinger
0a0391daa5 Merge pull request #28054 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.50.0
2026-02-10 19:02:00 +01:00
Criszel Gipala
1243b2baec Fix broken links in transfer.md
Changes:
- Fix 'docs.source' typo to 'docs/source' on lines 54, 59, 60, 65.
- Correct filenames on lines 84, 91, 170, 193-196 to point to files that actually exist in the repo.
- Removed line 139 as the command no longer exists.

Why:
- The linked documentation filenames were renamed resulting in broken links.

Scope:
- transfer.md only - no code changes

Signed-off-by: Criszel Gipala <gipalacriszel512@gmail.com>
2026-02-10 13:47:18 +00:00
Jan Rodák
c0869aa44a Merge pull request #27926 from Arctize/avoid-hc-failure-during-initaldelayseconds
healthcheck_linux: avoid failing transient units
2026-02-10 10:25:53 +01:00