Commit Graph

24941 Commits

Author SHA1 Message Date
openshift-merge-bot[bot]
526aa3aa48 Merge pull request #25839 from timesince/main
chore: make function comment match function name
2025-04-10 10:15:53 +00:00
openshift-merge-bot[bot]
4aeca9cced Merge pull request #25755 from kolyshkin/unused2
Remove unused code and data structures
2025-04-09 18:58:43 +00:00
openshift-merge-bot[bot]
988e2910d5 Merge pull request #25823 from iphands/main
cmd: Fix help text. --config specifies a dir not a regular file
2025-04-09 17:47:03 +00:00
openshift-merge-bot[bot]
ce7db6e455 Merge pull request #25835 from Luap99/maintainers
MAINTAINERS.md: sort by role and add nalind to OWNERS
2025-04-09 13:18:02 +00:00
timesince
7cbad232fe chore: make function comment match function name
Signed-off-by: timesince <seekseat@icloud.com>
2025-04-09 19:51:21 +08:00
openshift-merge-bot[bot]
671b240236 Merge pull request #25831 from Luap99/test-doc
update hack/bats to not PASS NOP env and update test README with more system test info
2025-04-09 00:59:18 +00:00
Ian Page Hands
76a4fdc358 cmd: Fix help text. --config specifies a dir not a regular file
This `--config` option was initially added here:
4e4c3e3dbf

Under the hood this simply modifies env to set DOCKER_CONFIG=<passed
in string>

The DOCKER_CONFIG env var is used as a directory that contains
multiple config files... of which podman and container libs probably
only use `$DIR/config.json`.
See: https://docs.docker.com/reference/cli/docker/#environment-variables

The old CMD and help text was misleading... if we point the at a
regular file we can see errors like:
```
$ touch /tmp/foo/tmpcr9zrx71
$ /bin/podman --config /tmp/foo/tmpcr9zrx71 build -t foobar:latest
Error: creating build container: initializing source docker://quay.io/centos/centos:stream9: getting username and password: reading JSON file "/tmp/foo/tmpcr9zrx71/config.json": open /tmp/foo/tmpcr9zrx71/config.json: not a directory
```
^^ In this case we had created `/tmp/foo/tmpcr9zrx71` as a regular file.

Signed-off-by: Ian Page Hands <iphands@gmail.com>
2025-04-08 13:53:34 -07:00
Paul Holzinger
b2e45129b8 .github/labeler: add governance label automatically
We don't have anything CI wise to enforce proper reviews for governance
changes but we can easily label a PR so that should raise more
awareness.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 19:40:35 +02:00
Paul Holzinger
1934c3a407 OWNERS: add nalind
He is a core maintainer and was not listed here by mistake.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 19:40:28 +02:00
Paul Holzinger
4242951662 MAINTAINERS.md: sort by role
This should make it easier to read, most people likely care about the
roles.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 19:26:30 +02:00
openshift-merge-bot[bot]
1b9f78a33c Merge pull request #25801 from eriksjolund/update-defaultdependencies-docs
docs: update `DefaultDependencies=` description
2025-04-08 17:25:29 +00:00
Erik Sjölund
a96b29b58c docs: update DefaultDependencies description
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
2025-04-08 18:19:59 +02:00
openshift-merge-bot[bot]
fd8ed0b2f2 Merge pull request #25796 from Luap99/kube-pod-empty
quadlet kube: consider empty pod as running
2025-04-08 14:07:42 +00:00
openshift-merge-bot[bot]
c89aa95560 Merge pull request #25828 from IAmJSD/patch-1
Make Go not panic on a partial update
2025-04-08 13:45:06 +00:00
Paul Holzinger
85caf3fbb5 test: update README for system test
Clarify that system test specifc configuration must be done via config
files and not via ad hoc environment variables like in test/e2e.

