Commit Graph

26673 Commits

Author SHA1 Message Date
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
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
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
renovate[bot]
cfc9510847 fix(deps): update module golang.org/x/net to v0.50.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-09 20:22:09 +00:00
Brent Baude
af495d11a6 Merge pull request #28052 from containers/renovate/setuptools-82.x
chore(deps): update dependency setuptools to v82
2026-02-09 14:19:13 -06:00
Patrick Wicki
2828965a75 healthcheck_linux: avoid failing transient units
The main purpose of the transient services/timers is to trigger the
healthcheck execution in regular intervals, their own state should
not depend on the result of the healthchecks. This way there are no
failing systemd services unless there is actually a fatal error.

Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
2026-02-09 19:52:29 +01:00
Patrick Wicki
3856389fc9 podman-healthcheck-run: add --ignore-result flag
This is useful for triggering the execution of a healthcheck
without caring about it's result as long as no fatal error occured.

Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
2026-02-09 19:52:29 +01:00
Brent Baude
c18a9ea4a3 Merge pull request #28041 from containers/renovate/github.com-shirou-gopsutil-v4-4.x
fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.1
2026-02-09 08:48:27 -06:00
renovate[bot]
7cefd013ca chore(deps): update dependency setuptools to v82
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-09 14:40:41 +00:00
Brent Baude
a25ea42d7d Merge pull request #28050 from containers/renovate/golang.org-x-sys-0.x
fix(deps): update module golang.org/x/sys to v0.41.0
2026-02-09 08:39:19 -06:00
Paul Holzinger
13e25410c1 Merge pull request #28036 from kolyshkin/t-m
libpod: modernize state test
2026-02-09 14:11:59 +01:00
Paul Holzinger
40a872c9ec Merge pull request #28040 from Luap99/curl-error
make curl error on non success status codes
2026-02-09 14:01:36 +01:00
renovate[bot]
460feba9c9 fix(deps): update module golang.org/x/sys to v0.41.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-09 12:57:35 +00:00
Paul Holzinger
da66d231aa Merge pull request #28035 from containers/renovate/zizmorcore-zizmor-action-0.x
[skip-ci] Update zizmorcore/zizmor-action action to v0.5.0
2026-02-09 13:55:14 +01:00
Jan Rodák
111c652ae9 Merge pull request #27717 from 1AlexBunea/healthcheck-log-docs
Added healthcheck documentation.
2026-02-09 10:08:42 +01:00
Alex Bunea
e61ce8d6ea Added healthcheck documentation.
Fixes: #27202

Signed-off-by: Alex Bunea <1alexbunea@gmail.com>
2026-02-08 10:56:05 -06:00
Kir Kolyshkin
49cce3ec16 libpod: modernize state test
Use t.Helper, t.TempDir, and t.Cleanup in getEmptySqliteState,
simplifying its code and its users.

Simplify runForAllStates: remove redundant t.Fail call, and move
getEmptySqliteState call under t.Run.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-07 12:11:47 -08:00
renovate[bot]
a798f30849 fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-06 17:01:16 +00:00
Paul Holzinger
ee64636cea Merge pull request #28032 from containers/renovate/github.com-openshift-imagebuilder-1.x
fix(deps): update module github.com/openshift/imagebuilder to v1.2.20
2026-02-06 17:59:09 +01:00
Paul Holzinger
af7c36eae3 make curl error on non success status codes
By default something like a 404 will not make curl exit with an error
code. This is problematic for obvious reasons and instead of the file
you want you may now have some 404 html text instead.

I noticed this in #28003 which well just build fine installers except
the binary downloaded by the installer Makefile simply did not exist.

So to address that add --fail to most curl commands.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-06 17:29:49 +01:00