Moving from Go module v4 to v5 prepares us for public releases.
Move done using gomove [1] as with the v3 and v4 moves.
[1] https://github.com/KSubedi/gomove
Signed-off-by: Matt Heon <mheon@redhat.com>
This shares code with 'container top' which runs ps on the host,
filtering for the containers that are part of the pod.
(*Container).jailName is modified to take into account the possiblity
that the container is in a pod - this also fixes stats reporting for
pods on FreeBSD.
[NO NEW TESTS NEEDED]
Signed-off-by: Doug Rabson <dfr@rabson.org>
use the 'pf -ef' compatible default when the descriptor argument
of Top() is []string{""} or []string{}
why:
the call to Top() in
pkg/api/handlers/compat/containers_top.go#L62C3-L62C3
passes []string{""} descriptors whenever ps_args is empty (the
default value for libpod requests) because of golang strings.Split()
semantics.
[NO NEW TESTS NEEDED]
Signed-off-by: Stefan Grundmann <sg2342@googlemail.com>