Also not that we only run the tests with crun so other runtimes may not
work but we accept patches to make them work with runc, e.g. Suse folks
currently run them with runc and contribute patches for them.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 15:43:45 +02:00
openshift-merge-bot[bot]
62fe2e0f28 Merge pull request #25815 from giuseppe/fix-hostuser
libpod: --user works with  --hostuser entries
2025-04-08 13:42:24 +00:00
openshift-merge-bot[bot]
20e1b9db3a Merge pull request #24791 from arsenalzp/issue_24664
Allow filtering containers by command
2025-04-08 12:55:09 +00:00
Astrid Gealer
9cc7c2b4ab Make Go not panic on a partial container update
Right now, if you call Update with only part of the options struct added, it panics. This fixes that by only adding them if they are not nil.

Signed-off-by: Astrid Gealer <astrid@gealer.email>
2025-04-08 13:38:48 +01:00
openshift-merge-bot[bot]
450f8544ef Merge pull request #25822 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.39.0
2025-04-08 12:36:08 +00:00
Paul Holzinger
4e65ed5b72 hack/bats: remove OCI_RUNTIME reference
It is never used by system tests so do not mention or use it here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 14:30:50 +02:00
renovate[bot]
7633a9a143 fix(deps): update module golang.org/x/net to v0.39.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 22:44:00 +00:00
openshift-merge-bot[bot]
37dc5fdf89 Merge pull request #25820 from Luap99/maintainers
Maintainers.md: fix two github nicks
2025-04-07 18:03:11 +00:00
openshift-merge-bot[bot]
8461dff1ad Merge pull request #25793 from Luap99/network-connect-err
fix network DB desync after failed connect/disconnect
2025-04-07 18:00:27 +00:00
openshift-merge-bot[bot]
fe020192b7 Merge pull request #25819 from Luap99/test-dns
test/system: do not check dns.podman
2025-04-07 17:57:37 +00:00
Paul Holzinger
7e1ea74813 Maintainers.md: fix two github nicks
They start with an upper case letter, the link is already correct.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-07 18:22:12 +02:00
Giuseppe Scrivano
85024a9ba7 libpod: --user works with --hostuser entries
create the /etc/passwd and /etc/group files before any user/group
lookup so that the entries added dynamically are found by --user.

As a side effect, do not automatically create the group with same
value as the uid when not specified, since it is expected to run with
gid=0.

Closes: https://github.com/containers/podman/issues/25805

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-04-07 18:11:06 +02:00
openshift-merge-bot[bot]
40d7ab19f5 Merge pull request #25818 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.37.0
2025-04-07 12:57:07 +00:00
Paul Holzinger
254ab3b90f test/system: do not check dns.podman
A recent change[1] in netavark makes it so we no longer set the default
dns.podman search domain. As such we must no longer test for it.

[1] https://github.com/containers/netavark/pull/1214

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-07 13:57:59 +02:00
renovate[bot]
6bb1d0837f fix(deps): update module golang.org/x/crypto to v0.37.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 11:38:53 +00:00
openshift-merge-bot[bot]
db9fa22d16 Merge pull request #25817 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.23.4
2025-04-07 11:37:21 +00:00
renovate[bot]
acbfc3c259 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.23.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 10:09:30 +00:00
openshift-merge-bot[bot]
1264564503 Merge pull request #25806 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.31.0
2025-04-07 10:06:37 +00:00
renovate[bot]
27b3781201 fix(deps): update module golang.org/x/term to v0.31.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-06 01:55:55 +00:00
openshift-merge-bot[bot]
70b01e2aa9 Merge pull request #25785 from containers/renovate/github.com-moby-sys-user-0.x
fix(deps): update module github.com/moby/sys/user to v0.4.0
2025-04-04 21:29:07 +00:00
Paul Holzinger
8d1c373475 quadlet kube: consider empty pod as running
Since commit 945aade38b we do tear down the kube units if all pods
failed to start. This however broke the use case of an empty pod as we
did not consider that being starting successfully which is wrong and
caused a regression for at least one user.

