diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-04 09:53:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 09:53:58 +0000 |
commit | 1bc8c94409c1c9dc47b4569833af534beba9333f (patch) | |
tree | 722448d98c733e7db10bf44b6ff3cfc80a632175 /pkg/api/server | |
parent | 1ed91065b9356a2e5a07303b8d454268b83ee0f1 (diff) | |
parent | 9cc974c9637554620248941642d58ff34df90ba0 (diff) | |
download | podman-1bc8c94409c1c9dc47b4569833af534beba9333f.tar.gz podman-1bc8c94409c1c9dc47b4569833af534beba9333f.tar.bz2 podman-1bc8c94409c1c9dc47b4569833af534beba9333f.zip |
Merge pull request #11104 from jwhonce/bz/1988252
Only support containers stats using cgroups v2
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_containers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/server/register_containers.go b/pkg/api/server/register_containers.go index 50e059ecc..89de84cce 100644 --- a/pkg/api/server/register_containers.go +++ b/pkg/api/server/register_containers.go @@ -1085,6 +1085,8 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error { // description: no error // 404: // $ref: "#/responses/NoSuchContainer" + // 409: + // $ref: "#/responses/ConflictError" // 500: // $ref: "#/responses/InternalError" r.HandleFunc(VersionedPath("/libpod/containers/{name}/stats"), s.APIHandler(compat.StatsContainer)).Methods(http.MethodGet) @@ -1113,6 +1115,8 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error { // description: no error // 404: // $ref: "#/responses/NoSuchContainer" + // 409: + // $ref: "#/responses/ConflictError" // 500: // $ref: "#/responses/InternalError" r.HandleFunc(VersionedPath("/libpod/containers/stats"), s.APIHandler(libpod.StatsContainer)).Methods(http.MethodGet) |