To fix this special case the empty pod and consider that running.

Fixes: #25786
Fixes: 945aade38b ("quadlet kube: correctly mark unit as failed")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-04 19:19:00 +02:00
Paul Holzinger
f87ab2b7a6 fix network DB desync after failed connect/disconnect
Networks are stored in two ways in the DB, first a static network list
which holds all the network with its option for the container. Second,
the network status which hold the actual network result from netavark
but only when the container is running.

If the container is running they must be in sync and podman inspect has
checks to ensure that as well it errors out of there is a desync between
the two.

As the adding to the db and doing actual networking configuration are
diffeent parts it possible that one worked while the other failed which
triggers the desync. To avoid this make the network connect/disconnect
code more robust against partial failures. When the network calls fail
we update the db again to remove/add the network back.

Fixes: https://issues.redhat.com/browse/RHEL-78037

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-04 14:42:20 +02:00
openshift-merge-bot[bot]
0a0d05b3e3 Merge pull request #25781 from kolyshkin/rm-goimports
Use golangci-lint fmt for pkg/bindings
2025-04-04 09:38:25 +00:00
openshift-merge-bot[bot]
951a2ce7bb Merge pull request #25784 from containers/renovate/actions-create-github-app-token-2.x
[skip-ci] Update actions/create-github-app-token action to v2
2025-04-04 09:21:55 +00:00
openshift-merge-bot[bot]
e65bbab04d Merge pull request #25773 from kolyshkin/freebsd-no-seccomp
Makefile: exclude seccomp build tag for !linux
2025-04-04 02:20:23 +00:00
renovate[bot]
c0845ed55b fix(deps): update module github.com/moby/sys/user to v0.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 22:00:01 +00:00
openshift-merge-bot[bot]
af7c6f8669 Merge pull request #25742 from mohanboddu/triage
Add documentation describing how to triage issues
2025-04-03 20:10:04 +00:00
renovate[bot]
5148cf3c14 [skip-ci] Update actions/create-github-app-token action to v2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 19:51:47 +00:00
openshift-merge-bot[bot]
dced2bf9ef Merge pull request #25769 from Luap99/pasta-doc
docs: update pasta options description
2025-04-03 19:50:53 +00:00
Mohan Boddu
72acbc804a Add documentation describing how to triage issues
This document is to help the maintainers on how to traige new issues.

Adding a link to REVIEWING.md in CONTRIBUTING.md

Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2025-04-03 15:31:00 -04:00
openshift-merge-bot[bot]
76eea47fb3 Merge pull request #25743 from kolyshkin/freebsd-golangci-lint
Add freebsd golangci lint run; fix remaining freebsd warnings
2025-04-03 18:30:54 +00:00
Kir Kolyshkin
9d4e820264 Use golangci-lint fmt for pkg/bindings
golangci-lint v2 introduced a new command, fmt, which runs configured
formatters (see formatters in .golangci.yml).

Use this for generated files. Drop separate goimports binary.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:41:14 -07:00
Kir Kolyshkin
055fc82bd2 Makefile: exclude seccomp build tag for !linux
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:09:07 -07:00
Kir Kolyshkin
a8dd9bc1ed Makefile: use GOOS/NATIVE_GOOS instead of uname -s
Saves a few fork/execs, and unify the code since other places are
already using NATIVE_GOOS or GOOS.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:08:49 -07:00
Kir Kolyshkin
b959ca3577 .cirrus.yml: add golangci-lint cache for freebsd task
This shaves the linting time:
 - from 8 to 2 minutes on Cirrus CI with 4 CPUs and 8 GB RAM;
 - from 11 to 3 minutes on Cirrus CI with 2 CPUs and 4 GB RAM;
when the cache is reused.

The cache size is quite modest (~3MB compressed, ~7MB uncompressed).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00
Kir Kolyshkin
c958d5b3ba .cirrus.yml: upsize the freebsd instance
An attempt to speed up golangci-lint.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00